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