1 2001-06-13 Angus Leeming <a.leeming@ic.ac.uk>
3 * *.[Ch]: added // -*- C++ -*-
5 * ControlCharacter.[Ch]: added // -*- C++ -*-
6 (setParams): Check contents of font_ to activate Apply button.
7 (clearParams): removed.
8 font_ is now stored as a boost::scoped_ptr.
9 font_ is no longer deleted on hide(), so it's contents can now be used
10 by the Font button on the toolbar.
11 Lots of new methods so that the GUI can easily get the contents of
12 font_ when it update()s.
14 2001-06-12 Angus Leeming <a.leeming@ic.ac.uk>
16 * ControlCharacter.C (apply): test that font_ exists, thereby preventing
17 crash when the Font button on the Toolbar is pressed.
19 * GUI.h: change policy of Character button controller to
20 OkApplyCancelReadOnlyPolicy.
22 2001-06-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
24 * ControlToc.C (getContents): don't add anything to the list if it
25 is supposed to be empty.
27 2001-06-01 Angus Leeming <a.leeming@ic.ac.uk>
29 * helper_funcs.C (getVectorFromString): bug fix.
31 2001-05-30 Angus Leeming <a.leeming@ic.ac.uk>
34 * ButtonControllerBase.[Ch] (refreshReadOnly): new method, called direct
35 from ButtonControllerBase::readOnly. Updates the state of the widgets
36 in the read-only list only when the read-only status of the document
38 (refresh): moved this stuff into refreshReadOnly.
40 2001-05-18 Angus Leeming <a.leeming@ic.ac.uk>
42 * ControlPrint.C (c-tor):
43 * ControlPreamble.C (c-tor): initialise params_ and thereby cure crash.
45 2001-05-14 Angus Leeming <a.leeming@ic.ac.uk>
48 * character.h: small clean-ups.
50 2001-05-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
52 * ControlToc.C (getType): remove support for old float list.
54 2001-04-26 Angus Leeming <a.leeming@ic.ac.uk>
56 * ControlButtons.h: no longer include ButtonControllerBase.h, ViewBase.h
57 * ControlGraphics.h: no longer include insetgraphicsParams.h
58 * ControlInset.h: no longer include LyXView.h
66 * ControlConnections.C:
79 * ControlTabularCreate.C:
81 * ControlVCLog.C: they're now in here!
83 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
85 * ButtonControllerBase.h: C++ mode, inherit privately from
87 * ButtonPolicies.h: ditto
89 * ButtonController.h: C++ mode, swap init order of restore_ and
92 2001-04-06 John Levon <moz@compsoc.man.ac.uk>
94 * ControlTabularCreate.h:
95 * ControlTabularCreate.C: make dialogs use a pair of uints
99 * ControlVCLog.C: fill a stringstream with the log contents
102 * ControlExternal.C: from Angus, clone the new InsetExternal
105 2001-04-09 Angus Leeming <a.leeming@ic.ac.uk>
107 * helper_funcs.C (getStringFromVector, getVectorFromString): fixed bugs
108 and made more robust.
110 2001-04-05 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
119 * ControlCopyright.C: include gettext.h
121 * ControlCharacter.C:
122 * character.C: include gettext.h and language.h
124 2001-04-03 John Levon <moz@compsoc.man.ac.uk>
126 * ButtonController.h:
127 * ButtonControllerBase.h:
128 * ButtonControllerBase.C:
135 * ControlConnections.h:
141 * ViewBase.h: s/ControlButton/ControlButtons/
143 s/UndoAll/Restore/ + associated
145 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
147 * ControlToc.[Ch]: new files; a controller for the TOC popup.
150 * Makefile.am: associated changes with all of the above.
152 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
154 * ControlExternal.C: bug fixes. Can now apply changes to the inset
155 and edit, view, update the External Material correctly. I hope!
157 2001-03-30 Angus Leeming <a.leeming@ic.ac.uk>
159 * ButtonController.[Ch]: renamed as ButtonControllerBase.[Ch]
161 * BCTemplates.h: renamed as ButtonController.h
163 * ControlBase.[Ch]: renamed as ControlButton.[Ch]. Class named to match.
166 * ControlConnections.h: associated change in #include and class names.
168 * ControlExternal.[Ch]: new files; a controller for the External
172 * Makefile.am: associated changes with all of the above.
174 * ControlGraphics.[Ch]:
175 * ControlInclude.[Ch]:
178 (Browse): new method. Returns the results of a FileDialog browse.
180 * helper_funcs.[Ch] (browseFile): moved from xforms_helpers.[Ch].
181 (getVectorFromString): fixed bug.
183 * biblio.C (simpleSearch): cleaned up.
185 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
187 * A slight reworking of Baruch Even's ButtonController patch.
189 * BCTemplates.h: new file; all the templates for the ButtonController.
190 Including Baruch's new GuiBC class, with setCancelCloseButton() changed
191 to the more generic setButtonLabel().
193 * ButtonController.[Ch]: renamed cancel_label and close_label as
194 cancel_label_ and close_label_.
196 * Makefile.am: added BCTemplates.h
198 2001-03-29 Juergen Vigna <jug@sad.it>
200 * ControlMinipage.C: removed widthp_ and all it's functions and changed
201 to use new %-lengths of LyXLength.
203 2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
205 * ControlCitation.C (bibkeysInfo): removed Assert.
207 * ControlCopyright.h: moved GUICopyright into GUI.h
211 2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
213 * ControlInset.h (clearDaughterParams): is empty by default, not pure.
214 (setDaughterParams): a (by default empty) new method called in show().
223 * ControlUrl.h (clearDaughterParams): removed
225 * ControlMinipage.C (applyParamsToInset): update the view.
226 Added namespace minipage containing a helper function getUnits.
228 * GUI.h: changed Minipage policy to NoRepeatedApplyReadOnlyPolicy.
230 * ControlCharacter.[Ch]: moved out all the helper functions and the
231 enum into their own file.
232 * character.[Ch]: new files; contain the character helper functions,
233 now inside namespace character.
235 * ControlCitation.[Ch]: moved out all the helper functions and the
236 enums into their own file. Simplified interface.
237 * biblio.[Ch]: new files; contain the citation helper functions,
238 now inside namespace biblio. Will be of use also to an improved
241 * ControlGraphics.[Ch]:
242 * ControlIndex.[Ch]: new files; controllers for the Graphics and Index
243 popups, respectively.
246 * Makefile.am: associated changes.
248 2001-03-27 Angus Leeming <a.leeming@ic.ac.uk>
250 * ControlMinipage.[Ch]:
251 * ControlPreamble.[Ch]:
253 * ControlSplash.[Ch]: new files; controllers for the Minipage, Preamble
254 and Print popups and Splash screen, respectively.
256 * ViewBase.h (ViewSplash): new base class for GUI-specific Splash
260 * Makefile.am: associated changes.
262 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
264 * ControlConnections.[Ch]: (docType): new method; returns the type
265 of the buffer, LaTeX, Literate, LinuxDoc or DocBook.
268 * ControlSearch.[Ch]:
269 * ControlTabularCreate.[Ch]: new files; controller for the Ref,
270 Search and TabularCreate popups, respectively.
273 * Makefile.am: associated changes.
275 2001-03-26 Angus Leeming <a.leeming@ic.ac.uk>
277 * ControlCitation.C (getBibkeyInfo): get nasty and assert the info map
280 * ControlInset.h (apply): fix bug. Can now create new insets again.
282 * README: describe program flow.
284 2001-03-24 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
286 * Makefile.am (libcontrollers_la_SOURCES): add ControlDialogs.h
288 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
290 * ControlDialogs.h: moved class ControlInset into its own file.
292 * ControlInset.h: new file. class ControlInset has been expanded to take
293 two template parameters, Inset and Params. Believe that all inset
294 controllers can be derived from this with the minimum of effort.
296 * ControlBibitem.[Ch]:
297 * ControlBibtex.[Ch]:
298 * ControlCitation.[Ch]:
299 * ControlCommand.[Ch]: moved most code into ControlInset.
301 * lots of files. Moved protected stuff into private where possible.
304 * ControlInclude.[Ch]:
305 * ControlUrl.[Ch]: new files; controllers for the LaTeX error,
306 Include and Url popups, respectively.
309 * Makefile.am: associated changes.
311 2001-03-23 Angus Leeming <a.leeming@ic.ac.uk>
313 * ControlCredits.[Ch] (getCredits): returns a stringstream not a
316 2001-03-23 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
318 * ControlCredits.C (getCredits): remove std:: qualifier for
321 2001-03-23 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
323 * ControlCredits.C (getCredits): add std:: on vector
325 2001-03-22 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
327 * ControlCredits.C: remove using that is only used once, use
328 std::ios instead of std::iosbase, add some annoying comments.
330 2001-03-22 Angus Leeming <a.leeming@ic.ac.uk>
332 * lots of header files: improved explanatory notes.
334 * ControlBase.[Ch]: removed LyXView & lv_ and methods using it.
335 ControlBase is now a class that only controls the interaction of the
336 View with the ButtonController.
338 * ControlConnections.[Ch]: added LyXView & lv_ and associated methods
339 to ControlConnectBase. The class controls the connection/disconnection
340 of signals from the LyX kernel and makes available the kernel (through
341 lv_) to daughter controller classes.
342 Moved out class ControlConnectInset to a new file ControlDialogs.h.
344 * ControlDialogs.h: new file. Contains the definition of two template
345 controller classes, ControlDialog and ControlInset (was
346 ControlConnectInset). ControlInset is a parent class for controllers
347 of inset-popups. ControlDialogs is the rather uninspired name for
348 the base class of all non-inset popups. (Eg, Document and Paragraph.)
349 ControlDialogs is reaching a state of maturity as several popups now use
350 it and its functionality becomes clear. ControlInset is still in a state
351 of flux. It is likely that functionality will be moved out of
352 ControlCommands and into it.
354 * GUI.h: new file. Moved all the template GUIXXX classes out of the
355 individual Controller header files and into one place. These classes
356 serve only as convenient wrappers to simplify code in the respective
357 frontends' Dialogs::c-tor. Now all derived from a templatised parent.
359 * ControlCharacter.[Ch] (show, update, hide):
360 * ControlLog.[Ch] (show, update, hide):
361 * ControlVCLog.[Ch] (show, update, hide): moved back into
362 the ControlDialogs base class.
363 (setParams, clearParams): new methods containing controller-specific
364 code to set/reset the parameters manipulated by the view.
366 * ControlCommand.[Ch] (clearParams): a new virtual method, by default
368 (hide): calls clearParams.
370 * ControlCitation.[Ch] (hide): renamed as clearParams, a method called
371 by ControlCommand::hide().
373 * ControlCopyright.[Ch]:
374 * ControlCredits.[Ch]: new files; controllers for the copyright and
375 credits popups, respectively.
377 2001-03-21 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
379 * ControlCharacter.C: fix typo
381 2001-03-21 Angus Leeming <a.leeming@ic.ac.uk>
383 * ControlCharacter.[Ch]: new files; controller for the character popup.
385 * ControlCitation.[Ch] (getStringFromVector, getVectorFromString):
386 moved to new files helper_funcs.[Ch].
388 * helper_funcs.[Ch]: new files. Some useful helper functions and
391 * Makefile.am: added new files.
393 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
395 * ControlCitation.C (getBibkeyInfo): parse non-BibTeX entries correctly.
397 2001-03-20 Angus Leeming <a.leeming@ic.ac.uk>
400 * ControlVCLog.[Ch]: new files; controllers for LaTeX and Version
401 Control log files, respectively.
403 * Makefile.am: added new files.
405 2001-03-19 Angus Leeming <a.leeming@ic.ac.uk>
407 * ControlBibtex.[Ch]: new files; controller for an InsetBibtex popup.
409 * Makefile.am: added ControlBibtex.[Ch].
411 2001-03-16 Angus Leeming <a.leeming@ic.ac.uk>
414 * ControlCitation.C: added "using SigC::slot" declaration.
416 * ControlCitation.C (getStringFromVector): re-apply Dekel's recent fix
417 to FormCitation.C prior to the merger: "Do not put space between
420 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
422 * several files: remove CXX_WORKING_NAMESPACES
424 * ButtonController.h: noncopyable is in namespace boost
425 * ButtonPolicies.h: ditto
427 2001-03-14 Angus Leeming <a.leeming@ic.ac.uk>
429 * Merging changes from BRANCH_MVC back into HEAD.
431 2001-03-12 Angus Leeming <a.leeming@ic.ac.uk>
433 * Makefile.am: add ControlBibitem.[Ch].
435 * ControlBibitem.[Ch]: new files that together define the Controller
438 * ControlCommand.h (c-tor): give kb_action a default value of
441 * ControlCommand.C (apply): do nothing if kb_action is LFUN_NOACTION.
443 * ControlCitation.[Ch]: moved search functions out of class.
444 (bibkeysInfo): new method. Returns const reference to private data.
445 (searchKeys): added case-sensitive switch. Used only by simpleSearch
448 2001-03-09 Angus Leeming <a.leeming@ic.ac.uk>
450 * ControlCitation.[Ch]: added Search functions to the class,
451 (shamelessly lifted from Marco's gnome code). I think that these would
452 be better as helper functions outside the class, but this is a first
455 2001-03-07 Angus Leeming <a.leeming@ic.ac.uk>
457 * ControlCitation.[Ch]: (getBibkeyList): removed from class
459 (getBibkeys, getBibkeyInfo): added to class ControlCitation.
460 (getStringFromVector, getVectorFromString, parseBibTeX): new helper
461 funcs. parseBibTeX() is lifted staraight out of Marco's gnome
462 implementation of FormCitation.
464 2001-03-05 Angus Leeming <a.leeming@ic.ac.uk>
466 * ButtonPolicies.h: add SMI_NOOP to enum.
468 * ButtonPolicies.C (nextState): add if-statement for SMI_NOOP.
470 * ButtonController.C (input): add "optimising" if-statement. Actually,
471 things don't work correctly without it...
473 2001-03-02 John Levon <moz@compsoc.man.ac.uk>
475 * ViewBase.h: remove #pragma directive
477 * ControlConnection.[Ch] (ControlConnectBI c-tor): add explicit c-tor
480 2001-03-02 Angus Leeming <a.leeming@ic.ac.uk>
482 * ButtonPolicies.[Ch]: moved from ../ButtonPolicies.[Ch]
484 * Makefile.am: added ButtonPolicies.[Ch]
486 * ButtonController.[Ch]: ButtonController is split into
487 ButtonControllerBase and a template ButtonController class. The base
488 class no longer stores a pointer to a ButtonPolicy, but instead
489 accesses the actual instantiation of the policy through a pure virtual
490 method bp(). This method and the ButtonPolicy itself are instantiated
491 in the templatised ButtonController class. This class is derived from
492 the GUI-specific GUIBC class, meaning that the frontends know
493 nothing about the actual policy decided upon by the controllers.
495 * ControlBase.[Ch]: No longer store the View or the ButtonController.
496 Instead the actual instantiations are accessed through pure virtual
497 methods view() and bc(). The daughter classes are responsible for the
498 actual View and ButtonController.
500 * ControlCitation.h: the templatised class GUICitation instantiates
501 the methods view() and bc(). It also stores the instances of the
502 View and ButtonController.
504 2001-02-23 Angus Leeming <a.leeming@ic.ac.uk>
506 * ButtonControllerBase.[Ch]: renamed as ButtonController.[Ch]. Class
507 also changed to ButtonController.
510 * ControlConnections.[Ch]:
511 * ControlCommand.[Ch]:
512 * ControlCitation.[Ch]:
513 * ViewBase.h: Changes associated with this.
515 2001-01-15 Angus Leeming <a.leeming@ic.ac.uk>
517 * ButtonControllerBase.[Ch]: new files. Split Allan's original
518 xforms/ButtonController class into a GUI-I class (here) and an
519 xforms-specific derived class, to be found in xforms/xformsBC.[Ch].
521 * ControlBase.[Ch]: new files. ControlBase is an abstract base class
522 from which all Dialog Controllers should be derived. the Controllers
523 are GUI-independent, but are designed to control the behaviour of
524 GUI-specific implementaions of each dialog.
526 * ControlConnections.[Ch]: new files. Classes controlling the
527 connections of buffer-independent, buffer-dependent and Inset dialogs
530 * ControlCommand.[Ch]: new files. A controller for all dialogs for the
531 InsetCommand subset of insets.
533 * ControlCitation.[Ch]: new files. The test specialisation! A
534 controller for the Citation dialog.
536 * ViewBase.h: new file. ViewBase is an abstract base class from which
537 GUI-specific dialogs should be derived. The functionality that the GUIs
538 must now implement is much reduced.