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