lyx_mirror/src/frontends/qt2
John Levon cc5e971556 update for frnt::etc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4092 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-30 00:26:16 +00:00
..
moc Closer approximation to compiling and building 2002-04-16 22:37:46 +00:00
ui make qt2 compile (linking is another matter) 2002-04-08 17:55:47 +00:00
xforms Closer approximation to compiling and building 2002-04-16 22:37:46 +00:00
.cvsignore The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
Alert_pimpl.C ws cleanup 2002-03-21 21:21:28 +00:00
ChangeLog update for frnt::etc 2002-04-30 00:26:16 +00:00
Dialogs.C change some __GNUG_ to __GNUG__ 2002-04-23 08:16:27 +00:00
emptytable.C ws cleanup 2002-03-21 21:21:28 +00:00
emptytable.h ws cleanup 2002-03-21 21:21:28 +00:00
FileDialog_private.C ws cleanup 2002-03-21 21:21:28 +00:00
FileDialog_private.h ws cleanup 2002-03-21 21:21:28 +00:00
FileDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
GUIRunTime.C ws cleanup 2002-03-21 21:21:28 +00:00
lengthcombo.C ws cleanup 2002-03-21 21:21:28 +00:00
lengthcombo.h ws cleanup 2002-03-21 21:21:28 +00:00
Makefile.am make qt2 compile (linking is another matter) 2002-04-08 17:55:47 +00:00
Makefile.dialogs make qt2 compile (linking is another matter) 2002-04-08 17:55:47 +00:00
QAbout.C ws cleanup 2002-03-21 21:21:28 +00:00
QAbout.h ws cleanup 2002-03-21 21:21:28 +00:00
QAboutDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QAboutDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QBibitem.C ws cleanup 2002-03-21 21:21:28 +00:00
QBibitem.h ws cleanup 2002-03-21 21:21:28 +00:00
QBibitemDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QBibitemDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QBibtex.C ws cleanup 2002-03-21 21:21:28 +00:00
QBibtex.h ws cleanup 2002-03-21 21:21:28 +00:00
QBibtexDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QBibtexDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QCharacter.C update for frnt::etc 2002-04-30 00:26:16 +00:00
QCharacter.h update for frnt::etc 2002-04-30 00:26:16 +00:00
QCharacterDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QCharacterDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QCitation.C ws cleanup 2002-03-21 21:21:28 +00:00
QCitation.h ws cleanup 2002-03-21 21:21:28 +00:00
QCitationDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QCitationDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QDocument.C change some __GNUG_ to __GNUG__ 2002-04-23 08:16:27 +00:00
QDocument.h change some __GNUG_ to __GNUG__ 2002-04-23 08:16:27 +00:00
QDocumentDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QDocumentDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QError.C ws cleanup 2002-03-21 21:21:28 +00:00
QError.h ws cleanup 2002-03-21 21:21:28 +00:00
QErrorDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QErrorDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QERT.C ws cleanup 2002-03-21 21:21:28 +00:00
QERT.h ws cleanup 2002-03-21 21:21:28 +00:00
QERTDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QERTDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QExternal.C ws cleanup 2002-03-21 21:21:28 +00:00
QExternal.h ws cleanup 2002-03-21 21:21:28 +00:00
QExternalDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QExternalDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QFloat.C ws cleanup 2002-03-21 21:21:28 +00:00
QFloat.h ws cleanup 2002-03-21 21:21:28 +00:00
QFloatDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QFloatDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QGraphics.C ws cleanup 2002-03-21 21:21:28 +00:00
QGraphics.h ws cleanup 2002-03-21 21:21:28 +00:00
QGraphicsDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QGraphicsDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QInclude.C ws cleanup 2002-03-21 21:21:28 +00:00
QInclude.h ws cleanup 2002-03-21 21:21:28 +00:00
QIncludeDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QIncludeDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QIndex.C ws cleanup 2002-03-21 21:21:28 +00:00
QIndex.h ws cleanup 2002-03-21 21:21:28 +00:00
QIndexDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QIndexDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QLog.C ws cleanup 2002-03-21 21:21:28 +00:00
QLog.h ws cleanup 2002-03-21 21:21:28 +00:00
QLogDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QLogDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QMinipage.C ws cleanup 2002-03-21 21:21:28 +00:00
QMinipage.h ws cleanup 2002-03-21 21:21:28 +00:00
QMinipageDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QMinipageDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QParagraph.C add include 2002-01-04 03:21:47 +00:00
QParagraph.h ws cleanup 2002-03-21 21:21:28 +00:00
QParagraphDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QParagraphDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QPreamble.C ws cleanup 2002-03-21 21:21:28 +00:00
QPreamble.h ws cleanup 2002-03-21 21:21:28 +00:00
QPreambleDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QPreambleDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QPrint.C ws cleanup 2002-03-21 21:21:28 +00:00
QPrint.h ws cleanup 2002-03-21 21:21:28 +00:00
QPrintDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QPrintDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QRef.C ws cleanup 2002-03-21 21:21:28 +00:00
QRef.h ws cleanup 2002-03-21 21:21:28 +00:00
QRefDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QRefDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QSearch.C ws cleanup 2002-03-21 21:21:28 +00:00
QSearch.h ws cleanup 2002-03-21 21:21:28 +00:00
QSearchDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QSearchDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QShowFile.C ws cleanup 2002-03-21 21:21:28 +00:00
QShowFile.h ws cleanup 2002-03-21 21:21:28 +00:00
QShowFileDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QShowFileDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QSpellchecker.C ws cleanup 2002-03-21 21:21:28 +00:00
QSpellchecker.h ws cleanup 2002-03-21 21:21:28 +00:00
QSpellcheckerDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QSpellcheckerDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
Qt2Base.C ws cleanup 2002-03-21 21:21:28 +00:00
Qt2Base.h ws cleanup 2002-03-21 21:21:28 +00:00
Qt2BC.C ws cleanup 2002-03-21 21:21:28 +00:00
Qt2BC.h some small updates 2001-08-23 21:21:50 +00:00
QTabularCreate.C ws cleanup 2002-03-21 21:21:28 +00:00
QTabularCreate.h ws cleanup 2002-03-21 21:21:28 +00:00
QTabularCreateDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QTabularCreateDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QTexinfo.C Closer approximation to compiling and building 2002-04-16 22:37:46 +00:00
QTexinfo.h ws cleanup 2002-03-21 21:21:28 +00:00
QTexinfoDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QTexinfoDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QThesaurus.C ws cleanup 2002-03-21 21:21:28 +00:00
QThesaurus.h ws cleanup 2002-03-21 21:21:28 +00:00
QThesaurusDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QThesaurusDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QtLyXView.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QToc.C ws cleanup 2002-03-21 21:21:28 +00:00
QToc.h ws cleanup 2002-03-21 21:21:28 +00:00
QTocDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QTocDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
qttableview.C ws cleanup 2002-03-21 21:21:28 +00:00
qttableview.h support for Qt3 2001-12-01 02:24:28 +00:00
QURL.C ws cleanup 2002-03-21 21:21:28 +00:00
QURL.h ws cleanup 2002-03-21 21:21:28 +00:00
QURLDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QURLDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
QVCLog.C ws cleanup 2002-03-21 21:21:28 +00:00
QVCLog.h ws cleanup 2002-03-21 21:21:28 +00:00
QVCLogDialog.C ws cleanup 2002-03-21 21:21:28 +00:00
QVCLogDialog.h ws cleanup 2002-03-21 21:21:28 +00:00
README compile fix 2001-09-18 12:59:06 +00:00
Timeout_pimpl.C ws cleanup 2002-03-21 21:21:28 +00:00
Timeout_pimpl.h ws cleanup 2002-03-21 21:21:28 +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