lyx_mirror/src/frontends/qt2
Lars Gullik Bjønnes 33a28bdc9c Add string << operators for the other streams as well, and removes
c_str() all places where it is not needed anymore.
(I also add config.h to several files that was missing it)
+ added s string constructor to math_symbolinset

I also change some "while(" to "while ("

mmm ... yes ... I add a "zero()" function to LyXLength... an "empty()"
function did not seem appropriate. changed a couple of places that
checked on length.value() != 0.0.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3149 a592a061-630c-0410-9148-cb99ea01b6c8
2001-12-05 08:04:20 +00:00
..
moc support for Qt3 2001-12-01 02:24:28 +00:00
ui minor changes 2001-11-06 18:10:55 +00:00
.cvsignore The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
ChangeLog Add string << operators for the other streams as well, and removes 2001-12-05 08:04:20 +00:00
Dialogs.C Remove old splash dialog(s). 2001-09-27 09:45:57 +00:00
emptytable.C support for Qt3 2001-12-01 02:24:28 +00:00
emptytable.h support for Qt3 2001-12-01 02:24:28 +00:00
FileDialog_private.C remove extraneous line 2001-08-31 03:01:41 +00:00
FileDialog_private.h In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FileDialog.C Fogot to "add" these files when I committed last time. 2001-03-12 12:47:07 +00:00
GUIRunTime.C new alert code 2001-11-26 10:19:58 +00:00
lengthcombo.C add minipage dialog 2001-08-29 02:08:04 +00:00
lengthcombo.h add minipage dialog 2001-08-29 02:08:04 +00:00
Makefile.am support for Qt3 2001-12-01 02:24:28 +00:00
Makefile.dialogs Remove old splash dialog(s). 2001-09-27 09:45:57 +00:00
QAbout.C Angus's compile patch. 2001-08-29 15:37:39 +00:00
QAbout.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QAboutDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QAboutDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QBibitem.C bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibitem.h bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibitemDialog.C bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibitemDialog.h bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibtex.C build fixes, fixes to thesaurus and bibtex. 2001-08-27 20:41:45 +00:00
QBibtex.h Add a Bibtex dialog with Herbert's spangly new things + some more. 2001-08-26 03:20:52 +00:00
QBibtexDialog.C support for Qt3 2001-12-01 02:24:28 +00:00
QBibtexDialog.h build fixes, fixes to thesaurus and bibtex. 2001-08-27 20:41:45 +00:00
QCharacter.C character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCharacter.h character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCharacterDialog.C character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCharacterDialog.h character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCitation.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QCitation.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QCitationDialog.C Angus's compile patch. 2001-08-29 15:37:39 +00:00
QCitationDialog.h some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00
QDocument.C new alert code 2001-11-26 10:19:58 +00:00
QDocument.h Angus's compile patch. 2001-08-29 15:37:39 +00:00
QDocumentDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QDocumentDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QError.C Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QError.h Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QErrorDialog.C Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QErrorDialog.h Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QERT.C forgot cvs add ... 2001-08-26 19:19:27 +00:00
QERT.h forgot cvs add ... 2001-08-26 19:19:27 +00:00
QERTDialog.C forgot cvs add ... 2001-08-26 19:19:27 +00:00
QERTDialog.h forgot cvs add ... 2001-08-26 19:19:27 +00:00
QExternal.C add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QExternal.h add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QExternalDialog.C support for Qt3 2001-12-01 02:24:28 +00:00
QExternalDialog.h add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QGraphics.C add graphics dialog - not quite working 2001-08-28 03:35:17 +00:00
QGraphics.h add graphics dialog - not quite working 2001-08-28 03:35:17 +00:00
QGraphicsDialog.C add graphics dialog - not quite working 2001-08-28 03:35:17 +00:00
QGraphicsDialog.h add graphics dialog - not quite working 2001-08-28 03:35:17 +00:00
QInclude.C include dialog 2001-08-28 01:27:35 +00:00
QInclude.h include dialog 2001-08-28 01:27:35 +00:00
QIncludeDialog.C include dialog 2001-08-28 01:27:35 +00:00
QIncludeDialog.h include dialog 2001-08-28 01:27:35 +00:00
QIndex.C support for Qt3 2001-12-01 02:24:28 +00:00
QIndex.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QIndexDialog.C whatsthis fix 2001-08-29 02:29:26 +00:00
QIndexDialog.h Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QLog.C Angus's compile patch. 2001-08-29 15:37:39 +00:00
QLog.h Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
QLogDialog.C Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
QLogDialog.h Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
QMinipage.C buttons at bottom 2001-09-02 18:10:50 +00:00
QMinipage.h add minipage dialog 2001-08-29 02:08:04 +00:00
QMinipageDialog.C add minipage dialog 2001-08-29 02:08:04 +00:00
QMinipageDialog.h add minipage dialog 2001-08-29 02:08:04 +00:00
QParagraph.C extend John's getLyXText() patch 2001-12-05 05:53:01 +00:00
QParagraph.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QParagraphDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QParagraphDialog.h support for Qt3 2001-12-01 02:24:28 +00:00
QPreamble.C added pre-amble dialog with icky $EDITOR support 2001-08-29 03:35:45 +00:00
QPreamble.h added pre-amble dialog with icky $EDITOR support 2001-08-29 03:35:45 +00:00
QPreambleDialog.C support for Qt3 2001-12-01 02:24:28 +00:00
QPreambleDialog.h added pre-amble dialog with icky $EDITOR support 2001-08-29 03:35:45 +00:00
QPrint.C add print dialog back 2001-08-29 21:11:30 +00:00
QPrint.h add print dialog back 2001-08-29 21:11:30 +00:00
QPrintDialog.C add print dialog back 2001-08-29 21:11:30 +00:00
QPrintDialog.h add print dialog back 2001-08-29 21:11:30 +00:00
QRef.C compile fix 2001-09-18 12:59:06 +00:00
QRef.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QRefDialog.C fix minipage layout 2001-09-06 14:24:09 +00:00
QRefDialog.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QSearch.C re-add search dialog 2001-08-31 02:34:10 +00:00
QSearch.h re-add search dialog 2001-08-31 02:34:10 +00:00
QSearchDialog.C re-add search dialog 2001-08-31 02:34:10 +00:00
QSearchDialog.h re-add search dialog 2001-08-31 02:34:10 +00:00
QSpellchecker.C fix minipage layout 2001-09-06 14:24:09 +00:00
QSpellchecker.h add qt2 spellchecker 2001-09-01 03:52:21 +00:00
QSpellcheckerDialog.C minor changes 2001-11-06 18:10:55 +00:00
QSpellcheckerDialog.h add qt2 spellchecker 2001-09-01 03:52:21 +00:00
Qt2Base.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
Qt2Base.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
Qt2BC.C small silly 2001-08-26 01:01:12 +00:00
Qt2BC.h some small updates 2001-08-23 21:21:50 +00:00
QTabularCreate.C re-add tab create dialog 2001-08-28 04:17:49 +00:00
QTabularCreate.h re-add tab create dialog 2001-08-28 04:17:49 +00:00
QTabularCreateDialog.C fix tab create to layout properly 2001-08-31 03:01:11 +00:00
QTabularCreateDialog.h re-add tab create dialog 2001-08-28 04:17:49 +00:00
QThesaurus.C some mods I had in my local tree, mostly small stuff, perhaps minus the the Makefile changes 2001-09-09 22:02:19 +00:00
QThesaurus.h some mods I had in my local tree, mostly small stuff, perhaps minus the the Makefile changes 2001-09-09 22:02:19 +00:00
QThesaurusDialog.C clear the thesaurus list boxes !! 2001-08-27 21:01:04 +00:00
QThesaurusDialog.h build fixes, fixes to thesaurus and bibtex. 2001-08-27 20:41:45 +00:00
QtLyXView.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QToc.C Angus's compile patch. 2001-08-29 15:37:39 +00:00
QToc.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTocDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTocDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
qttableview.C Add string << operators for the other streams as well, and removes 2001-12-05 08:04:20 +00:00
qttableview.h support for Qt3 2001-12-01 02:24:28 +00:00
QURL.C small silly 2001-08-26 01:01:12 +00:00
QURL.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QURLDialog.C various fixes 2001-08-25 20:04:15 +00:00
QURLDialog.h various fixes 2001-08-25 20:04:15 +00:00
QVCLog.C Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
QVCLog.h Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
QVCLogDialog.C Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
QVCLogDialog.h Log and VCLog dialogs for qt2 2001-08-29 00:37:04 +00:00
README compile fix 2001-09-18 12:59:06 +00:00
Timeout_pimpl.C some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00
Timeout_pimpl.h some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00

