lyx_mirror/src/frontends/qt2
John Levon 77e1fac46e remove stale FIXME
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6861 a592a061-630c-0410-9148-cb99ea01b6c8
2003-04-26 18:52:07 +00:00
..
moc simplify and distcheck ready 2003-01-13 10:39:18 +00:00
ui fix tab order 2003-04-12 04:56:12 +00:00
.cvsignore
Alert_pimpl.C kill Alert::alert() 2003-03-31 01:15:44 +00:00
BulletsModule.C UI for numbering changes 2003-03-29 03:46:27 +00:00
BulletsModule.h rework the bullets panel 2003-03-29 01:29:20 +00:00
ChangeLog fix bug 866 2003-04-23 16:59:45 +00:00
Dialogs2.C Use PanelStack for the document dialog too 2003-03-28 02:10:23 +00:00
Dialogs.C Fix doxygen documentation. 2003-03-26 12:43:48 +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
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 bug 1063, 1.4.0 only 2003-04-22 23:25:27 +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 Introduce a new paned dialog class and use it for prefs 2003-03-28 01:21:42 +00:00
Makefile.dialogs more GUI fixes 2003-04-12 04:49:05 +00:00
Menubar_pimpl.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
Menubar_pimpl.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QAbout.h Port the About LyX dialog to the Dialog scheme. 2003-03-09 20:29:58 +00:00
QAboutDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QAboutDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QBibitem.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 bibtex dialog fixes 2003-04-12 03:08:08 +00:00
QBibtex.h Hold on to your hats. 2003-02-25 14:51:38 +00:00
QBibtexDialog.C bibtex dialog fixes 2003-04-12 03:08:08 +00:00
QBibtexDialog.h bibtex dialog fixes 2003-04-12 03:08:08 +00:00
QBrowseBox.C handle transparent pixmaps 2003-03-29 16:43:40 +00:00
QBrowseBox.h fix bug 908 (qbrowsebox drawing) 2003-03-29 15:28:58 +00:00
QChanges.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 Yesterday's character dialog patch 2003-03-12 22:17: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 citation dialog ui fixes 2003-04-12 02:23:02 +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 dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QDelimiterDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QDialogView.C * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
QDialogView.h Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QDocument.C UI for numbering changes 2003-03-29 03:46:27 +00:00
QDocument.h Use PanelStack for the document dialog too 2003-03-28 02:10:23 +00:00
QDocumentDialog.C UI for numbering changes 2003-03-29 03:46:27 +00:00
QDocumentDialog.h UI for numbering changes 2003-03-29 03:46:27 +00:00
QError.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QError.h Hold on to your hats. 2003-02-25 14:51:38 +00:00
QErrorDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QErrorDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QERT.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QExternal.h Move the external dialog to the new scheme. 2003-03-05 11:30:35 +00:00
QExternalDialog.C connect up apply for external 2003-03-06 05:52:13 +00:00
QExternalDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QFloat.C Big doc dialog reorganisation 2003-03-28 17:19:49 +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 remove stale FIXME 2003-04-26 18:52:07 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QIndex.h Minimal fix needed to give Qt a label dialog again. 2003-03-05 10:47:11 +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 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
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 Remove some more debug 2003-03-27 04:29:14 +00:00
QLPainter.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QLPopupMenu.C Remove some more debug 2003-03-27 04:29:14 +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 rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree ! 2003-03-19 17:15:32 +00:00
QMath.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QMathDialog.C fix a typo 2003-03-15 17:29:34 +00:00
QMathDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QMathMatrixDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QMathMatrixDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QMinipage.C remove debug 2003-04-26 16:55:42 +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 Par dialog UI fixes 2003-03-28 19:45:53 +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 bug 1063, 1.4.0 only 2003-04-22 23:25:27 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QPrint.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QRef.C don't use obsolete inSort() 2003-04-03 21:50:36 +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 QRefDialog improvements 2003-04-03 21:27:12 +00:00
qscreen.C Ding dong, the CID is dead... 2003-03-22 17:26:03 +00:00
qscreen.h * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
QSearch.C fix bug 937 2003-03-12 06: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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 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
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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QSpellchecker.h spell rework. revert fix 2003-02-17 18:40:04 +00:00
QSpellcheckerDialog.C spell rework. revert fix 2003-02-17 18:40:04 +00:00
QSpellcheckerDialog.h Strip trailing whitespace. 2003-02-25 13:35:26 +00:00
Qt2Base.C * Give Dialog::Controller::initialiseParams a bool return type. 2003-03-14 00:20:42 +00:00
Qt2Base.h Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 Big shake up of all Alert::askQuestion/Confirmation into something 2003-03-29 07:09:13 +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 citation dialog ui fixes 2003-04-12 02:23:02 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 move some stuff from the qt dialog into the controller. 2003-04-10 20:20:36 +00:00
QTabularDialog.h move some stuff from the qt dialog into the controller. 2003-04-10 20:20:36 +00:00
QTexinfo.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +00:00
QTexinfo.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QTexinfoDialog.C dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QTexinfoDialog.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QThesaurus.C port the thesaurus dialog to the new scheme 2003-03-26 12:17:20 +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 Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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
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 toolbar4.diff 2003-04-15 01:06:13 +00:00
QtView.h toolbar4.diff 2003-04-15 01:06:13 +00:00
QURL.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 BoostFormat and boost-inst 2003-03-30 20:25:44 +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 dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QWorkArea.h dont use pragma impementation and interface anymore 2003-02-13 16:53:15 +00:00
QWrap.C Flatten the ButtonController tree by splitting it into a Controller and 2003-03-10 03:13:28 +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 toolbar4.diff 2003-04-15 01:06:13 +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.