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