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