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