]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ChangeLog
Once again the user can use the Font button on the toolbar to get the current
[lyx.git] / src / frontends / controllers / ChangeLog
1 2001-06-13  Angus Leeming  <a.leeming@ic.ac.uk>
2
3         * ControlDialogs.h added // -*- C++ -*-
4
5         * ControlCharacter.[Ch]: added // -*- C++ -*-
6         (setParams): Check contents of font_ to activate Apply button.
7         (clearParams): removed.
8         font_ is now stored as a boost::scoped_ptr.
9         font_ is no longer deleted on hide(), so it's contents can now be used
10         by the Font button on the toolbar.
11         Lots of new methods so that the GUI can easily get the contents of
12         font_ when it update()s.
13
14 2001-06-12  Angus Leeming  <a.leeming@ic.ac.uk>
15
16         * ControlCharacter.C (apply): test that font_ exists, thereby preventing
17         crash when the Font button on the Toolbar is pressed.
18
19         * GUI.h: change policy of Character button controller to
20         OkApplyCancelReadOnlyPolicy.
21
22 2001-06-11  Lars Gullik Bjønnes  <larsbj@birdstep.com>
23
24         * ControlToc.C (getContents): don't add anything to the list if it
25         is supposed to be empty.
26
27 2001-06-01  Angus Leeming  <a.leeming@ic.ac.uk>
28
29         * helper_funcs.C (getVectorFromString): bug fix.
30
31 2001-05-30  Angus Leeming  <a.leeming@ic.ac.uk>
32
33         * ButtonController.h
34         * ButtonControllerBase.[Ch] (refreshReadOnly): new method, called direct
35         from ButtonControllerBase::readOnly. Updates the state of the widgets
36         in the read-only list only when the read-only status of the document
37         changes.
38         (refresh): moved this stuff into refreshReadOnly.
39
40 2001-05-18  Angus Leeming  <a.leeming@ic.ac.uk>
41
42         * ControlPrint.C (c-tor):
43         * ControlPreamble.C (c-tor): initialise params_ and thereby cure crash.
44
45 2001-05-14  Angus Leeming  <a.leeming@ic.ac.uk>
46
47         * biblio.C:
48         * character.h: small clean-ups.
49
50 2001-05-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
51
52         * ControlToc.C (getType): remove support for old float list.
53
54 2001-04-26  Angus Leeming  <a.leeming@ic.ac.uk>
55
56         * ControlButtons.h: no longer include ButtonControllerBase.h, ViewBase.h
57         * ControlGraphics.h: no longer include insetgraphicsParams.h
58         * ControlInset.h: no longer include LyXView.h
59
60         * ControlBibitem.C:
61         * ControlBibtex.C:
62         * ControlButtons.C:
63         * ControlCharacter.C:
64         * ControlCitation.C:
65         * ControlCommand.C:
66         * ControlConnections.C:
67         * ControlCopyright.C:
68         * ControlCredits.C:
69         * ControlError.C:
70         * ControlExternal.C:
71         * ControlGraphics.C:
72         * ControlInclude.C:
73         * ControlLog.C:
74         * ControlMinipage.C:
75         * ControlPreamble.C:
76         * ControlPrint.C:
77         * ControlRef.C:
78         * ControlSearch.C:
79         * ControlTabularCreate.C:
80         * ControlToc.C:
81         * ControlVCLog.C: they're now in here!
82
83 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
84
85         * ButtonControllerBase.h: C++ mode, inherit privately from
86         noncopyable 
87         * ButtonPolicies.h: ditto
88
89         * ButtonController.h: C++ mode, swap init order of restore_ and
90         cancel_ 
91
92 2001-04-06  John Levon  <moz@compsoc.man.ac.uk>
93
94         * ControlTabularCreate.h:
95         * ControlTabularCreate.C: make dialogs use a pair of uints
96           instead of a string
97
98         * ControlVCLog.h:
99         * ControlVCLog.C: fill a stringstream with the log contents
100         and then delete it
101
102         * ControlExternal.C: from Angus, clone the new InsetExternal
103           before acting on it
104
105 2001-04-09  Angus Leeming  <a.leeming@ic.ac.uk>
106
107         * helper_funcs.C (getStringFromVector, getVectorFromString): fixed bugs
108         and made more robust.
109
110 2001-04-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
111
112         * ControlToc.C: 
113         * ControlSearch.C: 
114         * ControlPrint.C: 
115         * ControlPreamble.C: 
116         * ControlInclude.C: 
117         * ControlGraphics.C: 
118         * ControlExternal.C: 
119         * ControlCopyright.C: include gettext.h
120
121         * ControlCharacter.C: 
122         * character.C: include gettext.h and language.h
123
124 2001-04-03  John Levon  <moz@compsoc.man.ac.uk>
125
126         * ButtonController.h:
127         * ButtonControllerBase.h:
128         * ButtonControllerBase.C:
129         * ButtonPolicies.h:
130         * ButtonPolicies.C:
131         * ControlButton.h:
132         * ControlButton.C:
133         * ControlButtons.h:
134         * ControlButtons.C:
135         * ControlConnections.h:
136         * ControlDialogs.h:
137         * ControlInset.h:
138         * ControlExternal.C:
139         * Makefile.am:
140         * README:
141         * ViewBase.h: s/ControlButton/ControlButtons/
142         s/popup/dialog/
143         s/UndoAll/Restore/ + associated
144
145 2001-03-30  Angus Leeming  <a.leeming@ic.ac.uk>
146
147         * ControlToc.[Ch]: new files; a controller for the TOC popup.
148
149         * GUI.h:
150         * Makefile.am: associated changes with all of the above.
151
152 2001-03-30  Angus Leeming  <a.leeming@ic.ac.uk>
153
154         * ControlExternal.C: bug fixes. Can now apply changes to the inset
155         and edit, view, update the External Material correctly. I hope!
156
157 2001-03-30  Angus Leeming  <a.leeming@ic.ac.uk>
158
159         * ButtonController.[Ch]: renamed as ButtonControllerBase.[Ch]
160
161         * BCTemplates.h: renamed as ButtonController.h
162
163         * ControlBase.[Ch]: renamed as ControlButton.[Ch]. Class named to match.
164
165         * ViewBase.h:
166         * ControlConnections.h: associated change in #include and class names.
167         
168         * ControlExternal.[Ch]: new files; a controller for the External
169         Material popup.
170
171         * GUI.h:
172         * Makefile.am: associated changes with all of the above.
173
174         * ControlGraphics.[Ch]:
175         * ControlInclude.[Ch]:
176         * ControlPrint.[Ch]:
177         (lv): removed.
178         (Browse): new method. Returns the results of a FileDialog browse.
179
180         * helper_funcs.[Ch] (browseFile): moved from xforms_helpers.[Ch].
181         (getVectorFromString): fixed bug.
182
183         * biblio.C (simpleSearch): cleaned up.
184
185 2001-03-29  Angus Leeming  <a.leeming@ic.ac.uk>
186
187         * A slight reworking of Baruch Even's ButtonController patch.
188
189         * BCTemplates.h: new file; all the templates for the ButtonController.
190         Including Baruch's new GuiBC class, with setCancelCloseButton() changed
191         to the more generic setButtonLabel().
192
193         * ButtonController.[Ch]: renamed cancel_label and close_label as
194         cancel_label_ and close_label_.
195
196         * Makefile.am: added BCTemplates.h
197
198 2001-03-29  Juergen Vigna  <jug@sad.it>
199
200         * ControlMinipage.C: removed widthp_ and all it's functions and changed
201         to use new %-lengths of LyXLength.
202
203 2001-03-29  Angus Leeming  <a.leeming@ic.ac.uk>
204
205         * ControlCitation.C (bibkeysInfo): removed Assert.
206
207         * ControlCopyright.h: moved GUICopyright into GUI.h
208
209         * GUI.h: see above.
210
211 2001-03-28  Angus Leeming  <a.leeming@ic.ac.uk>
212
213         * ControlInset.h (clearDaughterParams): is empty by default, not pure.
214         (setDaughterParams): a (by default empty) new method called in show().
215
216         * ControlBibitem.h:
217         * ControlBibtex.h:
218         * ControlError.h:
219         * ControlInclude.h:
220         * ControlMinipage.h:
221         * ControlRef.h:
222         * ControlSearch.h:
223         * ControlUrl.h (clearDaughterParams): removed
224
225         * ControlMinipage.C (applyParamsToInset): update the view.
226         Added namespace minipage containing a helper function getUnits.
227
228         * GUI.h: changed Minipage policy to NoRepeatedApplyReadOnlyPolicy.
229
230         * ControlCharacter.[Ch]: moved out all the helper functions and the
231         enum into their own file.
232         * character.[Ch]: new files; contain the character helper functions,
233         now inside namespace character.
234
235         * ControlCitation.[Ch]: moved out all the helper functions and the
236         enums into their own file. Simplified interface.
237         * biblio.[Ch]: new files; contain the citation helper functions,
238         now inside namespace biblio. Will be of use also to an improved
239         BibTeX popup.
240
241         * ControlGraphics.[Ch]:
242         * ControlIndex.[Ch]: new files; controllers for the Graphics and Index
243         popups, respectively.
244
245         * GUI.h:
246         * Makefile.am: associated changes.
247
248 2001-03-27  Angus Leeming  <a.leeming@ic.ac.uk>
249
250         * ControlMinipage.[Ch]:
251         * ControlPreamble.[Ch]:
252         * ControlPrint.[Ch]:
253         * ControlSplash.[Ch]: new files; controllers for the Minipage, Preamble
254         and Print popups and Splash screen, respectively.
255
256         * ViewBase.h (ViewSplash): new base class for GUI-specific Splash
257         screens.
258
259         * GUI.h:
260         * Makefile.am: associated changes.
261
262 2001-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
263
264         * ControlConnections.[Ch]: (docType): new method; returns the type
265         of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
266
267         * ControlRef.[Ch]:
268         * ControlSearch.[Ch]:
269         * ControlTabularCreate.[Ch]: new files; controller for the Ref,
270         Search and TabularCreate popups, respectively.
271
272         * GUI.h:
273         * Makefile.am: associated changes.
274
275 2001-03-26  Angus Leeming  <a.leeming@ic.ac.uk>
276
277         * ControlCitation.C (getBibkeyInfo): get nasty and assert the info map
278         contains data.
279
280         * ControlInset.h (apply): fix bug. Can now create new insets again.
281
282         * README: describe program flow.
283
284 2001-03-24  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
285
286         * Makefile.am (libcontrollers_la_SOURCES): add ControlDialogs.h
287
288 2001-03-23  Angus Leeming  <a.leeming@ic.ac.uk>
289
290         * ControlDialogs.h: moved class ControlInset into its own file.
291
292         * ControlInset.h: new file. class ControlInset has been expanded to take
293         two template parameters, Inset and Params. Believe that all inset
294         controllers can be derived from this with the minimum of effort.
295
296         * ControlBibitem.[Ch]:
297         * ControlBibtex.[Ch]:
298         * ControlCitation.[Ch]:
299         * ControlCommand.[Ch]: moved most code into ControlInset.
300
301         * lots of files. Moved protected stuff into private where possible.
302
303         * ControlError.[Ch]:
304         * ControlInclude.[Ch]:
305         * ControlUrl.[Ch]: new files; controllers for the LaTeX error,
306         Include and Url popups, respectively.
307
308         * GUI.h:
309         * Makefile.am: associated changes.
310
311 2001-03-23  Angus Leeming  <a.leeming@ic.ac.uk>
312
313         * ControlCredits.[Ch] (getCredits): returns a stringstream not a
314         vector<string>.
315
316 2001-03-23  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
317
318         * ControlCredits.C (getCredits): remove std:: qualifier for
319         getline(). 
320
321 2001-03-23  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
322
323         * ControlCredits.C (getCredits): add std:: on vector
324
325 2001-03-22  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
326
327         * ControlCredits.C: remove using that is only used once, use
328         std::ios instead of std::iosbase, add some annoying comments.
329
330 2001-03-22  Angus Leeming  <a.leeming@ic.ac.uk>
331
332         * lots of header files: improved explanatory notes.
333
334         * ControlBase.[Ch]: removed LyXView & lv_ and methods using it.
335         ControlBase is now a class that only controls the interaction of the
336         View with the ButtonController.
337
338         * ControlConnections.[Ch]: added LyXView & lv_ and associated methods
339         to ControlConnectBase. The class controls the connection/disconnection
340         of signals from the LyX kernel and makes available the kernel (through
341         lv_) to daughter controller classes.
342         Moved out class ControlConnectInset to a new file ControlDialogs.h.
343
344         * ControlDialogs.h: new file. Contains the definition of two template
345         controller classes, ControlDialog and ControlInset (was
346         ControlConnectInset). ControlInset is a parent class for controllers
347         of inset-popups. ControlDialogs is the rather uninspired name for
348         the base class of all non-inset popups. (Eg, Document and Paragraph.)
349         ControlDialogs is reaching a state of maturity as several popups now use
350         it and its functionality becomes clear. ControlInset is still in a state
351         of flux. It is likely that functionality will be moved out of
352         ControlCommands and into it.
353
354         * GUI.h: new file. Moved all the template GUIXXX classes out of the
355         individual Controller header files and into one place. These classes
356         serve only as convenient wrappers to simplify code in the respective
357         frontends' Dialogs::c-tor. Now all derived from a templatised parent.
358
359         * ControlCharacter.[Ch] (show, update, hide):
360         * ControlLog.[Ch] (show, update, hide):
361         * ControlVCLog.[Ch] (show, update, hide): moved back into
362         the ControlDialogs base class.
363         (setParams, clearParams): new methods containing controller-specific
364         code to set/reset the parameters manipulated by the view.
365
366         * ControlCommand.[Ch] (clearParams): a new virtual method, by default
367         empty.
368         (hide): calls clearParams.
369
370         * ControlCitation.[Ch] (hide): renamed as clearParams, a method called
371         by ControlCommand::hide().
372
373         * ControlCopyright.[Ch]:
374         * ControlCredits.[Ch]: new files; controllers for the copyright and
375         credits popups, respectively.
376
377 2001-03-21  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
378
379         * ControlCharacter.C: fix typo
380
381 2001-03-21  Angus Leeming  <a.leeming@ic.ac.uk>
382
383         * ControlCharacter.[Ch]: new files; controller for the character popup.
384
385         * ControlCitation.[Ch] (getStringFromVector, getVectorFromString):
386         moved to new files helper_funcs.[Ch].
387
388         * helper_funcs.[Ch]: new files. Some useful helper functions and
389         functors.
390
391         * Makefile.am: added new files.
392
393 2001-03-20  Angus Leeming  <a.leeming@ic.ac.uk>
394
395         * ControlCitation.C (getBibkeyInfo): parse non-BibTeX entries correctly.
396
397 2001-03-20  Angus Leeming  <a.leeming@ic.ac.uk>
398
399         * ControlLog.[Ch]:
400         * ControlVCLog.[Ch]: new files; controllers for LaTeX and Version
401         Control log files, respectively.
402
403         * Makefile.am: added new files.
404
405 2001-03-19  Angus Leeming  <a.leeming@ic.ac.uk>
406
407         * ControlBibtex.[Ch]: new files; controller for an InsetBibtex popup.
408
409         * Makefile.am: added ControlBibtex.[Ch].
410
411 2001-03-16  Angus Leeming  <a.leeming@ic.ac.uk>
412
413         * ControlBibitem.C:
414         * ControlCitation.C: added "using SigC::slot" declaration.
415
416         * ControlCitation.C (getStringFromVector): re-apply Dekel's recent fix
417         to FormCitation.C prior to the merger: "Do not put space between
418         multiple keys".
419
420 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
421
422         * several files: remove CXX_WORKING_NAMESPACES
423
424         * ButtonController.h: noncopyable is in namespace boost
425         * ButtonPolicies.h: ditto
426
427 2001-03-14  Angus Leeming  <a.leeming@ic.ac.uk>
428
429         * Merging changes from BRANCH_MVC back into HEAD.
430
431 2001-03-12  Angus Leeming  <a.leeming@ic.ac.uk>
432
433         * Makefile.am: add ControlBibitem.[Ch].
434
435         * ControlBibitem.[Ch]: new files that together define the Controller
436         for a Bibitem popup.
437
438         * ControlCommand.h (c-tor): give  kb_action a default value of
439         LFUN_NOACTION.
440         
441         * ControlCommand.C (apply): do nothing if kb_action is LFUN_NOACTION.
442         
443         * ControlCitation.[Ch]: moved search functions out of class.
444         (bibkeysInfo): new method. Returns const reference to private data.
445         (searchKeys): added case-sensitive switch. Used only by simpleSearch
446         for now.
447
448 2001-03-09  Angus Leeming  <a.leeming@ic.ac.uk>
449
450         * ControlCitation.[Ch]: added Search functions to the class,
451         (shamelessly lifted from Marco's gnome code). I think that these would
452         be better as helper functions outside the class, but this is a first
453         stab at it.
454
455 2001-03-07  Angus Leeming  <a.leeming@ic.ac.uk>
456
457         * ControlCitation.[Ch]: (getBibkeyList): removed from class
458         ControlCitation.
459         (getBibkeys, getBibkeyInfo): added to class ControlCitation.
460         (getStringFromVector, getVectorFromString, parseBibTeX): new helper
461         funcs. parseBibTeX() is lifted staraight out of Marco's gnome
462         implementation of FormCitation.
463
464 2001-03-05  Angus Leeming  <a.leeming@ic.ac.uk>
465
466         * ButtonPolicies.h: add SMI_NOOP to enum.
467
468         * ButtonPolicies.C (nextState): add if-statement for SMI_NOOP.
469
470         * ButtonController.C (input): add "optimising" if-statement. Actually,
471         things don't work correctly without it...
472
473 2001-03-02  John Levon  <moz@compsoc.man.ac.uk>
474
475         * ViewBase.h: remove #pragma directive
476
477         * ControlConnection.[Ch] (ControlConnectBI c-tor): add explicit c-tor
478         to make g++ happy.
479
480 2001-03-02  Angus Leeming  <a.leeming@ic.ac.uk>
481
482         * ButtonPolicies.[Ch]: moved from ../ButtonPolicies.[Ch]
483
484         * Makefile.am: added ButtonPolicies.[Ch]
485
486         * ButtonController.[Ch]: ButtonController is split into
487         ButtonControllerBase and a template ButtonController class. The base
488         class no longer stores a pointer to a ButtonPolicy, but instead
489         accesses the actual instantiation of the policy through a pure virtual
490         method bp(). This method and the ButtonPolicy itself are instantiated
491         in the templatised ButtonController class. This class is derived from
492         the GUI-specific GUIBC class, meaning that the frontends know
493         nothing about the actual policy decided upon by the controllers.
494
495         * ControlBase.[Ch]: No longer store the View or the ButtonController.
496         Instead the actual instantiations are accessed through pure virtual
497         methods view() and bc(). The daughter classes are responsible for the
498         actual View and ButtonController.
499
500         * ControlCitation.h: the templatised class GUICitation instantiates
501         the methods view() and bc(). It also stores the instances of the
502         View and ButtonController.
503         
504 2001-02-23  Angus Leeming  <a.leeming@ic.ac.uk>
505
506         * ButtonControllerBase.[Ch]: renamed as ButtonController.[Ch]. Class
507         also changed to ButtonController.
508
509         * ControlBase.[Ch]:
510         * ControlConnections.[Ch]:
511         * ControlCommand.[Ch]:
512         * ControlCitation.[Ch]:
513         * ViewBase.h: Changes associated with this.
514
515 2001-01-15  Angus Leeming  <a.leeming@ic.ac.uk>
516
517         * ButtonControllerBase.[Ch]: new files. Split Allan's original
518         xforms/ButtonController class into a GUI-I class (here) and an
519         xforms-specific derived class, to be found in xforms/xformsBC.[Ch].
520
521         * ControlBase.[Ch]: new files. ControlBase is an abstract base class
522         from which all Dialog Controllers should be derived. the Controllers
523         are GUI-independent, but are designed to control the behaviour of
524         GUI-specific implementaions of each dialog.
525
526         * ControlConnections.[Ch]: new files. Classes controlling the
527         connections of buffer-independent, buffer-dependent and Inset dialogs
528         with the LyX kernel.
529
530         * ControlCommand.[Ch]: new files. A controller for all dialogs for the
531         InsetCommand subset of insets.
532
533         * ControlCitation.[Ch]: new files. The test specialisation! A
534         controller for the Citation dialog.
535
536         * ViewBase.h: new file. ViewBase is an abstract base class from which
537         GUI-specific dialogs should be derived. The functionality that the GUIs
538         must now implement is much reduced.