1 2001-07-18 Juergen Vigna <jug@sad.it>
3 * ControlSearch.C (replace): changes to lyxfind.h function calls.
5 2001-07-19 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
7 * biblio.C (getInfo): add a .c_str() to handle the usual
10 2001-07-19 Angus Leeming <a.leeming@ic.ac.uk>
12 * ControlCitation.[Ch]: changes associated with adding natbib support.
13 New public methods, usingNatbib, getCiteStrings and getCiteStyles.
14 New static variable citeStyles_.
16 * biblio.[Ch]: large internal rearrangement.
17 New public enum CiteStyle.
18 New public struct CitationStyle.
19 New public functions getCitationStyle, getCiteCommand, getCiteStyles,
20 getNumericalStrings, getAuthorYearStrings
21 (simpleSearch, regexSearch): no longer publicly accessible.
23 * helper_funcs.C (getStringFromVector): bug fix.
25 2001-07-16 Baruch Even <baruch@lyx.org>
27 * ControlVCLog.h: Added Lsstream.h to includes.
29 2001-07-17 Angus Leeming <a.leeming@ic.ac.uk>
31 * ControlSpellchecker.[Ch]: remove d-tor.
33 2001-07-17 Edwin Leuven <leuven@fee.uva.nl>
35 * ControlSpellchecker.[Ch]: remove member quit() and some cleaning
37 2001-07-16 Juergen Vigna <jug@sad.it>
39 * ControlSpellchecker.C (show): use the lyxrc.use_pspell flag (if
40 compiled with USE_PSPELL) to be able to switch between ISpell and
43 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
45 Consistent use of Lsstream.h:
46 * ControlAboutlyx.[Ch] (getCredits):
47 * ControlVCLog.[Ch] (getVCLogFile): std::stringstream -> stringstream.
49 2001-07-13 Edwin Leuven <leuven@fee.uva.nl>
51 * ControlCredits.[Ch]: removed
52 * ControlCopyright.[Ch]: removed
53 * ControlAboutlyx.[Ch]: added (replaces previous)
54 * GUI.h: removed credits and copyright added about lyx stuff
56 2001-07-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
58 * ControlSpellchecker.C (getSuggestion):
59 (getWord): add std:: qualifier
61 >001-07-13 Edwin Leuven <leuven@fee.uva.nl>
63 * ControlSpellchecker.[Ch]: added
64 * ViewBase.h: added partialUpdate(int) member
65 * GUI.h: added spell stuff
67 2001-07-12 Lars Gullik Bjønnes <larsbj@birdstep.com>
69 * ControlExternal.C: (*it). -> it->
71 2001-06-16 Angus Leeming <a.leeming@ic.ac.uk>
73 * ButtonController.h: move some included header files out of the
74 frontends and into here.
76 2001-06-15 Angus Leeming <a.leeming@ic.ac.uk>
78 * ControlCharacter.C (c-tor): cosmetic name change of signal.
80 2001-06-13 Angus Leeming <a.leeming@ic.ac.uk>
82 * *.[h]: added // -*- C++ -*-
83 * *.[C]: removed // -*- C++ -*-
85 * ControlCharacter.[Ch]: (setParams): Check contents of font_ to
86 activate Apply button.
87 (clearParams): removed.
88 font_ is now stored as a boost::scoped_ptr.
89 font_ is no longer deleted on hide(), so it's contents can now be used
90 by the Font button on the toolbar.
91 Lots of new methods so that the GUI can easily get the contents of
92 font_ when it update()s.
94 2001-06-12 Angus Leeming <a.leeming@ic.ac.uk>
96 * ControlCharacter.C (apply): test that font_ exists, thereby preventing
97 crash when the Font button on the Toolbar is pressed.
99 * GUI.h: change policy of Character button controller to
100 OkApplyCancelReadOnlyPolicy.
102 2001-06-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
104 * ControlToc.C (getContents): don't add anything to the list if it
105 is supposed to be empty.
107 2001-06-01 Angus Leeming <a.leeming@ic.ac.uk>
109 * helper_funcs.C (getVectorFromString): bug fix.
111 2001-05-30 Angus Leeming <a.leeming@ic.ac.uk>
114 * ButtonControllerBase.[Ch] (refreshReadOnly): new method, called direct
115 from ButtonControllerBase::readOnly. Updates the state of the widgets
116 in the read-only list only when the read-only status of the document
118 (refresh): moved this stuff into refreshReadOnly.
120 2001-05-18 Angus Leeming <a.leeming@ic.ac.uk>
122 * ControlPrint.C (c-tor):
123 * ControlPreamble.C (c-tor): initialise params_ and thereby cure crash.
125 2001-05-14 Angus Leeming <a.leeming@ic.ac.uk>
128 * character.h: small clean-ups.
130 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
132 * ControlToc.C (getType): remove support for old float list.
134 2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
136 * ControlButtons.h: no longer include ButtonControllerBase.h, ViewBase.h
137 * ControlGraphics.h: no longer include insetgraphicsParams.h
138 * ControlInset.h: no longer include LyXView.h
143 * ControlCharacter.C:
146 * ControlConnections.C:
147 * ControlCopyright.C:
159 * ControlTabularCreate.C:
161 * ControlVCLog.C: they're now in here!
163 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
165 * ButtonControllerBase.h: C++ mode, inherit privately from
167 * ButtonPolicies.h: ditto
169 * ButtonController.h: C++ mode, swap init order of restore_ and
172 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
174 * ControlTabularCreate.h:
175 * ControlTabularCreate.C: make dialogs use a pair of uints
179 * ControlVCLog.C: fill a stringstream with the log contents
182 * ControlExternal.C: from Angus, clone the new InsetExternal
185 2001-04-09 Angus Leeming <a.leeming@ic.ac.uk>
187 * helper_funcs.C (getStringFromVector, getVectorFromString): fixed bugs
188 and made more robust.
190 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
199 * ControlCopyright.C: include gettext.h
201 * ControlCharacter.C:
202 * character.C: include gettext.h and language.h
204 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
206 * ButtonController.h:
207 * ButtonControllerBase.h:
208 * ButtonControllerBase.C:
215 * ControlConnections.h:
221 * ViewBase.h: s/ControlButton/ControlButtons/
223 s/UndoAll/Restore/ + associated
225 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
227 * ControlToc.[Ch]: new files; a controller for the TOC popup.
230 * Makefile.am: associated changes with all of the above.
232 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
234 * ControlExternal.C: bug fixes. Can now apply changes to the inset
235 and edit, view, update the External Material correctly. I hope!
237 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
239 * ButtonController.[Ch]: renamed as ButtonControllerBase.[Ch]
241 * BCTemplates.h: renamed as ButtonController.h
243 * ControlBase.[Ch]: renamed as ControlButton.[Ch]. Class named to match.
246 * ControlConnections.h: associated change in #include and class names.
248 * ControlExternal.[Ch]: new files; a controller for the External
252 * Makefile.am: associated changes with all of the above.
254 * ControlGraphics.[Ch]:
255 * ControlInclude.[Ch]:
258 (Browse): new method. Returns the results of a FileDialog browse.
260 * helper_funcs.[Ch] (browseFile): moved from xforms_helpers.[Ch].
261 (getVectorFromString): fixed bug.
263 * biblio.C (simpleSearch): cleaned up.
265 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
267 * A slight reworking of Baruch Even's ButtonController patch.
269 * BCTemplates.h: new file; all the templates for the ButtonController.
270 Including Baruch's new GuiBC class, with setCancelCloseButton() changed
271 to the more generic setButtonLabel().
273 * ButtonController.[Ch]: renamed cancel_label and close_label as
274 cancel_label_ and close_label_.
276 * Makefile.am: added BCTemplates.h
278 2001-03-29 Juergen Vigna <jug@sad.it>
280 * ControlMinipage.C: removed widthp_ and all it's functions and changed
281 to use new %-lengths of LyXLength.
283 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
285 * ControlCitation.C (bibkeysInfo): removed Assert.
287 * ControlCopyright.h: moved GUICopyright into GUI.h
291 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
293 * ControlInset.h (clearDaughterParams): is empty by default, not pure.
294 (setDaughterParams): a (by default empty) new method called in show().
303 * ControlUrl.h (clearDaughterParams): removed
305 * ControlMinipage.C (applyParamsToInset): update the view.
306 Added namespace minipage containing a helper function getUnits.
308 * GUI.h: changed Minipage policy to NoRepeatedApplyReadOnlyPolicy.
310 * ControlCharacter.[Ch]: moved out all the helper functions and the
311 enum into their own file.
312 * character.[Ch]: new files; contain the character helper functions,
313 now inside namespace character.
315 * ControlCitation.[Ch]: moved out all the helper functions and the
316 enums into their own file. Simplified interface.
317 * biblio.[Ch]: new files; contain the citation helper functions,
318 now inside namespace biblio. Will be of use also to an improved
321 * ControlGraphics.[Ch]:
322 * ControlIndex.[Ch]: new files; controllers for the Graphics and Index
323 popups, respectively.
326 * Makefile.am: associated changes.
328 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
330 * ControlMinipage.[Ch]:
331 * ControlPreamble.[Ch]:
333 * ControlSplash.[Ch]: new files; controllers for the Minipage, Preamble
334 and Print popups and Splash screen, respectively.
336 * ViewBase.h (ViewSplash): new base class for GUI-specific Splash
340 * Makefile.am: associated changes.
342 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
344 * ControlConnections.[Ch]: (docType): new method; returns the type
345 of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
348 * ControlSearch.[Ch]:
349 * ControlTabularCreate.[Ch]: new files; controller for the Ref,
350 Search and TabularCreate popups, respectively.
353 * Makefile.am: associated changes.
355 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
357 * ControlCitation.C (getBibkeyInfo): get nasty and assert the info map
360 * ControlInset.h (apply): fix bug. Can now create new insets again.
362 * README: describe program flow.
364 2001-03-24 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
366 * Makefile.am (libcontrollers_la_SOURCES): add ControlDialogs.h
368 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
370 * ControlDialogs.h: moved class ControlInset into its own file.
372 * ControlInset.h: new file. class ControlInset has been expanded to take
373 two template parameters, Inset and Params. Believe that all inset
374 controllers can be derived from this with the minimum of effort.
376 * ControlBibitem.[Ch]:
377 * ControlBibtex.[Ch]:
378 * ControlCitation.[Ch]:
379 * ControlCommand.[Ch]: moved most code into ControlInset.
381 * lots of files. Moved protected stuff into private where possible.
384 * ControlInclude.[Ch]:
385 * ControlUrl.[Ch]: new files; controllers for the LaTeX error,
386 Include and Url popups, respectively.
389 * Makefile.am: associated changes.
391 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
393 * ControlCredits.[Ch] (getCredits): returns a stringstream not a
396 2001-03-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
398 * ControlCredits.C (getCredits): remove std:: qualifier for
401 2001-03-23 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
403 * ControlCredits.C (getCredits): add std:: on vector
405 2001-03-22 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
407 * ControlCredits.C: remove using that is only used once, use
408 std::ios instead of std::iosbase, add some annoying comments.
410 2001-03-22 Angus Leeming <a.leeming@ic.ac.uk>
412 * lots of header files: improved explanatory notes.
414 * ControlBase.[Ch]: removed LyXView & lv_ and methods using it.
415 ControlBase is now a class that only controls the interaction of the
416 View with the ButtonController.
418 * ControlConnections.[Ch]: added LyXView & lv_ and associated methods
419 to ControlConnectBase. The class controls the connection/disconnection
420 of signals from the LyX kernel and makes available the kernel (through
421 lv_) to daughter controller classes.
422 Moved out class ControlConnectInset to a new file ControlDialogs.h.
424 * ControlDialogs.h: new file. Contains the definition of two template
425 controller classes, ControlDialog and ControlInset (was
426 ControlConnectInset). ControlInset is a parent class for controllers
427 of inset-popups. ControlDialogs is the rather uninspired name for
428 the base class of all non-inset popups. (Eg, Document and Paragraph.)
429 ControlDialogs is reaching a state of maturity as several popups now use
430 it and its functionality becomes clear. ControlInset is still in a state
431 of flux. It is likely that functionality will be moved out of
432 ControlCommands and into it.
434 * GUI.h: new file. Moved all the template GUIXXX classes out of the
435 individual Controller header files and into one place. These classes
436 serve only as convenient wrappers to simplify code in the respective
437 frontends' Dialogs::c-tor. Now all derived from a templatised parent.
439 * ControlCharacter.[Ch] (show, update, hide):
440 * ControlLog.[Ch] (show, update, hide):
441 * ControlVCLog.[Ch] (show, update, hide): moved back into
442 the ControlDialogs base class.
443 (setParams, clearParams): new methods containing controller-specific
444 code to set/reset the parameters manipulated by the view.
446 * ControlCommand.[Ch] (clearParams): a new virtual method, by default
448 (hide): calls clearParams.
450 * ControlCitation.[Ch] (hide): renamed as clearParams, a method called
451 by ControlCommand::hide().
453 * ControlCopyright.[Ch]:
454 * ControlCredits.[Ch]: new files; controllers for the copyright and
455 credits popups, respectively.
457 2001-03-21 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
459 * ControlCharacter.C: fix typo
461 2001-03-21 Angus Leeming <a.leeming@ic.ac.uk>
463 * ControlCharacter.[Ch]: new files; controller for the character popup.
465 * ControlCitation.[Ch] (getStringFromVector, getVectorFromString):
466 moved to new files helper_funcs.[Ch].
468 * helper_funcs.[Ch]: new files. Some useful helper functions and
471 * Makefile.am: added new files.
473 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
475 * ControlCitation.C (getBibkeyInfo): parse non-BibTeX entries correctly.
477 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
480 * ControlVCLog.[Ch]: new files; controllers for LaTeX and Version
481 Control log files, respectively.
483 * Makefile.am: added new files.
485 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
487 * ControlBibtex.[Ch]: new files; controller for an InsetBibtex popup.
489 * Makefile.am: added ControlBibtex.[Ch].
491 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
494 * ControlCitation.C: added "using SigC::slot" declaration.
496 * ControlCitation.C (getStringFromVector): re-apply Dekel's recent fix
497 to FormCitation.C prior to the merger: "Do not put space between
500 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
502 * several files: remove CXX_WORKING_NAMESPACES
504 * ButtonController.h: noncopyable is in namespace boost
505 * ButtonPolicies.h: ditto
507 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
509 * Merging changes from BRANCH_MVC back into HEAD.
511 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
513 * Makefile.am: add ControlBibitem.[Ch].
515 * ControlBibitem.[Ch]: new files that together define the Controller
518 * ControlCommand.h (c-tor): give kb_action a default value of
521 * ControlCommand.C (apply): do nothing if kb_action is LFUN_NOACTION.
523 * ControlCitation.[Ch]: moved search functions out of class.
524 (bibkeysInfo): new method. Returns const reference to private data.
525 (searchKeys): added case-sensitive switch. Used only by simpleSearch
528 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
530 * ControlCitation.[Ch]: added Search functions to the class,
531 (shamelessly lifted from Marco's gnome code). I think that these would
532 be better as helper functions outside the class, but this is a first
535 2001-03-07 Angus Leeming <a.leeming@ic.ac.uk>
537 * ControlCitation.[Ch]: (getBibkeyList): removed from class
539 (getBibkeys, getBibkeyInfo): added to class ControlCitation.
540 (getStringFromVector, getVectorFromString, parseBibTeX): new helper
541 funcs. parseBibTeX() is lifted staraight out of Marco's gnome
542 implementation of FormCitation.
544 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
546 * ButtonPolicies.h: add SMI_NOOP to enum.
548 * ButtonPolicies.C (nextState): add if-statement for SMI_NOOP.
550 * ButtonController.C (input): add "optimising" if-statement. Actually,
551 things don't work correctly without it...
553 2001-03-02 John Levon <moz@compsoc.man.ac.uk>
555 * ViewBase.h: remove #pragma directive
557 * ControlConnection.[Ch] (ControlConnectBI c-tor): add explicit c-tor
560 2001-03-02 Angus Leeming <a.leeming@ic.ac.uk>
562 * ButtonPolicies.[Ch]: moved from ../ButtonPolicies.[Ch]
564 * Makefile.am: added ButtonPolicies.[Ch]
566 * ButtonController.[Ch]: ButtonController is split into
567 ButtonControllerBase and a template ButtonController class. The base
568 class no longer stores a pointer to a ButtonPolicy, but instead
569 accesses the actual instantiation of the policy through a pure virtual
570 method bp(). This method and the ButtonPolicy itself are instantiated
571 in the templatised ButtonController class. This class is derived from
572 the GUI-specific GUIBC class, meaning that the frontends know
573 nothing about the actual policy decided upon by the controllers.
575 * ControlBase.[Ch]: No longer store the View or the ButtonController.
576 Instead the actual instantiations are accessed through pure virtual
577 methods view() and bc(). The daughter classes are responsible for the
578 actual View and ButtonController.
580 * ControlCitation.h: the templatised class GUICitation instantiates
581 the methods view() and bc(). It also stores the instances of the
582 View and ButtonController.
584 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
586 * ButtonControllerBase.[Ch]: renamed as ButtonController.[Ch]. Class
587 also changed to ButtonController.
590 * ControlConnections.[Ch]:
591 * ControlCommand.[Ch]:
592 * ControlCitation.[Ch]:
593 * ViewBase.h: Changes associated with this.
595 2001-01-15 Angus Leeming <a.leeming@ic.ac.uk>
597 * ButtonControllerBase.[Ch]: new files. Split Allan's original
598 xforms/ButtonController class into a GUI-I class (here) and an
599 xforms-specific derived class, to be found in xforms/xformsBC.[Ch].
601 * ControlBase.[Ch]: new files. ControlBase is an abstract base class
602 from which all Dialog Controllers should be derived. the Controllers
603 are GUI-independent, but are designed to control the behaviour of
604 GUI-specific implementaions of each dialog.
606 * ControlConnections.[Ch]: new files. Classes controlling the
607 connections of buffer-independent, buffer-dependent and Inset dialogs
610 * ControlCommand.[Ch]: new files. A controller for all dialogs for the
611 InsetCommand subset of insets.
613 * ControlCitation.[Ch]: new files. The test specialisation! A
614 controller for the Citation dialog.
616 * ViewBase.h: new file. ViewBase is an abstract base class from which
617 GUI-specific dialogs should be derived. The functionality that the GUIs
618 must now implement is much reduced.