1 2001-07-23 John Levon <moz@compsoc.man.ac.uk>
4 * ControlInclude.C: implement ability to load file
6 2001-07-18 Juergen Vigna <jug@sad.it>
8 * ControlSearch.C (replace): changes to lyxfind.h function calls.
10 2001-07-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12 * biblio.C (getInfo): add a .c_str() to handle the usual
15 2001-07-19 Angus Leeming <a.leeming@ic.ac.uk>
17 * ControlCitation.[Ch]: changes associated with adding natbib support.
18 New public methods, usingNatbib, getCiteStrings and getCiteStyles.
19 New static variable citeStyles_.
21 * biblio.[Ch]: large internal rearrangement.
22 New public enum CiteStyle.
23 New public struct CitationStyle.
24 New public functions getCitationStyle, getCiteCommand, getCiteStyles,
25 getNumericalStrings, getAuthorYearStrings
26 (simpleSearch, regexSearch): no longer publicly accessible.
28 * helper_funcs.C (getStringFromVector): bug fix.
30 2001-07-16 Baruch Even <baruch@lyx.org>
32 * ControlVCLog.h: Added Lsstream.h to includes.
34 2001-07-17 Angus Leeming <a.leeming@ic.ac.uk>
36 * ControlSpellchecker.[Ch]: remove d-tor.
38 2001-07-17 Edwin Leuven <leuven@fee.uva.nl>
40 * ControlSpellchecker.[Ch]: remove member quit() and some cleaning
42 2001-07-16 Juergen Vigna <jug@sad.it>
44 * ControlSpellchecker.C (show): use the lyxrc.use_pspell flag (if
45 compiled with USE_PSPELL) to be able to switch between ISpell and
48 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
50 Consistent use of Lsstream.h:
51 * ControlAboutlyx.[Ch] (getCredits):
52 * ControlVCLog.[Ch] (getVCLogFile): std::stringstream -> stringstream.
54 2001-07-13 Edwin Leuven <leuven@fee.uva.nl>
56 * ControlCredits.[Ch]: removed
57 * ControlCopyright.[Ch]: removed
58 * ControlAboutlyx.[Ch]: added (replaces previous)
59 * GUI.h: removed credits and copyright added about lyx stuff
61 2001-07-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
63 * ControlSpellchecker.C (getSuggestion):
64 (getWord): add std:: qualifier
66 >001-07-13 Edwin Leuven <leuven@fee.uva.nl>
68 * ControlSpellchecker.[Ch]: added
69 * ViewBase.h: added partialUpdate(int) member
70 * GUI.h: added spell stuff
72 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
74 * ControlExternal.C: (*it). -> it->
76 2001-06-16 Angus Leeming <a.leeming@ic.ac.uk>
78 * ButtonController.h: move some included header files out of the
79 frontends and into here.
81 2001-06-15 Angus Leeming <a.leeming@ic.ac.uk>
83 * ControlCharacter.C (c-tor): cosmetic name change of signal.
85 2001-06-13 Angus Leeming <a.leeming@ic.ac.uk>
87 * *.[h]: added // -*- C++ -*-
88 * *.[C]: removed // -*- C++ -*-
90 * ControlCharacter.[Ch]: (setParams): Check contents of font_ to
91 activate Apply button.
92 (clearParams): removed.
93 font_ is now stored as a boost::scoped_ptr.
94 font_ is no longer deleted on hide(), so it's contents can now be used
95 by the Font button on the toolbar.
96 Lots of new methods so that the GUI can easily get the contents of
97 font_ when it update()s.
99 2001-06-12 Angus Leeming <a.leeming@ic.ac.uk>
101 * ControlCharacter.C (apply): test that font_ exists, thereby preventing
102 crash when the Font button on the Toolbar is pressed.
104 * GUI.h: change policy of Character button controller to
105 OkApplyCancelReadOnlyPolicy.
107 2001-06-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
109 * ControlToc.C (getContents): don't add anything to the list if it
110 is supposed to be empty.
112 2001-06-01 Angus Leeming <a.leeming@ic.ac.uk>
114 * helper_funcs.C (getVectorFromString): bug fix.
116 2001-05-30 Angus Leeming <a.leeming@ic.ac.uk>
119 * ButtonControllerBase.[Ch] (refreshReadOnly): new method, called direct
120 from ButtonControllerBase::readOnly. Updates the state of the widgets
121 in the read-only list only when the read-only status of the document
123 (refresh): moved this stuff into refreshReadOnly.
125 2001-05-18 Angus Leeming <a.leeming@ic.ac.uk>
127 * ControlPrint.C (c-tor):
128 * ControlPreamble.C (c-tor): initialise params_ and thereby cure crash.
130 2001-05-14 Angus Leeming <a.leeming@ic.ac.uk>
133 * character.h: small clean-ups.
135 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
137 * ControlToc.C (getType): remove support for old float list.
139 2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
141 * ControlButtons.h: no longer include ButtonControllerBase.h, ViewBase.h
142 * ControlGraphics.h: no longer include insetgraphicsParams.h
143 * ControlInset.h: no longer include LyXView.h
148 * ControlCharacter.C:
151 * ControlConnections.C:
152 * ControlCopyright.C:
164 * ControlTabularCreate.C:
166 * ControlVCLog.C: they're now in here!
168 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
170 * ButtonControllerBase.h: C++ mode, inherit privately from
172 * ButtonPolicies.h: ditto
174 * ButtonController.h: C++ mode, swap init order of restore_ and
177 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
179 * ControlTabularCreate.h:
180 * ControlTabularCreate.C: make dialogs use a pair of uints
184 * ControlVCLog.C: fill a stringstream with the log contents
187 * ControlExternal.C: from Angus, clone the new InsetExternal
190 2001-04-09 Angus Leeming <a.leeming@ic.ac.uk>
192 * helper_funcs.C (getStringFromVector, getVectorFromString): fixed bugs
193 and made more robust.
195 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
204 * ControlCopyright.C: include gettext.h
206 * ControlCharacter.C:
207 * character.C: include gettext.h and language.h
209 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
211 * ButtonController.h:
212 * ButtonControllerBase.h:
213 * ButtonControllerBase.C:
220 * ControlConnections.h:
226 * ViewBase.h: s/ControlButton/ControlButtons/
228 s/UndoAll/Restore/ + associated
230 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
232 * ControlToc.[Ch]: new files; a controller for the TOC popup.
235 * Makefile.am: associated changes with all of the above.
237 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
239 * ControlExternal.C: bug fixes. Can now apply changes to the inset
240 and edit, view, update the External Material correctly. I hope!
242 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
244 * ButtonController.[Ch]: renamed as ButtonControllerBase.[Ch]
246 * BCTemplates.h: renamed as ButtonController.h
248 * ControlBase.[Ch]: renamed as ControlButton.[Ch]. Class named to match.
251 * ControlConnections.h: associated change in #include and class names.
253 * ControlExternal.[Ch]: new files; a controller for the External
257 * Makefile.am: associated changes with all of the above.
259 * ControlGraphics.[Ch]:
260 * ControlInclude.[Ch]:
263 (Browse): new method. Returns the results of a FileDialog browse.
265 * helper_funcs.[Ch] (browseFile): moved from xforms_helpers.[Ch].
266 (getVectorFromString): fixed bug.
268 * biblio.C (simpleSearch): cleaned up.
270 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
272 * A slight reworking of Baruch Even's ButtonController patch.
274 * BCTemplates.h: new file; all the templates for the ButtonController.
275 Including Baruch's new GuiBC class, with setCancelCloseButton() changed
276 to the more generic setButtonLabel().
278 * ButtonController.[Ch]: renamed cancel_label and close_label as
279 cancel_label_ and close_label_.
281 * Makefile.am: added BCTemplates.h
283 2001-03-29 Juergen Vigna <jug@sad.it>
285 * ControlMinipage.C: removed widthp_ and all it's functions and changed
286 to use new %-lengths of LyXLength.
288 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
290 * ControlCitation.C (bibkeysInfo): removed Assert.
292 * ControlCopyright.h: moved GUICopyright into GUI.h
296 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
298 * ControlInset.h (clearDaughterParams): is empty by default, not pure.
299 (setDaughterParams): a (by default empty) new method called in show().
308 * ControlUrl.h (clearDaughterParams): removed
310 * ControlMinipage.C (applyParamsToInset): update the view.
311 Added namespace minipage containing a helper function getUnits.
313 * GUI.h: changed Minipage policy to NoRepeatedApplyReadOnlyPolicy.
315 * ControlCharacter.[Ch]: moved out all the helper functions and the
316 enum into their own file.
317 * character.[Ch]: new files; contain the character helper functions,
318 now inside namespace character.
320 * ControlCitation.[Ch]: moved out all the helper functions and the
321 enums into their own file. Simplified interface.
322 * biblio.[Ch]: new files; contain the citation helper functions,
323 now inside namespace biblio. Will be of use also to an improved
326 * ControlGraphics.[Ch]:
327 * ControlIndex.[Ch]: new files; controllers for the Graphics and Index
328 popups, respectively.
331 * Makefile.am: associated changes.
333 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
335 * ControlMinipage.[Ch]:
336 * ControlPreamble.[Ch]:
338 * ControlSplash.[Ch]: new files; controllers for the Minipage, Preamble
339 and Print popups and Splash screen, respectively.
341 * ViewBase.h (ViewSplash): new base class for GUI-specific Splash
345 * Makefile.am: associated changes.
347 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
349 * ControlConnections.[Ch]: (docType): new method; returns the type
350 of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
353 * ControlSearch.[Ch]:
354 * ControlTabularCreate.[Ch]: new files; controller for the Ref,
355 Search and TabularCreate popups, respectively.
358 * Makefile.am: associated changes.
360 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
362 * ControlCitation.C (getBibkeyInfo): get nasty and assert the info map
365 * ControlInset.h (apply): fix bug. Can now create new insets again.
367 * README: describe program flow.
369 2001-03-24 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
371 * Makefile.am (libcontrollers_la_SOURCES): add ControlDialogs.h
373 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
375 * ControlDialogs.h: moved class ControlInset into its own file.
377 * ControlInset.h: new file. class ControlInset has been expanded to take
378 two template parameters, Inset and Params. Believe that all inset
379 controllers can be derived from this with the minimum of effort.
381 * ControlBibitem.[Ch]:
382 * ControlBibtex.[Ch]:
383 * ControlCitation.[Ch]:
384 * ControlCommand.[Ch]: moved most code into ControlInset.
386 * lots of files. Moved protected stuff into private where possible.
389 * ControlInclude.[Ch]:
390 * ControlUrl.[Ch]: new files; controllers for the LaTeX error,
391 Include and Url popups, respectively.
394 * Makefile.am: associated changes.
396 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
398 * ControlCredits.[Ch] (getCredits): returns a stringstream not a
401 2001-03-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
403 * ControlCredits.C (getCredits): remove std:: qualifier for
406 2001-03-23 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
408 * ControlCredits.C (getCredits): add std:: on vector
410 2001-03-22 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
412 * ControlCredits.C: remove using that is only used once, use
413 std::ios instead of std::iosbase, add some annoying comments.
415 2001-03-22 Angus Leeming <a.leeming@ic.ac.uk>
417 * lots of header files: improved explanatory notes.
419 * ControlBase.[Ch]: removed LyXView & lv_ and methods using it.
420 ControlBase is now a class that only controls the interaction of the
421 View with the ButtonController.
423 * ControlConnections.[Ch]: added LyXView & lv_ and associated methods
424 to ControlConnectBase. The class controls the connection/disconnection
425 of signals from the LyX kernel and makes available the kernel (through
426 lv_) to daughter controller classes.
427 Moved out class ControlConnectInset to a new file ControlDialogs.h.
429 * ControlDialogs.h: new file. Contains the definition of two template
430 controller classes, ControlDialog and ControlInset (was
431 ControlConnectInset). ControlInset is a parent class for controllers
432 of inset-popups. ControlDialogs is the rather uninspired name for
433 the base class of all non-inset popups. (Eg, Document and Paragraph.)
434 ControlDialogs is reaching a state of maturity as several popups now use
435 it and its functionality becomes clear. ControlInset is still in a state
436 of flux. It is likely that functionality will be moved out of
437 ControlCommands and into it.
439 * GUI.h: new file. Moved all the template GUIXXX classes out of the
440 individual Controller header files and into one place. These classes
441 serve only as convenient wrappers to simplify code in the respective
442 frontends' Dialogs::c-tor. Now all derived from a templatised parent.
444 * ControlCharacter.[Ch] (show, update, hide):
445 * ControlLog.[Ch] (show, update, hide):
446 * ControlVCLog.[Ch] (show, update, hide): moved back into
447 the ControlDialogs base class.
448 (setParams, clearParams): new methods containing controller-specific
449 code to set/reset the parameters manipulated by the view.
451 * ControlCommand.[Ch] (clearParams): a new virtual method, by default
453 (hide): calls clearParams.
455 * ControlCitation.[Ch] (hide): renamed as clearParams, a method called
456 by ControlCommand::hide().
458 * ControlCopyright.[Ch]:
459 * ControlCredits.[Ch]: new files; controllers for the copyright and
460 credits popups, respectively.
462 2001-03-21 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
464 * ControlCharacter.C: fix typo
466 2001-03-21 Angus Leeming <a.leeming@ic.ac.uk>
468 * ControlCharacter.[Ch]: new files; controller for the character popup.
470 * ControlCitation.[Ch] (getStringFromVector, getVectorFromString):
471 moved to new files helper_funcs.[Ch].
473 * helper_funcs.[Ch]: new files. Some useful helper functions and
476 * Makefile.am: added new files.
478 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
480 * ControlCitation.C (getBibkeyInfo): parse non-BibTeX entries correctly.
482 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
485 * ControlVCLog.[Ch]: new files; controllers for LaTeX and Version
486 Control log files, respectively.
488 * Makefile.am: added new files.
490 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
492 * ControlBibtex.[Ch]: new files; controller for an InsetBibtex popup.
494 * Makefile.am: added ControlBibtex.[Ch].
496 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
499 * ControlCitation.C: added "using SigC::slot" declaration.
501 * ControlCitation.C (getStringFromVector): re-apply Dekel's recent fix
502 to FormCitation.C prior to the merger: "Do not put space between
505 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
507 * several files: remove CXX_WORKING_NAMESPACES
509 * ButtonController.h: noncopyable is in namespace boost
510 * ButtonPolicies.h: ditto
512 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
514 * Merging changes from BRANCH_MVC back into HEAD.
516 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
518 * Makefile.am: add ControlBibitem.[Ch].
520 * ControlBibitem.[Ch]: new files that together define the Controller
523 * ControlCommand.h (c-tor): give kb_action a default value of
526 * ControlCommand.C (apply): do nothing if kb_action is LFUN_NOACTION.
528 * ControlCitation.[Ch]: moved search functions out of class.
529 (bibkeysInfo): new method. Returns const reference to private data.
530 (searchKeys): added case-sensitive switch. Used only by simpleSearch
533 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
535 * ControlCitation.[Ch]: added Search functions to the class,
536 (shamelessly lifted from Marco's gnome code). I think that these would
537 be better as helper functions outside the class, but this is a first
540 2001-03-07 Angus Leeming <a.leeming@ic.ac.uk>
542 * ControlCitation.[Ch]: (getBibkeyList): removed from class
544 (getBibkeys, getBibkeyInfo): added to class ControlCitation.
545 (getStringFromVector, getVectorFromString, parseBibTeX): new helper
546 funcs. parseBibTeX() is lifted staraight out of Marco's gnome
547 implementation of FormCitation.
549 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
551 * ButtonPolicies.h: add SMI_NOOP to enum.
553 * ButtonPolicies.C (nextState): add if-statement for SMI_NOOP.
555 * ButtonController.C (input): add "optimising" if-statement. Actually,
556 things don't work correctly without it...
558 2001-03-02 John Levon <moz@compsoc.man.ac.uk>
560 * ViewBase.h: remove #pragma directive
562 * ControlConnection.[Ch] (ControlConnectBI c-tor): add explicit c-tor
565 2001-03-02 Angus Leeming <a.leeming@ic.ac.uk>
567 * ButtonPolicies.[Ch]: moved from ../ButtonPolicies.[Ch]
569 * Makefile.am: added ButtonPolicies.[Ch]
571 * ButtonController.[Ch]: ButtonController is split into
572 ButtonControllerBase and a template ButtonController class. The base
573 class no longer stores a pointer to a ButtonPolicy, but instead
574 accesses the actual instantiation of the policy through a pure virtual
575 method bp(). This method and the ButtonPolicy itself are instantiated
576 in the templatised ButtonController class. This class is derived from
577 the GUI-specific GUIBC class, meaning that the frontends know
578 nothing about the actual policy decided upon by the controllers.
580 * ControlBase.[Ch]: No longer store the View or the ButtonController.
581 Instead the actual instantiations are accessed through pure virtual
582 methods view() and bc(). The daughter classes are responsible for the
583 actual View and ButtonController.
585 * ControlCitation.h: the templatised class GUICitation instantiates
586 the methods view() and bc(). It also stores the instances of the
587 View and ButtonController.
589 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
591 * ButtonControllerBase.[Ch]: renamed as ButtonController.[Ch]. Class
592 also changed to ButtonController.
595 * ControlConnections.[Ch]:
596 * ControlCommand.[Ch]:
597 * ControlCitation.[Ch]:
598 * ViewBase.h: Changes associated with this.
600 2001-01-15 Angus Leeming <a.leeming@ic.ac.uk>
602 * ButtonControllerBase.[Ch]: new files. Split Allan's original
603 xforms/ButtonController class into a GUI-I class (here) and an
604 xforms-specific derived class, to be found in xforms/xformsBC.[Ch].
606 * ControlBase.[Ch]: new files. ControlBase is an abstract base class
607 from which all Dialog Controllers should be derived. the Controllers
608 are GUI-independent, but are designed to control the behaviour of
609 GUI-specific implementaions of each dialog.
611 * ControlConnections.[Ch]: new files. Classes controlling the
612 connections of buffer-independent, buffer-dependent and Inset dialogs
615 * ControlCommand.[Ch]: new files. A controller for all dialogs for the
616 InsetCommand subset of insets.
618 * ControlCitation.[Ch]: new files. The test specialisation! A
619 controller for the Citation dialog.
621 * ViewBase.h: new file. ViewBase is an abstract base class from which
622 GUI-specific dialogs should be derived. The functionality that the GUIs
623 must now implement is much reduced.