lyx_mirror/src/frontends/qt2
John Levon 6232968e20 fix qt2 build.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3556 a592a061-630c-0410-9148-cb99ea01b6c8
2002-02-18 01:44:56 +00:00
..
moc fix qt2 build. 2002-02-18 01:44:56 +00:00
ui fix qt2 build. 2002-02-18 01:44:56 +00:00
.cvsignore The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
ChangeLog fix qt2 build. 2002-02-18 01:44:56 +00:00
Dialogs.C add showfile dialog to qt2 frontend 2002-01-29 10:05:09 +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 fix build, thesaurus 2002-01-16 23:56:25 +00:00
FileDialog_private.h fix build, thesaurus 2002-01-16 23:56:25 +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 first commit new graphics dialog 2002-01-31 13:15:33 +00:00
lengthcombo.h add minipage dialog 2001-08-29 02:08:04 +00:00
Makefile.am fix qt2 build. 2002-02-18 01:44:56 +00:00
Makefile.dialogs add showfile dialog to qt2 frontend 2002-01-29 10:05:09 +00:00
QAbout.C first commit new graphics dialog 2002-01-31 13:15:33 +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 fix build, thesaurus 2002-01-16 23:56:25 +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 fix build, thesaurus 2002-01-16 23:56:25 +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 natbib support for citation dialog 2002-01-20 17:02:09 +00:00
QCitation.h natbib support for citation dialog 2002-01-20 17:02:09 +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 Use buffer language when inserting error insets. 2001-12-15 14:34:17 +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 fix build, thesaurus 2002-01-16 23:56:25 +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
QFloat.C float dialog from edwin 2002-01-25 17:46:18 +00:00
QFloat.h float dialog from edwin 2002-01-25 17:46:18 +00:00
QFloatDialog.C float dialog from edwin 2002-01-25 17:46:18 +00:00
QFloatDialog.h float dialog from edwin 2002-01-25 17:46:18 +00:00
QGraphics.C qt2 frontend compilation fixes 2002-02-06 10:58:08 +00:00
QGraphics.h first commit new graphics dialog 2002-01-31 13:15:33 +00:00
QGraphicsDialog.C first commit new graphics dialog 2002-01-31 13:15:33 +00:00
QGraphicsDialog.h first commit new graphics dialog 2002-01-31 13:15:33 +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 compile fixes 2001-12-05 18:32:49 +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 Make qt2 frontend compile 2002-01-18 09:55:18 +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 add include 2002-01-04 03:21:47 +00:00
QParagraph.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QParagraphDialog.C compile fixes 2001-12-05 18:32:49 +00:00
QParagraphDialog.h compile fixes 2001-12-05 18:32:49 +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 fix qt2 build. 2002-02-18 01:44:56 +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 angus' patch 2002-01-25 19:34:22 +00:00
QShowFile.C add showfile dialog to qt2 frontend 2002-01-29 10:05:09 +00:00
QShowFile.h add showfile dialog to qt2 frontend 2002-01-29 10:05:09 +00:00
QShowFileDialog.C add showfile dialog to qt2 frontend 2002-01-29 10:05:09 +00:00
QShowFileDialog.h add showfile dialog to qt2 frontend 2002-01-29 10:05:09 +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 fix build, thesaurus 2002-01-16 23:56:25 +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
QTexinfo.C angus' patch 2002-01-25 19:34:22 +00:00
QTexinfo.h Add texinfo dialog to qt2 frontend 2002-01-19 13:48:05 +00:00
QTexinfoDialog.C qt2 frontend compilation fixes 2002-02-06 10:58:08 +00:00
QTexinfoDialog.h qt2 frontend compilation fixes 2002-02-06 10:58:08 +00:00
QThesaurus.C fix build, thesaurus 2002-01-16 23:56:25 +00:00
QThesaurus.h fix build, thesaurus 2002-01-16 23:56:25 +00:00
QThesaurusDialog.C fix build, thesaurus 2002-01-16 23:56:25 +00:00
QThesaurusDialog.h fix build, thesaurus 2002-01-16 23:56:25 +00:00
QtLyXView.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QToc.C type can be empty ! 2002-02-06 15:36:29 +00:00
QToc.h TOC dialog is back 2002-01-20 18:38:52 +00:00
QTocDialog.C TOC dialog is back 2002-01-20 18:38:52 +00:00
QTocDialog.h TOC dialog is back 2002-01-20 18:38:52 +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