1 2001-06-13 Angus Leeming <a.leeming@ic.ac.uk>
3 * *.[h]: added // -*- C++ -*-
4 * *.[C]: removed // -*- C++ -*-
6 * ControlCharacter.[Ch]: added // -*- C++ -*-
7 (setParams): Check contents of font_ to activate Apply button.
8 (clearParams): removed.
9 font_ is now stored as a boost::scoped_ptr.
10 font_ is no longer deleted on hide(), so it's contents can now be used
11 by the Font button on the toolbar.
12 Lots of new methods so that the GUI can easily get the contents of
13 font_ when it update()s.
15 2001-06-12 Angus Leeming <a.leeming@ic.ac.uk>
17 * ControlCharacter.C (apply): test that font_ exists, thereby preventing
18 crash when the Font button on the Toolbar is pressed.
20 * GUI.h: change policy of Character button controller to
21 OkApplyCancelReadOnlyPolicy.
23 2001-06-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
25 * ControlToc.C (getContents): don't add anything to the list if it
26 is supposed to be empty.
28 2001-06-01 Angus Leeming <a.leeming@ic.ac.uk>
30 * helper_funcs.C (getVectorFromString): bug fix.
32 2001-05-30 Angus Leeming <a.leeming@ic.ac.uk>
35 * ButtonControllerBase.[Ch] (refreshReadOnly): new method, called direct
36 from ButtonControllerBase::readOnly. Updates the state of the widgets
37 in the read-only list only when the read-only status of the document
39 (refresh): moved this stuff into refreshReadOnly.
41 2001-05-18 Angus Leeming <a.leeming@ic.ac.uk>
43 * ControlPrint.C (c-tor):
44 * ControlPreamble.C (c-tor): initialise params_ and thereby cure crash.
46 2001-05-14 Angus Leeming <a.leeming@ic.ac.uk>
49 * character.h: small clean-ups.
51 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
53 * ControlToc.C (getType): remove support for old float list.
55 2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
57 * ControlButtons.h: no longer include ButtonControllerBase.h, ViewBase.h
58 * ControlGraphics.h: no longer include insetgraphicsParams.h
59 * ControlInset.h: no longer include LyXView.h
67 * ControlConnections.C:
80 * ControlTabularCreate.C:
82 * ControlVCLog.C: they're now in here!
84 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
86 * ButtonControllerBase.h: C++ mode, inherit privately from
88 * ButtonPolicies.h: ditto
90 * ButtonController.h: C++ mode, swap init order of restore_ and
93 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
95 * ControlTabularCreate.h:
96 * ControlTabularCreate.C: make dialogs use a pair of uints
100 * ControlVCLog.C: fill a stringstream with the log contents
103 * ControlExternal.C: from Angus, clone the new InsetExternal
106 2001-04-09 Angus Leeming <a.leeming@ic.ac.uk>
108 * helper_funcs.C (getStringFromVector, getVectorFromString): fixed bugs
109 and made more robust.
111 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
120 * ControlCopyright.C: include gettext.h
122 * ControlCharacter.C:
123 * character.C: include gettext.h and language.h
125 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
127 * ButtonController.h:
128 * ButtonControllerBase.h:
129 * ButtonControllerBase.C:
136 * ControlConnections.h:
142 * ViewBase.h: s/ControlButton/ControlButtons/
144 s/UndoAll/Restore/ + associated
146 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
148 * ControlToc.[Ch]: new files; a controller for the TOC popup.
151 * Makefile.am: associated changes with all of the above.
153 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
155 * ControlExternal.C: bug fixes. Can now apply changes to the inset
156 and edit, view, update the External Material correctly. I hope!
158 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
160 * ButtonController.[Ch]: renamed as ButtonControllerBase.[Ch]
162 * BCTemplates.h: renamed as ButtonController.h
164 * ControlBase.[Ch]: renamed as ControlButton.[Ch]. Class named to match.
167 * ControlConnections.h: associated change in #include and class names.
169 * ControlExternal.[Ch]: new files; a controller for the External
173 * Makefile.am: associated changes with all of the above.
175 * ControlGraphics.[Ch]:
176 * ControlInclude.[Ch]:
179 (Browse): new method. Returns the results of a FileDialog browse.
181 * helper_funcs.[Ch] (browseFile): moved from xforms_helpers.[Ch].
182 (getVectorFromString): fixed bug.
184 * biblio.C (simpleSearch): cleaned up.
186 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
188 * A slight reworking of Baruch Even's ButtonController patch.
190 * BCTemplates.h: new file; all the templates for the ButtonController.
191 Including Baruch's new GuiBC class, with setCancelCloseButton() changed
192 to the more generic setButtonLabel().
194 * ButtonController.[Ch]: renamed cancel_label and close_label as
195 cancel_label_ and close_label_.
197 * Makefile.am: added BCTemplates.h
199 2001-03-29 Juergen Vigna <jug@sad.it>
201 * ControlMinipage.C: removed widthp_ and all it's functions and changed
202 to use new %-lengths of LyXLength.
204 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
206 * ControlCitation.C (bibkeysInfo): removed Assert.
208 * ControlCopyright.h: moved GUICopyright into GUI.h
212 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
214 * ControlInset.h (clearDaughterParams): is empty by default, not pure.
215 (setDaughterParams): a (by default empty) new method called in show().
224 * ControlUrl.h (clearDaughterParams): removed
226 * ControlMinipage.C (applyParamsToInset): update the view.
227 Added namespace minipage containing a helper function getUnits.
229 * GUI.h: changed Minipage policy to NoRepeatedApplyReadOnlyPolicy.
231 * ControlCharacter.[Ch]: moved out all the helper functions and the
232 enum into their own file.
233 * character.[Ch]: new files; contain the character helper functions,
234 now inside namespace character.
236 * ControlCitation.[Ch]: moved out all the helper functions and the
237 enums into their own file. Simplified interface.
238 * biblio.[Ch]: new files; contain the citation helper functions,
239 now inside namespace biblio. Will be of use also to an improved
242 * ControlGraphics.[Ch]:
243 * ControlIndex.[Ch]: new files; controllers for the Graphics and Index
244 popups, respectively.
247 * Makefile.am: associated changes.
249 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
251 * ControlMinipage.[Ch]:
252 * ControlPreamble.[Ch]:
254 * ControlSplash.[Ch]: new files; controllers for the Minipage, Preamble
255 and Print popups and Splash screen, respectively.
257 * ViewBase.h (ViewSplash): new base class for GUI-specific Splash
261 * Makefile.am: associated changes.
263 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
265 * ControlConnections.[Ch]: (docType): new method; returns the type
266 of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
269 * ControlSearch.[Ch]:
270 * ControlTabularCreate.[Ch]: new files; controller for the Ref,
271 Search and TabularCreate popups, respectively.
274 * Makefile.am: associated changes.
276 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
278 * ControlCitation.C (getBibkeyInfo): get nasty and assert the info map
281 * ControlInset.h (apply): fix bug. Can now create new insets again.
283 * README: describe program flow.
285 2001-03-24 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
287 * Makefile.am (libcontrollers_la_SOURCES): add ControlDialogs.h
289 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
291 * ControlDialogs.h: moved class ControlInset into its own file.
293 * ControlInset.h: new file. class ControlInset has been expanded to take
294 two template parameters, Inset and Params. Believe that all inset
295 controllers can be derived from this with the minimum of effort.
297 * ControlBibitem.[Ch]:
298 * ControlBibtex.[Ch]:
299 * ControlCitation.[Ch]:
300 * ControlCommand.[Ch]: moved most code into ControlInset.
302 * lots of files. Moved protected stuff into private where possible.
305 * ControlInclude.[Ch]:
306 * ControlUrl.[Ch]: new files; controllers for the LaTeX error,
307 Include and Url popups, respectively.
310 * Makefile.am: associated changes.
312 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
314 * ControlCredits.[Ch] (getCredits): returns a stringstream not a
317 2001-03-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
319 * ControlCredits.C (getCredits): remove std:: qualifier for
322 2001-03-23 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
324 * ControlCredits.C (getCredits): add std:: on vector
326 2001-03-22 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
328 * ControlCredits.C: remove using that is only used once, use
329 std::ios instead of std::iosbase, add some annoying comments.
331 2001-03-22 Angus Leeming <a.leeming@ic.ac.uk>
333 * lots of header files: improved explanatory notes.
335 * ControlBase.[Ch]: removed LyXView & lv_ and methods using it.
336 ControlBase is now a class that only controls the interaction of the
337 View with the ButtonController.
339 * ControlConnections.[Ch]: added LyXView & lv_ and associated methods
340 to ControlConnectBase. The class controls the connection/disconnection
341 of signals from the LyX kernel and makes available the kernel (through
342 lv_) to daughter controller classes.
343 Moved out class ControlConnectInset to a new file ControlDialogs.h.
345 * ControlDialogs.h: new file. Contains the definition of two template
346 controller classes, ControlDialog and ControlInset (was
347 ControlConnectInset). ControlInset is a parent class for controllers
348 of inset-popups. ControlDialogs is the rather uninspired name for
349 the base class of all non-inset popups. (Eg, Document and Paragraph.)
350 ControlDialogs is reaching a state of maturity as several popups now use
351 it and its functionality becomes clear. ControlInset is still in a state
352 of flux. It is likely that functionality will be moved out of
353 ControlCommands and into it.
355 * GUI.h: new file. Moved all the template GUIXXX classes out of the
356 individual Controller header files and into one place. These classes
357 serve only as convenient wrappers to simplify code in the respective
358 frontends' Dialogs::c-tor. Now all derived from a templatised parent.
360 * ControlCharacter.[Ch] (show, update, hide):
361 * ControlLog.[Ch] (show, update, hide):
362 * ControlVCLog.[Ch] (show, update, hide): moved back into
363 the ControlDialogs base class.
364 (setParams, clearParams): new methods containing controller-specific
365 code to set/reset the parameters manipulated by the view.
367 * ControlCommand.[Ch] (clearParams): a new virtual method, by default
369 (hide): calls clearParams.
371 * ControlCitation.[Ch] (hide): renamed as clearParams, a method called
372 by ControlCommand::hide().
374 * ControlCopyright.[Ch]:
375 * ControlCredits.[Ch]: new files; controllers for the copyright and
376 credits popups, respectively.
378 2001-03-21 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
380 * ControlCharacter.C: fix typo
382 2001-03-21 Angus Leeming <a.leeming@ic.ac.uk>
384 * ControlCharacter.[Ch]: new files; controller for the character popup.
386 * ControlCitation.[Ch] (getStringFromVector, getVectorFromString):
387 moved to new files helper_funcs.[Ch].
389 * helper_funcs.[Ch]: new files. Some useful helper functions and
392 * Makefile.am: added new files.
394 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
396 * ControlCitation.C (getBibkeyInfo): parse non-BibTeX entries correctly.
398 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
401 * ControlVCLog.[Ch]: new files; controllers for LaTeX and Version
402 Control log files, respectively.
404 * Makefile.am: added new files.
406 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
408 * ControlBibtex.[Ch]: new files; controller for an InsetBibtex popup.
410 * Makefile.am: added ControlBibtex.[Ch].
412 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
415 * ControlCitation.C: added "using SigC::slot" declaration.
417 * ControlCitation.C (getStringFromVector): re-apply Dekel's recent fix
418 to FormCitation.C prior to the merger: "Do not put space between
421 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
423 * several files: remove CXX_WORKING_NAMESPACES
425 * ButtonController.h: noncopyable is in namespace boost
426 * ButtonPolicies.h: ditto
428 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
430 * Merging changes from BRANCH_MVC back into HEAD.
432 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
434 * Makefile.am: add ControlBibitem.[Ch].
436 * ControlBibitem.[Ch]: new files that together define the Controller
439 * ControlCommand.h (c-tor): give kb_action a default value of
442 * ControlCommand.C (apply): do nothing if kb_action is LFUN_NOACTION.
444 * ControlCitation.[Ch]: moved search functions out of class.
445 (bibkeysInfo): new method. Returns const reference to private data.
446 (searchKeys): added case-sensitive switch. Used only by simpleSearch
449 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
451 * ControlCitation.[Ch]: added Search functions to the class,
452 (shamelessly lifted from Marco's gnome code). I think that these would
453 be better as helper functions outside the class, but this is a first
456 2001-03-07 Angus Leeming <a.leeming@ic.ac.uk>
458 * ControlCitation.[Ch]: (getBibkeyList): removed from class
460 (getBibkeys, getBibkeyInfo): added to class ControlCitation.
461 (getStringFromVector, getVectorFromString, parseBibTeX): new helper
462 funcs. parseBibTeX() is lifted staraight out of Marco's gnome
463 implementation of FormCitation.
465 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
467 * ButtonPolicies.h: add SMI_NOOP to enum.
469 * ButtonPolicies.C (nextState): add if-statement for SMI_NOOP.
471 * ButtonController.C (input): add "optimising" if-statement. Actually,
472 things don't work correctly without it...
474 2001-03-02 John Levon <moz@compsoc.man.ac.uk>
476 * ViewBase.h: remove #pragma directive
478 * ControlConnection.[Ch] (ControlConnectBI c-tor): add explicit c-tor
481 2001-03-02 Angus Leeming <a.leeming@ic.ac.uk>
483 * ButtonPolicies.[Ch]: moved from ../ButtonPolicies.[Ch]
485 * Makefile.am: added ButtonPolicies.[Ch]
487 * ButtonController.[Ch]: ButtonController is split into
488 ButtonControllerBase and a template ButtonController class. The base
489 class no longer stores a pointer to a ButtonPolicy, but instead
490 accesses the actual instantiation of the policy through a pure virtual
491 method bp(). This method and the ButtonPolicy itself are instantiated
492 in the templatised ButtonController class. This class is derived from
493 the GUI-specific GUIBC class, meaning that the frontends know
494 nothing about the actual policy decided upon by the controllers.
496 * ControlBase.[Ch]: No longer store the View or the ButtonController.
497 Instead the actual instantiations are accessed through pure virtual
498 methods view() and bc(). The daughter classes are responsible for the
499 actual View and ButtonController.
501 * ControlCitation.h: the templatised class GUICitation instantiates
502 the methods view() and bc(). It also stores the instances of the
503 View and ButtonController.
505 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
507 * ButtonControllerBase.[Ch]: renamed as ButtonController.[Ch]. Class
508 also changed to ButtonController.
511 * ControlConnections.[Ch]:
512 * ControlCommand.[Ch]:
513 * ControlCitation.[Ch]:
514 * ViewBase.h: Changes associated with this.
516 2001-01-15 Angus Leeming <a.leeming@ic.ac.uk>
518 * ButtonControllerBase.[Ch]: new files. Split Allan's original
519 xforms/ButtonController class into a GUI-I class (here) and an
520 xforms-specific derived class, to be found in xforms/xformsBC.[Ch].
522 * ControlBase.[Ch]: new files. ControlBase is an abstract base class
523 from which all Dialog Controllers should be derived. the Controllers
524 are GUI-independent, but are designed to control the behaviour of
525 GUI-specific implementaions of each dialog.
527 * ControlConnections.[Ch]: new files. Classes controlling the
528 connections of buffer-independent, buffer-dependent and Inset dialogs
531 * ControlCommand.[Ch]: new files. A controller for all dialogs for the
532 InsetCommand subset of insets.
534 * ControlCitation.[Ch]: new files. The test specialisation! A
535 controller for the Citation dialog.
537 * ViewBase.h: new file. ViewBase is an abstract base class from which
538 GUI-specific dialogs should be derived. The functionality that the GUIs
539 must now implement is much reduced.