1 2001-06-12 Angus Leeming <a.leeming@ic.ac.uk>
3 * ControlCharacter.C (apply): test that font_ exists, thereby preventing
4 crash when the Font button on the Toolbar is pressed.
6 * GUI.h: change policy of Character button controller to
7 OkApplyCancelReadOnlyPolicy.
9 2001-06-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
11 * ControlToc.C (getContents): don't add anything to the list if it
12 is supposed to be empty.
14 2001-06-01 Angus Leeming <a.leeming@ic.ac.uk>
16 * helper_funcs.C (getVectorFromString): bug fix.
18 2001-05-30 Angus Leeming <a.leeming@ic.ac.uk>
21 * ButtonControllerBase.[Ch] (refreshReadOnly): new method, called direct
22 from ButtonControllerBase::readOnly. Updates the state of the widgets
23 in the read-only list only when the read-only status of the document
25 (refresh): moved this stuff into refreshReadOnly.
27 2001-05-18 Angus Leeming <a.leeming@ic.ac.uk>
29 * ControlPrint.C (c-tor):
30 * ControlPreamble.C (c-tor): initialise params_ and thereby cure crash.
32 2001-05-14 Angus Leeming <a.leeming@ic.ac.uk>
35 * character.h: small clean-ups.
37 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
39 * ControlToc.C (getType): remove support for old float list.
41 2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
43 * ControlButtons.h: no longer include ButtonControllerBase.h, ViewBase.h
44 * ControlGraphics.h: no longer include insetgraphicsParams.h
45 * ControlInset.h: no longer include LyXView.h
53 * ControlConnections.C:
66 * ControlTabularCreate.C:
68 * ControlVCLog.C: they're now in here!
70 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
72 * ButtonControllerBase.h: C++ mode, inherit privately from
74 * ButtonPolicies.h: ditto
76 * ButtonController.h: C++ mode, swap init order of restore_ and
79 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
81 * ControlTabularCreate.h:
82 * ControlTabularCreate.C: make dialogs use a pair of uints
86 * ControlVCLog.C: fill a stringstream with the log contents
89 * ControlExternal.C: from Angus, clone the new InsetExternal
92 2001-04-09 Angus Leeming <a.leeming@ic.ac.uk>
94 * helper_funcs.C (getStringFromVector, getVectorFromString): fixed bugs
97 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
106 * ControlCopyright.C: include gettext.h
108 * ControlCharacter.C:
109 * character.C: include gettext.h and language.h
111 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
113 * ButtonController.h:
114 * ButtonControllerBase.h:
115 * ButtonControllerBase.C:
122 * ControlConnections.h:
128 * ViewBase.h: s/ControlButton/ControlButtons/
130 s/UndoAll/Restore/ + associated
132 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
134 * ControlToc.[Ch]: new files; a controller for the TOC popup.
137 * Makefile.am: associated changes with all of the above.
139 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
141 * ControlExternal.C: bug fixes. Can now apply changes to the inset
142 and edit, view, update the External Material correctly. I hope!
144 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
146 * ButtonController.[Ch]: renamed as ButtonControllerBase.[Ch]
148 * BCTemplates.h: renamed as ButtonController.h
150 * ControlBase.[Ch]: renamed as ControlButton.[Ch]. Class named to match.
153 * ControlConnections.h: associated change in #include and class names.
155 * ControlExternal.[Ch]: new files; a controller for the External
159 * Makefile.am: associated changes with all of the above.
161 * ControlGraphics.[Ch]:
162 * ControlInclude.[Ch]:
165 (Browse): new method. Returns the results of a FileDialog browse.
167 * helper_funcs.[Ch] (browseFile): moved from xforms_helpers.[Ch].
168 (getVectorFromString): fixed bug.
170 * biblio.C (simpleSearch): cleaned up.
172 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
174 * A slight reworking of Baruch Even's ButtonController patch.
176 * BCTemplates.h: new file; all the templates for the ButtonController.
177 Including Baruch's new GuiBC class, with setCancelCloseButton() changed
178 to the more generic setButtonLabel().
180 * ButtonController.[Ch]: renamed cancel_label and close_label as
181 cancel_label_ and close_label_.
183 * Makefile.am: added BCTemplates.h
185 2001-03-29 Juergen Vigna <jug@sad.it>
187 * ControlMinipage.C: removed widthp_ and all it's functions and changed
188 to use new %-lengths of LyXLength.
190 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
192 * ControlCitation.C (bibkeysInfo): removed Assert.
194 * ControlCopyright.h: moved GUICopyright into GUI.h
198 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
200 * ControlInset.h (clearDaughterParams): is empty by default, not pure.
201 (setDaughterParams): a (by default empty) new method called in show().
210 * ControlUrl.h (clearDaughterParams): removed
212 * ControlMinipage.C (applyParamsToInset): update the view.
213 Added namespace minipage containing a helper function getUnits.
215 * GUI.h: changed Minipage policy to NoRepeatedApplyReadOnlyPolicy.
217 * ControlCharacter.[Ch]: moved out all the helper functions and the
218 enum into their own file.
219 * character.[Ch]: new files; contain the character helper functions,
220 now inside namespace character.
222 * ControlCitation.[Ch]: moved out all the helper functions and the
223 enums into their own file. Simplified interface.
224 * biblio.[Ch]: new files; contain the citation helper functions,
225 now inside namespace biblio. Will be of use also to an improved
228 * ControlGraphics.[Ch]:
229 * ControlIndex.[Ch]: new files; controllers for the Graphics and Index
230 popups, respectively.
233 * Makefile.am: associated changes.
235 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
237 * ControlMinipage.[Ch]:
238 * ControlPreamble.[Ch]:
240 * ControlSplash.[Ch]: new files; controllers for the Minipage, Preamble
241 and Print popups and Splash screen, respectively.
243 * ViewBase.h (ViewSplash): new base class for GUI-specific Splash
247 * Makefile.am: associated changes.
249 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
251 * ControlConnections.[Ch]: (docType): new method; returns the type
252 of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
255 * ControlSearch.[Ch]:
256 * ControlTabularCreate.[Ch]: new files; controller for the Ref,
257 Search and TabularCreate popups, respectively.
260 * Makefile.am: associated changes.
262 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
264 * ControlCitation.C (getBibkeyInfo): get nasty and assert the info map
267 * ControlInset.h (apply): fix bug. Can now create new insets again.
269 * README: describe program flow.
271 2001-03-24 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
273 * Makefile.am (libcontrollers_la_SOURCES): add ControlDialogs.h
275 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
277 * ControlDialogs.h: moved class ControlInset into its own file.
279 * ControlInset.h: new file. class ControlInset has been expanded to take
280 two template parameters, Inset and Params. Believe that all inset
281 controllers can be derived from this with the minimum of effort.
283 * ControlBibitem.[Ch]:
284 * ControlBibtex.[Ch]:
285 * ControlCitation.[Ch]:
286 * ControlCommand.[Ch]: moved most code into ControlInset.
288 * lots of files. Moved protected stuff into private where possible.
291 * ControlInclude.[Ch]:
292 * ControlUrl.[Ch]: new files; controllers for the LaTeX error,
293 Include and Url popups, respectively.
296 * Makefile.am: associated changes.
298 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
300 * ControlCredits.[Ch] (getCredits): returns a stringstream not a
303 2001-03-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
305 * ControlCredits.C (getCredits): remove std:: qualifier for
308 2001-03-23 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
310 * ControlCredits.C (getCredits): add std:: on vector
312 2001-03-22 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
314 * ControlCredits.C: remove using that is only used once, use
315 std::ios instead of std::iosbase, add some annoying comments.
317 2001-03-22 Angus Leeming <a.leeming@ic.ac.uk>
319 * lots of header files: improved explanatory notes.
321 * ControlBase.[Ch]: removed LyXView & lv_ and methods using it.
322 ControlBase is now a class that only controls the interaction of the
323 View with the ButtonController.
325 * ControlConnections.[Ch]: added LyXView & lv_ and associated methods
326 to ControlConnectBase. The class controls the connection/disconnection
327 of signals from the LyX kernel and makes available the kernel (through
328 lv_) to daughter controller classes.
329 Moved out class ControlConnectInset to a new file ControlDialogs.h.
331 * ControlDialogs.h: new file. Contains the definition of two template
332 controller classes, ControlDialog and ControlInset (was
333 ControlConnectInset). ControlInset is a parent class for controllers
334 of inset-popups. ControlDialogs is the rather uninspired name for
335 the base class of all non-inset popups. (Eg, Document and Paragraph.)
336 ControlDialogs is reaching a state of maturity as several popups now use
337 it and its functionality becomes clear. ControlInset is still in a state
338 of flux. It is likely that functionality will be moved out of
339 ControlCommands and into it.
341 * GUI.h: new file. Moved all the template GUIXXX classes out of the
342 individual Controller header files and into one place. These classes
343 serve only as convenient wrappers to simplify code in the respective
344 frontends' Dialogs::c-tor. Now all derived from a templatised parent.
346 * ControlCharacter.[Ch] (show, update, hide):
347 * ControlLog.[Ch] (show, update, hide):
348 * ControlVCLog.[Ch] (show, update, hide): moved back into
349 the ControlDialogs base class.
350 (setParams, clearParams): new methods containing controller-specific
351 code to set/reset the parameters manipulated by the view.
353 * ControlCommand.[Ch] (clearParams): a new virtual method, by default
355 (hide): calls clearParams.
357 * ControlCitation.[Ch] (hide): renamed as clearParams, a method called
358 by ControlCommand::hide().
360 * ControlCopyright.[Ch]:
361 * ControlCredits.[Ch]: new files; controllers for the copyright and
362 credits popups, respectively.
364 2001-03-21 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
366 * ControlCharacter.C: fix typo
368 2001-03-21 Angus Leeming <a.leeming@ic.ac.uk>
370 * ControlCharacter.[Ch]: new files; controller for the character popup.
372 * ControlCitation.[Ch] (getStringFromVector, getVectorFromString):
373 moved to new files helper_funcs.[Ch].
375 * helper_funcs.[Ch]: new files. Some useful helper functions and
378 * Makefile.am: added new files.
380 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
382 * ControlCitation.C (getBibkeyInfo): parse non-BibTeX entries correctly.
384 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
387 * ControlVCLog.[Ch]: new files; controllers for LaTeX and Version
388 Control log files, respectively.
390 * Makefile.am: added new files.
392 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
394 * ControlBibtex.[Ch]: new files; controller for an InsetBibtex popup.
396 * Makefile.am: added ControlBibtex.[Ch].
398 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
401 * ControlCitation.C: added "using SigC::slot" declaration.
403 * ControlCitation.C (getStringFromVector): re-apply Dekel's recent fix
404 to FormCitation.C prior to the merger: "Do not put space between
407 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
409 * several files: remove CXX_WORKING_NAMESPACES
411 * ButtonController.h: noncopyable is in namespace boost
412 * ButtonPolicies.h: ditto
414 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
416 * Merging changes from BRANCH_MVC back into HEAD.
418 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
420 * Makefile.am: add ControlBibitem.[Ch].
422 * ControlBibitem.[Ch]: new files that together define the Controller
425 * ControlCommand.h (c-tor): give kb_action a default value of
428 * ControlCommand.C (apply): do nothing if kb_action is LFUN_NOACTION.
430 * ControlCitation.[Ch]: moved search functions out of class.
431 (bibkeysInfo): new method. Returns const reference to private data.
432 (searchKeys): added case-sensitive switch. Used only by simpleSearch
435 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
437 * ControlCitation.[Ch]: added Search functions to the class,
438 (shamelessly lifted from Marco's gnome code). I think that these would
439 be better as helper functions outside the class, but this is a first
442 2001-03-07 Angus Leeming <a.leeming@ic.ac.uk>
444 * ControlCitation.[Ch]: (getBibkeyList): removed from class
446 (getBibkeys, getBibkeyInfo): added to class ControlCitation.
447 (getStringFromVector, getVectorFromString, parseBibTeX): new helper
448 funcs. parseBibTeX() is lifted staraight out of Marco's gnome
449 implementation of FormCitation.
451 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
453 * ButtonPolicies.h: add SMI_NOOP to enum.
455 * ButtonPolicies.C (nextState): add if-statement for SMI_NOOP.
457 * ButtonController.C (input): add "optimising" if-statement. Actually,
458 things don't work correctly without it...
460 2001-03-02 John Levon <moz@compsoc.man.ac.uk>
462 * ViewBase.h: remove #pragma directive
464 * ControlConnection.[Ch] (ControlConnectBI c-tor): add explicit c-tor
467 2001-03-02 Angus Leeming <a.leeming@ic.ac.uk>
469 * ButtonPolicies.[Ch]: moved from ../ButtonPolicies.[Ch]
471 * Makefile.am: added ButtonPolicies.[Ch]
473 * ButtonController.[Ch]: ButtonController is split into
474 ButtonControllerBase and a template ButtonController class. The base
475 class no longer stores a pointer to a ButtonPolicy, but instead
476 accesses the actual instantiation of the policy through a pure virtual
477 method bp(). This method and the ButtonPolicy itself are instantiated
478 in the templatised ButtonController class. This class is derived from
479 the GUI-specific GUIBC class, meaning that the frontends know
480 nothing about the actual policy decided upon by the controllers.
482 * ControlBase.[Ch]: No longer store the View or the ButtonController.
483 Instead the actual instantiations are accessed through pure virtual
484 methods view() and bc(). The daughter classes are responsible for the
485 actual View and ButtonController.
487 * ControlCitation.h: the templatised class GUICitation instantiates
488 the methods view() and bc(). It also stores the instances of the
489 View and ButtonController.
491 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
493 * ButtonControllerBase.[Ch]: renamed as ButtonController.[Ch]. Class
494 also changed to ButtonController.
497 * ControlConnections.[Ch]:
498 * ControlCommand.[Ch]:
499 * ControlCitation.[Ch]:
500 * ViewBase.h: Changes associated with this.
502 2001-01-15 Angus Leeming <a.leeming@ic.ac.uk>
504 * ButtonControllerBase.[Ch]: new files. Split Allan's original
505 xforms/ButtonController class into a GUI-I class (here) and an
506 xforms-specific derived class, to be found in xforms/xformsBC.[Ch].
508 * ControlBase.[Ch]: new files. ControlBase is an abstract base class
509 from which all Dialog Controllers should be derived. the Controllers
510 are GUI-independent, but are designed to control the behaviour of
511 GUI-specific implementaions of each dialog.
513 * ControlConnections.[Ch]: new files. Classes controlling the
514 connections of buffer-independent, buffer-dependent and Inset dialogs
517 * ControlCommand.[Ch]: new files. A controller for all dialogs for the
518 InsetCommand subset of insets.
520 * ControlCitation.[Ch]: new files. The test specialisation! A
521 controller for the Citation dialog.
523 * ViewBase.h: new file. ViewBase is an abstract base class from which
524 GUI-specific dialogs should be derived. The functionality that the GUIs
525 must now implement is much reduced.