This file contains some do's and dont's for the Qt2 frontend.

Random crashes
--------------

Both xforms and Qt use X error handlers which collide - if you get
crashes, try lyx -sync, which seems to help.
 
General rules
-------------

Every editable field that affects the state of the dialog contents
from LyX's point of view should connect its xxxChanged() signal to
a the dialog's changed_adaptor() slot, which in turn should call
form_->changed(). If you are using a more complicated thing anyway,
then remember to call form_->changed() at the end (if it has changed !)
 
Every non-trivial widget should have a tooltip. If you don't know
what to write, write "FIXME", and it can fixed later. Don't be afraid
to use QWhatsThis too, but this must be done in the derived class's
constructor, and use _("...").
 
If necessary, you should override Qt2Base::isValid() for determining the validity
of the current dialog's contents.
 
OK/Apply/Restore/Close should be connected in the derived class's constructor
to call form_->slotOK() etc. Refer to close/cancel as close in the source.
 
Override update_contents() to update the dialog, not update(), and build_dialog(),
not build(). Only these functions may change dialog widgets that may emit changed()
during initialisation, to prevent the button controller from changing its state.

Never call buttoncontroller functions directly from dialogs. In general, you
should use Qt2Base::changed() in all circumstances. However, if you must call
the buttoncontroller, make sure to respect Qt2Base::updating_

