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