lyx_mirror/src/frontends/qt2
Lars Gullik Bjønnes ce708d095c ws fixes, formatting and some other small changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5463 a592a061-630c-0410-9148-cb99ea01b6c8
2002-10-21 17:38:09 +00:00
..
moc Remove moc generated files with distclean 2002-10-17 09:49:44 +00:00
ui Remove two accidental XPM inclusions. 2002-10-20 02:24:31 +00:00
.cvsignore
Alert_pimpl.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
BulletsModule.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
BulletsModule.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
ChangeLog ws fixes, formatting and some other small changes 2002-10-21 17:38:09 +00:00
Dialogs2.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Dialogs_impl.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Dialogs.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
emptytable.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
emptytable.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
FileDialog_private.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
FileDialog_private.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
FileDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
iconpalette.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
iconpalette.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
io_callback.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
io_callback.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
lengthcombo.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
lengthcombo.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
lyx_gui.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
LyXKeySymFactory.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
LyXScreenFactory.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Makefile.am Brand new qt document dialog. Not finished yet though. TODO is updated and lists 2002-10-09 08:59:02 +00:00
Makefile.dialogs Juergen's QSendto. 2002-10-16 21:26:35 +00:00
Menubar_pimpl.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Menubar_pimpl.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QAbout.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QAbout.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QAboutDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QAboutDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibitem.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibitem.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibitemDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibitemDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibtex.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibtex.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibtexDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBibtexDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBrowseBox.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QBrowseBox.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCharacter.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCharacter.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCharacterDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCharacterDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCitation.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCitation.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCitationDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCitationDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCommandBuffer.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCommandBuffer.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCommandEdit.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QCommandEdit.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QContentPane.C Patch from Philippe Elie for making mouse wheel do 2002-10-21 04:46:26 +00:00
QContentPane.h Patch from Philippe Elie for making mouse wheel do 2002-10-21 04:46:26 +00:00
QDelimiterDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QDelimiterDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QDocument.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QDocument.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QDocumentDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QDocumentDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QError.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QError.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QErrorDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QErrorDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QERT.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QERT.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QERTDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QERTDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QExternal.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QExternal.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QExternalDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QExternalDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QFloat.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QFloat.h Lots and lots of little trivial bits. 2002-09-24 13:57:09 +00:00
QFloatDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QFloatDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qfont_loader.C Use QT_VERSION >= 300 instead of >= 0x030000 2002-10-20 14:27:28 +00:00
qfont_loader.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qfont_metrics.C Fix ascent() 2002-10-21 15:51:06 +00:00
QGraphics.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QGraphics.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QGraphicsDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QGraphicsDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qgridview.cpp Brand new qt document dialog. Not finished yet though. TODO is updated and lists 2002-10-09 08:59:02 +00:00
qgridview.h Brand new qt document dialog. Not finished yet though. TODO is updated and lists 2002-10-09 08:59:02 +00:00
QInclude.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QInclude.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QIncludeDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QIncludeDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QIndex.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QIndex.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QIndexDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QIndexDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLImage.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLImage.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qlkey.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLogDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLogDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLPainter.C Use QT_VERSION >= 300 instead of >= 0x030000 2002-10-20 14:27:28 +00:00
QLPainter.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLPopupMenu.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLPopupMenu.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLyXKeySym.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QLyXKeySym.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMath.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMath.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMathDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMathDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMinipage.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMinipage.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMinipageDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QMinipageDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QParagraph.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QParagraph.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QParagraphDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QParagraphDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPreamble.C ws fixes, formatting and some other small changes 2002-10-21 17:38:09 +00:00
QPreamble.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPreambleDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPreambleDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPrint.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPrint.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPrintDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QPrintDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QRef.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QRef.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QRefDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QRefDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qscreen.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qscreen.h Lots and lots of little trivial bits. 2002-09-24 13:57:09 +00:00
QSearch.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSearch.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSearchDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSearchDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSendto.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSendto.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSendtoDialog.C Juergen's QSendto. 2002-10-16 21:26:35 +00:00
QSendtoDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QShowFile.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QShowFile.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QShowFileDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QShowFileDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSpellchecker.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSpellchecker.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSpellcheckerDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QSpellcheckerDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Qt2Base.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Qt2Base.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Qt2BC.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Qt2BC.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTabularCreate.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTabularCreate.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTabularCreateDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTabularCreateDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTexinfo.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTexinfo.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTexinfoDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTexinfoDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QThesaurus.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QThesaurus.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QThesaurusDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QThesaurusDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QtLyXView.h Lots and lots of little trivial bits. 2002-09-24 13:57:09 +00:00
QToc.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QToc.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTocDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QTocDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
qttableview.C
qttableview.h
QtView.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QtView.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QURL.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QURL.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QURLDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QURLDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QVCLog.C ws fixes, formatting and some other small changes 2002-10-21 17:38:09 +00:00
QVCLog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QVCLogDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QVCLogDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QWorkArea.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QWorkArea.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QWrap.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QWrap.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QWrapDialog.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
QWrapDialog.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
README the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Timeout_pimpl.C Lots and lots of little trivial bits. 2002-09-24 13:57:09 +00:00
Timeout_pimpl.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
TODO Brand new qt document dialog. Not finished yet though. TODO is updated and lists 2002-10-09 08:59:02 +00:00
Toolbar_pimpl.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
Toolbar_pimpl.h the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00
WorkAreaFactory.C the qtclean-2 patch with some very small changes 2002-10-20 01:48:28 +00:00

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

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 _("..."). Non-trivial means that things like "OK"
/must not/ have a tooltip.
 
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 to be updated
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


Stuff to be aware of
--------------------

The connect statement in Qt is a macro and its arguments does not follow
the C++ standard as it should. Using the construct "Type const &" as
argument will lead to runtime-errors, use "const Type &" instead.

ex.

--right--

	connect(list, SIGNAL(selected(const QString &)),
		this, SLOT(complete_selected(const QString &)));

--wrong--

	connect(list, SIGNAL(selected(QString const &)),
		this, SLOT(complete_selected(QString const &)));