Don't #undef emit - #include "QtLyXView.h" instead
 
Naming conventions
------------------

QFoo.[Ch]              The file that interacts with the controller
QFooDialog.[Ch]        The implementation of the dialog, derived from the generated files
ui/QFooDialog.ui       The designer file
ui/QFooDialogBase.[Ch] Generated files from QFooDialog.ui
 
slots should be named e.g. slotFooClicked(), slotFooSelected(), where foo is the name
of the widget.
 
Widgets should be named like "fooXX", where XX is one of the following
widget types :

CB - check box 
CO - combo box
ED - line edit
LA - label
ML -
PB - push button
(FIXME: complete this)

 
Dialog		Maintainer	MVC conversion
----------------------------------------------
About		John		Done
Bibitem		John		Done
Bibtex		John		Done
Character	Edwin		Done
Citation	Kalle		Done
Document	Kalle		Waiting for MVC
ERT		John		Done
Error		John		Done 
External	John		Done 
Graphics	John		Done
Include		John		Done 
Index		Kalle		Done
Log		John		Done
Minipage	John		Done 
Paragraph	Edwin		Waiting for MVC
Preamble	John		Done
Print		Edwin		Done
Ref		Kalle		Done
Search		Edwin		Done
Spellchecker	John		Done
Splash		Edwin
Tabular				Waiting for MVC
TabularCreate	Edwin		Done
Thesaurus	John		Done
Toc		Kalle		Waiting to be updated
Url		Kalle		Done
VCLog		John		Done