lyx_mirror/src/frontends/qt2
John Levon ee8d50c73d Michael's UI patch v2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7548 a592a061-630c-0410-9148-cb99ea01b6c8
2003-08-14 15:45:09 +00:00
..
moc allow to compile several frontends at once (and produce several binaries) 2003-08-02 20:01:52 +00:00
ui Michael's UI patch v2 2003-08-14 15:45:09 +00:00
.cvsignore The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
Alert_pimpl.C Fix compilation qt + included string by getting rid of the #ifdef 2003-07-10 12:14:47 +00:00
BulletsModule.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
BulletsModule.h rework the bullets panel 2003-03-29 01:29:20 +00:00
ChangeLog Michael's UI patch v2 2003-08-14 15:45:09 +00:00
Dialogs2.C Move the Texinfo dialog to the new Dialog scheme. 2003-06-19 17:16:12 +00:00
Dialogs.C The QNote dialog 2003-07-15 12:48:24 +00:00
emptytable.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
emptytable.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
FileDialog_private.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
FileDialog_private.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
FileDialog.C rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree ! 2003-03-19 17:15:32 +00:00
floatplacement.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
floatplacement.h Big doc dialog reorganisation 2003-03-28 17:19:49 +00:00
iconpalette.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
iconpalette.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
io_callback.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
io_callback.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
lcolorcache.C lcolor cache 2003-05-24 15:19:05 +00:00
lcolorcache.h lcolor cache 2003-05-24 15:19:05 +00:00
lengthcombo.C Par dialog UI fixes 2003-03-28 19:45:53 +00:00
lengthcombo.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
lyx_gui.C namespace grfx -> lyx::graphics 2003-07-04 08:23:23 +00:00
LyXKeySymFactory.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
LyXScreenFactory.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
Makefile.am allow to compile several frontends at once (and produce several binaries) 2003-08-02 20:01:52 +00:00
Makefile.dialogs towards saner frontends. Part I: the toolbar 2003-07-25 18:10:34 +00:00
panelstack.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
panelstack.h Introduce a new paned dialog class and use it for prefs 2003-03-28 01:21:42 +00:00
QAbout.C STRCONV() 2003-07-10 13:13:56 +00:00
QAbout.h Port the About LyX dialog to the Dialog scheme. 2003-03-09 20:29:58 +00:00
QAboutDialog.C the doxygen patch 2003-06-28 01:23:11 +00:00
QAboutDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QBibitem.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QBibitem.h port the minipage dialog to the new scheme. Various other small changes 2003-03-07 14:08:10 +00:00
QBibitemDialog.C port the minipage dialog to the new scheme. Various other small changes 2003-03-07 14:08:10 +00:00
QBibitemDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QBibtex.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QBibtex.h Hold on to your hats. 2003-02-25 14:51:38 +00:00
QBibtexDialog.C QBibtex/QCitation ui fixes (bug 1146) 2003-07-21 09:08:14 +00:00
QBibtexDialog.h bibtex dialog fixes 2003-04-12 03:08:08 +00:00
QBrowseBox.C the doxygen patch 2003-06-28 01:23:11 +00:00
QBrowseBox.h the doxygen patch 2003-06-28 01:23:11 +00:00
QChanges.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QChanges.h Port the Merge Changes dialog to the Dialog scheme. 2003-03-09 21:03:43 +00:00
QChangesDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QChangesDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QCharacter.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QCharacter.h Yesterday's character dialog patch 2003-03-12 22:17:50 +00:00
QCharacterDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QCharacterDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QCitation.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QCitation.h Citation dialog fixes 2003-04-04 03:19:00 +00:00
QCitationDialog.C QBibtex/QCitation ui fixes (bug 1146) 2003-07-21 09:08:14 +00:00
QCitationDialog.h citation dialog ui fixes 2003-04-12 02:23:02 +00:00
qcoloritem.C ws changes 2002-12-01 22:59:25 +00:00
qcoloritem.h ws changes 2002-12-01 22:59:25 +00:00
QCommandBuffer.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QCommandBuffer.h toolbar4.diff 2003-04-15 01:06:13 +00:00
QCommandEdit.C fix the last fix for the tab stuff 2003-04-05 21:59:40 +00:00
QCommandEdit.h fix the last fix for the tab stuff 2003-04-05 21:59:40 +00:00
QContentPane.C Remove some more debug 2003-03-27 04:29:14 +00:00
QContentPane.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QDelimiterDialog.C the doxygen patch 2003-06-28 01:23:11 +00:00
QDelimiterDialog.h the doxygen patch 2003-06-28 01:23:11 +00:00
QDialogView.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QDialogView.h make lyx compile with gcc 3.4. remove some warnings. 2003-07-18 08:46:00 +00:00
QDocument.C move reading of bind files from lyxrc.C to kbmap.C; do not read bindings or menus when not using gui; move paper related enums to a new paper.h; remove dependency on bufferparams.h from lyxrc.h; small bugfix to tex2lyx; fix bad menu shortcut 2003-07-26 23:04:39 +00:00
QDocument.h Use PanelStack for the document dialog too 2003-03-28 02:10:23 +00:00
QDocumentDialog.C move reading of bind files from lyxrc.C to kbmap.C; do not read bindings or menus when not using gui; move paper related enums to a new paper.h; remove dependency on bufferparams.h from lyxrc.h; small bugfix to tex2lyx; fix bad menu shortcut 2003-07-26 23:04:39 +00:00
QDocumentDialog.h UI for numbering changes 2003-03-29 03:46:27 +00:00
QErrorList.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QErrorList.h get rid of InsetError users 2003-05-20 16:51:31 +00:00
QErrorListDialog.C compile fix 2003-05-22 13:27:32 +00:00
QErrorListDialog.h the errorlist change 2003-05-13 21:15:48 +00:00
QERT.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QERT.h Hold on to your hats. 2003-02-25 14:51:38 +00:00
QERTDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QERTDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QExternal.C Use a FileName variable in the external inset too. 2003-07-23 09:17:04 +00:00
QExternal.h Move the external dialog to the new scheme. 2003-03-05 11:30:35 +00:00
QExternalDialog.C Don't activate "Ok","Apply" when clicking on "Edit File". 2003-06-12 08:32:34 +00:00
QExternalDialog.h The external inset uses the converters. Graphical display within LyX. 2003-06-04 09:16:29 +00:00
QFloat.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QFloat.h Move the float dialog to the new scheme. 2003-03-05 19:46:08 +00:00
QFloatDialog.C Big doc dialog reorganisation 2003-03-28 17:19:49 +00:00
QFloatDialog.h Big doc dialog reorganisation 2003-03-28 17:19:49 +00:00
qfont_loader.C compile fix for gcc 2.95.3 2003-07-29 09:55:48 +00:00
qfont_loader.h Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
qfont_metrics.C some reworking to allow Qt to successfully choose a serif default font 2003-03-31 02:59:34 +00:00
qfontexample.C ws changes 2002-12-01 22:59:25 +00:00
qfontexample.h ws changes 2002-12-01 22:59:25 +00:00
QGraphics.C move reading of bind files from lyxrc.C to kbmap.C; do not read bindings or menus when not using gui; move paper related enums to a new paper.h; remove dependency on bufferparams.h from lyxrc.h; small bugfix to tex2lyx; fix bad menu shortcut 2003-07-26 23:04:39 +00:00
QGraphics.h port the graphics dialog to the new scheme and get rid of the ControlInset 2003-03-07 18:44:57 +00:00
QGraphicsDialog.C bug 1028 fix 2003-06-01 00:59:56 +00:00
QGraphicsDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
qgridview.C Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
qgridview.h ws changes 2002-12-01 22:59:25 +00:00
QInclude.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QInclude.h Move the include dialog to the new scheme 2003-03-05 14:59:37 +00:00
QIncludeDialog.C Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
QIncludeDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QIndex.C Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QIndex.h Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QIndexDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QIndexDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLImage.C namespace grfx -> lyx::graphics 2003-07-04 08:23:23 +00:00
QLImage.h namespace grfx -> lyx::graphics 2003-07-04 08:23:23 +00:00
qlkey.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLMenubar.C towards saner frontends (?). Part II: the menubar (now it is possible to switch frontend without recompiling GUII code) 2003-07-25 21:34:45 +00:00
QLMenubar.h towards saner frontends (?). Part II: the menubar (now it is possible to switch frontend without recompiling GUII code) 2003-07-25 21:34:45 +00:00
QLog.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QLog.h port the various dialogs to display the contents of an external file to the new Dialog-based scheme 2003-03-25 18:13:46 +00:00
QLogDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLogDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLPainter.C Finish the migration from namespace grfx to lyx::graphics. 2003-07-21 21:30:57 +00:00
QLPainter.h namespace grfx -> lyx::graphics 2003-07-04 08:23:23 +00:00
QLPopupMenu.C towards saner frontends (?). Part II: the menubar (now it is possible to switch frontend without recompiling GUII code) 2003-07-25 21:34:45 +00:00
QLPopupMenu.h compile fix for gcc 2.95.3 2003-07-29 09:55:48 +00:00
QLPrintDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLPrintDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLToolbar.C fix layout combox update bug 2003-08-02 12:23:24 +00:00
QLToolbar.h towards saner frontends. Part I: the toolbar 2003-07-25 18:10:34 +00:00
QLyXKeySym.C Remove some more debug 2003-03-27 04:29:14 +00:00
QLyXKeySym.h Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
QMath.C Move xforms' Maths Panel to the new scheme. 2003-06-17 12:53:35 +00:00
QMath.h Move xforms' Maths Panel to the new scheme. 2003-06-17 12:53:35 +00:00
QMathDialog.C Fix for changed Qt behaviour 2003-07-15 15:24:33 +00:00
QMathDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QMathMatrixDialog.C Move xforms' Maths Panel to the new scheme. 2003-06-17 12:53:35 +00:00
QMathMatrixDialog.h Fix memory leaks in the Qt math panel. 2003-06-17 00:30:47 +00:00
QMinipage.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QMinipage.h port the minipage dialog to the new scheme. Various other small changes 2003-03-07 14:08:10 +00:00
QMinipageDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QMinipageDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QNote.C qnote dialog: consistent terminology (bug 1270) 2003-07-30 13:43:15 +00:00
QNote.h The QNote dialog 2003-07-15 12:48:24 +00:00
QNoteDialog.C The QNote dialog 2003-07-15 12:48:24 +00:00
QNoteDialog.h The QNote dialog 2003-07-15 12:48:24 +00:00
QParagraph.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QParagraph.h You've had enough time for that ol' review and I've made sure that things 2003-03-13 13:56:25 +00:00
QParagraphDialog.C Par dialog UI fixes 2003-03-28 19:45:53 +00:00
QParagraphDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QPrefs.C move reading of bind files from lyxrc.C to kbmap.C; do not read bindings or menus when not using gui; move paper related enums to a new paper.h; remove dependency on bufferparams.h from lyxrc.h; small bugfix to tex2lyx; fix bad menu shortcut 2003-07-26 23:04:39 +00:00
QPrefs.h Alfredo's patch 2003-02-28 09:49:49 +00:00
QPrefsDialog.C Introduce a new paned dialog class and use it for prefs 2003-03-28 01:21:42 +00:00
QPrefsDialog.h Introduce a new paned dialog class and use it for prefs 2003-03-28 01:21:42 +00:00
QPrint.C Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QPrint.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QRef.C Rearrange headers to avoid "Qt-pollution" problems. 2003-06-11 21:58:23 +00:00
QRef.h Hold on to your hats. 2003-02-25 14:51:38 +00:00
QRefDialog.C don't use obsolete inSort() 2003-04-03 21:50:36 +00:00
QRefDialog.h the doxygen patch 2003-06-28 01:23:11 +00:00
qscreen.C fix the fix for bug 818. Hopefully. Damn I hate this stuff 2003-06-03 19:32:08 +00:00
qscreen.h cursor.diff, bug 1095 2003-05-03 18:05:53 +00:00
QSearch.C Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QSearch.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QSearchDialog.C Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
QSearchDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QSendto.C Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QSendto.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QSendtoDialog.C Alfredo's patch 2003-02-28 09:49:49 +00:00
QSendtoDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
qsetborder.C * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
qsetborder.h * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
QShowFile.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QShowFile.h port the various dialogs to display the contents of an external file to the new Dialog-based scheme 2003-03-25 18:13:46 +00:00
QShowFileDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QShowFileDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QSpellchecker.C Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QSpellchecker.h spell rework. revert fix 2003-02-17 18:40:04 +00:00
QSpellcheckerDialog.C the doxygen patch 2003-06-28 01:23:11 +00:00
QSpellcheckerDialog.h Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
Qt2Base.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
Qt2Base.h make lyx compile with gcc 3.4. remove some warnings. 2003-07-18 08:46:00 +00:00
Qt2BC.C * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
Qt2BC.h * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
qt_helpers.C fix a build problem with qt2 2003-05-21 12:38:28 +00:00
qt_helpers.h Big shake up of all Alert::askQuestion/Confirmation into something 2003-03-29 07:09:13 +00:00
QTabular.C Michael's UI patch v2 2003-08-14 15:45:09 +00:00
QTabular.h Port the tabular dialog to the new scheme based on class Dialog. 2003-03-09 18:11:57 +00:00
QTabularCreate.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QTabularCreate.h Port the TabularCreate dialog to the Dialog scheme. 2003-03-09 19:34:46 +00:00
QTabularCreateDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QTabularCreateDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QTabularDialog.C Michael's UI patch v2 2003-08-14 15:45:09 +00:00
QTabularDialog.h Fix up Alert::prompt for cancel button stuff 2003-04-27 16:40:50 +00:00
QTexinfo.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QTexinfo.h Fix the texinfo dialog and associated cleanup. 2003-06-20 14:03:49 +00:00
QTexinfoDialog.C Fix the texinfo dialog and associated cleanup. 2003-06-20 14:03:49 +00:00
QTexinfoDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QThesaurus.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QThesaurus.h port the thesaurus dialog to the new scheme 2003-03-26 12:17:20 +00:00
QThesaurusDialog.C more GUI fixes 2003-04-12 04:49:05 +00:00
QThesaurusDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QtLyXView.h Lots and lots of little trivial bits. 2002-09-24 13:57:09 +00:00
QToc.C compile fix 2003-07-27 15:09:45 +00:00
QToc.h compile fix 2003-07-27 15:09:45 +00:00
QTocDialog.C more GUI fixes 2003-04-12 04:49:05 +00:00
QTocDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
qttableview.C small changes 2002-11-04 00:15:56 +00:00
qttableview.h support for Qt3 2001-12-01 02:24:28 +00:00
qtTimeout.C Make the GUI instantiation invisible to Timeout. 2003-02-22 18:01:16 +00:00
qtTimeout.h Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
QtView.C towards saner frontends (?). Part II: the menubar (now it is possible to switch frontend without recompiling GUII code) 2003-07-25 21:34:45 +00:00
QtView.h better lib building 2003-05-08 18:05:07 +00:00
QURL.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QURL.h port the minipage dialog to the new scheme. Various other small changes 2003-03-07 14:08:10 +00:00
QURLDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QURLDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QVCLog.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QVCLog.h port the various dialogs to display the contents of an external file to the new Dialog-based scheme 2003-03-25 18:13:46 +00:00
QVCLogDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QVCLogDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QWorkArea.C implement basic drag-and-drop support in qt 2003-08-05 19:51:45 +00:00
QWorkArea.h implement basic drag-and-drop support in qt 2003-08-05 19:51:45 +00:00
QWrap.C introduce namespace lyx::support 2003-06-30 23:56:22 +00:00
QWrap.h Port wrap dialog to the new scheme. 2003-03-05 23:19:45 +00:00
QWrapDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QWrapDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
README spell rework. revert fix 2003-02-17 18:40:04 +00:00
WorkAreaFactory.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +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.

*DO NOT USE DESIGNER FROM Qt 3*. You must use a designer from Qt 2 to
maintain compatibility.

Remember to check tab order on a dialog (third icon, with blue bars in designer).
 
Remember to check sensible resizing behaviour on a dialog.

Remember to use Edit->Check Accelerators

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)

 
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 &)));

Qt, Unicode, and LyX
--------------------

LyX isn't unicoded yet. But you should follow these simple rules :

o Use qt_() not _() in code
o Use fromqstr and toqstr NOT .latin1() / .c_str()

Using these functions (in qt_helpers.h) will make sure we use
the right locale for converting to Qt's QString, which is unicode.