lyx_mirror/src/frontends/qt2
Lars Gullik Bjønnes 1a8665988f the doxygen patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7219 a592a061-630c-0410-9148-cb99ea01b6c8
2003-06-28 01:23:11 +00:00
..
moc better lib building 2003-05-08 18:05:07 +00:00
ui The error boxes are no more! See also Bug: 192, Bug: 807, Bug: 899 and Bug: 973 2003-06-21 08:50:06 +00:00
.cvsignore The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
Alert_pimpl.C the ascent/descent/width -> dimensions() change 2003-05-19 17:03:12 +00:00
BulletsModule.C the doxygen patch 2003-06-28 01:23:11 +00:00
BulletsModule.h rework the bullets panel 2003-03-29 01:29:20 +00:00
ChangeLog the doxygen patch 2003-06-28 01:23:11 +00:00
Dialogs2.C Move the Texinfo dialog to the new Dialog scheme. 2003-06-19 17:16:12 +00:00
Dialogs.C The error boxes are no more! See also Bug: 192, Bug: 807, Bug: 899 and Bug: 973 2003-06-21 08:50:06 +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 dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +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 more GUI fixes 2003-04-12 04:49:05 +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 Fix two loading-related bugs reported by Kayvan 2003-06-27 07:11:31 +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 The error boxes are no more! See also Bug: 192, Bug: 807, Bug: 899 and Bug: 973 2003-06-21 08:50:06 +00:00
Makefile.dialogs The error boxes are no more! See also Bug: 192, Bug: 807, Bug: 899 and Bug: 973 2003-06-21 08:50:06 +00:00
Menubar_pimpl.C shared-4.diff. Gui independant config.h 2003-05-14 09:17:22 +00:00
Menubar_pimpl.h shared-4.diff. Gui independant config.h 2003-05-14 09:17:22 +00:00
panelstack.C hide the pointless header for the panel stack 2003-04-04 03:37:42 +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 move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +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 Fix the texinfo dialog and associated cleanup. 2003-06-20 14:03:49 +00:00
QBibtex.h Hold on to your hats. 2003-02-25 14:51:38 +00:00
QBibtexDialog.C Fix the texinfo dialog and associated cleanup. 2003-06-20 14:03:49 +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 move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QCitation.h Citation dialog fixes 2003-04-04 03:19:00 +00:00
QCitationDialog.C fix bug 866 2003-04-23 16:59:45 +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 toolbar4.diff 2003-04-15 01:06:13 +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 Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +00:00
QDocument.C added a parseError signal to Buffer and use it 2003-06-20 23:03:43 +00:00
QDocument.h Use PanelStack for the document dialog too 2003-03-28 02:10:23 +00:00
QDocumentDialog.C added a parseError signal to Buffer and use it 2003-06-20 23:03:43 +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 Enable the external inset to handle unknown templates gracefully. 2003-06-11 14:30: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 go through horrendous contortions to work around font breakage in every 2003-06-13 00:20:31 +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 the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +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 File uses lowercase, so explicitly #include lstrings.h 2003-04-15 12:13:40 +00:00
QLImage.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
qlkey.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +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 lcolor cache 2003-05-24 15:19:05 +00:00
QLPainter.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLPopupMenu.C the doxygen patch 2003-06-28 01:23:11 +00:00
QLPopupMenu.h more code in the menu backend == less code in the menu frontends; add support for OptSubmenu (not used yet) 2003-02-15 21:03:40 +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
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 the doxygen patch 2003-06-28 01:23:11 +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 move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +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
QParagraph.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +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 lcolor cache 2003-05-24 15:19:05 +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 Compile fixes following Alfredo's setTitle changes. 2003-05-22 18:14:36 +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 some renamings plus whitespace. 2003-06-12 11:52:44 +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 Fix up Alert::prompt for cancel button stuff 2003-04-27 16:40:50 +00:00
QTabularDialog.h Fix up Alert::prompt for cancel button stuff 2003-04-27 16:40:50 +00:00
QTexinfo.C Fix the texinfo dialog and associated cleanup. 2003-06-20 14:03:49 +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 move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +00:00
QToc.h Hold on to your hats. 2003-02-25 14:51:38 +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 Get rid of current_view. 2003-06-12 14:25:17 +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 move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +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 lcolor cache 2003-05-24 15:19:05 +00:00
QWorkArea.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QWrap.C move the title_ string to the base class Dialog::View 2003-05-22 15:42:50 +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
Toolbar_pimpl.C do not add non-exisitent icons in toolbar (qt); honor the LYX_DIR_14x variable; set LyX version in documents to 1.4 2003-06-23 13:18:56 +00:00
Toolbar_pimpl.h toolbar3.diff 2003-04-10 14:08:06 +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.