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