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