mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 04:17:43 +00:00
6232968e20
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3556 a592a061-630c-0410-9148-cb99ea01b6c8 |
||
---|---|---|
.. | ||
moc | ||
ui | ||
.cvsignore | ||
ChangeLog | ||
Dialogs.C | ||
emptytable.C | ||
emptytable.h | ||
FileDialog_private.C | ||
FileDialog_private.h | ||
FileDialog.C | ||
GUIRunTime.C | ||
lengthcombo.C | ||
lengthcombo.h | ||
Makefile.am | ||
Makefile.dialogs | ||
QAbout.C | ||
QAbout.h | ||
QAboutDialog.C | ||
QAboutDialog.h | ||
QBibitem.C | ||
QBibitem.h | ||
QBibitemDialog.C | ||
QBibitemDialog.h | ||
QBibtex.C | ||
QBibtex.h | ||
QBibtexDialog.C | ||
QBibtexDialog.h | ||
QCharacter.C | ||
QCharacter.h | ||
QCharacterDialog.C | ||
QCharacterDialog.h | ||
QCitation.C | ||
QCitation.h | ||
QCitationDialog.C | ||
QCitationDialog.h | ||
QDocument.C | ||
QDocument.h | ||
QDocumentDialog.C | ||
QDocumentDialog.h | ||
QError.C | ||
QError.h | ||
QErrorDialog.C | ||
QErrorDialog.h | ||
QERT.C | ||
QERT.h | ||
QERTDialog.C | ||
QERTDialog.h | ||
QExternal.C | ||
QExternal.h | ||
QExternalDialog.C | ||
QExternalDialog.h | ||
QFloat.C | ||
QFloat.h | ||
QFloatDialog.C | ||
QFloatDialog.h | ||
QGraphics.C | ||
QGraphics.h | ||
QGraphicsDialog.C | ||
QGraphicsDialog.h | ||
QInclude.C | ||
QInclude.h | ||
QIncludeDialog.C | ||
QIncludeDialog.h | ||
QIndex.C | ||
QIndex.h | ||
QIndexDialog.C | ||
QIndexDialog.h | ||
QLog.C | ||
QLog.h | ||
QLogDialog.C | ||
QLogDialog.h | ||
QMinipage.C | ||
QMinipage.h | ||
QMinipageDialog.C | ||
QMinipageDialog.h | ||
QParagraph.C | ||
QParagraph.h | ||
QParagraphDialog.C | ||
QParagraphDialog.h | ||
QPreamble.C | ||
QPreamble.h | ||
QPreambleDialog.C | ||
QPreambleDialog.h | ||
QPrint.C | ||
QPrint.h | ||
QPrintDialog.C | ||
QPrintDialog.h | ||
QRef.C | ||
QRef.h | ||
QRefDialog.C | ||
QRefDialog.h | ||
QSearch.C | ||
QSearch.h | ||
QSearchDialog.C | ||
QSearchDialog.h | ||
QShowFile.C | ||
QShowFile.h | ||
QShowFileDialog.C | ||
QShowFileDialog.h | ||
QSpellchecker.C | ||
QSpellchecker.h | ||
QSpellcheckerDialog.C | ||
QSpellcheckerDialog.h | ||
Qt2Base.C | ||
Qt2Base.h | ||
Qt2BC.C | ||
Qt2BC.h | ||
QTabularCreate.C | ||
QTabularCreate.h | ||
QTabularCreateDialog.C | ||
QTabularCreateDialog.h | ||
QTexinfo.C | ||
QTexinfo.h | ||
QTexinfoDialog.C | ||
QTexinfoDialog.h | ||
QThesaurus.C | ||
QThesaurus.h | ||
QThesaurusDialog.C | ||
QThesaurusDialog.h | ||
QtLyXView.h | ||
QToc.C | ||
QToc.h | ||
QTocDialog.C | ||
QTocDialog.h | ||
qttableview.C | ||
qttableview.h | ||
QURL.C | ||
QURL.h | ||
QURLDialog.C | ||
QURLDialog.h | ||
QVCLog.C | ||
QVCLog.h | ||
QVCLogDialog.C | ||
QVCLogDialog.h | ||
README | ||
Timeout_pimpl.C | ||
Timeout_pimpl.h |
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