lyx_mirror/src/frontends/qt3
Georg Baum b9f008e2ba compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15226 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-03 20:03:25 +00:00
..
ui Fix bug 2868 2006-10-03 08:34:59 +00:00
Alert_pimpl.C Set caption programmatically instead of through the ui file. Opens up for disregarding caption in l10n handling of ui files. 2006-09-18 16:55:54 +00:00
BulletsModule.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
BulletsModule.h
ChangeLog merge booktabs branch 2006-07-03 19:13:56 +00:00
checkedwidgets.C
checkedwidgets.h
Dialogs.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
emptytable.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
emptytable.h
FileDialog_private.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
FileDialog_private.h
FileDialog.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
floatplacement.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
floatplacement.h
GuiApplication.C This commit creates a new "frontends/lyx_gui.C" that contains all functions that are not frontend dependent any more. It also creates 3 new pure virtual methods in Application: 2006-10-03 10:34:10 +00:00
GuiApplication.h This commit introduces the FontLoader interface class. In the future, I intend to extend it with a proper encapsulation of font metrics. 2006-10-03 16:17:32 +00:00
GuiClipboard.C Fix clipboard/selection encoding 2006-09-03 07:02:38 +00:00
GuiClipboard.h Fix clipboard/selection encoding 2006-09-03 07:02:38 +00:00
GuiImplementation.h 2 style and 1 compilation fixes. 2006-09-26 12:46:27 +00:00
GuiSelection.C make it compile again 2006-09-22 20:48:42 +00:00
GuiSelection.h make it compile again 2006-09-22 20:48:42 +00:00
GuiWorkArea.h This commit transfers most of the LyXView use from BufferView to WorkArea, most notably: 2006-08-15 21:57:23 +00:00
iconpalette.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
iconpalette.h
lcolorcache.C
lcolorcache.h
lengthcombo.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
lengthcombo.h
lyx_gui.C This commit introduces the FontLoader interface class. In the future, I intend to extend it with a proper encapsulation of font metrics. 2006-10-03 16:17:32 +00:00
LyXKeySymFactory.C
Makefile.am make it compile again 2006-09-22 20:48:42 +00:00
Makefile.dialogs The Grand Font Selection Redesign: 2006-06-19 08:10:17 +00:00
panelstack.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
panelstack.h
pch.h
QAbout.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QAbout.h
QAboutDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QAboutDialog.h
QBibitem.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QBibitem.h
QBibitemDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QBibitemDialog.h
QBibtex.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QBibtex.h
QBibtexDialog.C Set caption programmatically instead of through the ui file. Opens up for disregarding caption in l10n handling of ui files. 2006-09-18 16:55:54 +00:00
QBibtexDialog.h
QBox.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QBox.h
QBoxDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QBoxDialog.h
QBranch.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QBranch.h
QBranchDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QBranchDialog.h
QBrowseBox.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QBrowseBox.h
QChanges.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
QChanges.h
QChangesDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QChangesDialog.h
QCharacter.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QCharacter.h
QCharacterDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QCharacterDialog.h
QCitation.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QCitation.h
QCitationDialog.C Set caption programmatically instead of through the ui file. Opens up for disregarding caption in l10n handling of ui files. 2006-09-18 16:55:54 +00:00
QCitationDialog.h
qcoloritem.C
qcoloritem.h
QCommandBuffer.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QCommandBuffer.h
QCommandEdit.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QCommandEdit.h
QContentPane.C clean up Abdel's cleanup 2006-08-24 19:43:06 +00:00
QContentPane.h This is the merging of the GUI API cleanup branch that was developed in svn+ssh://svn.lyx.org/lyx/lyx-devel/branches/personal/younes. 2006-06-20 08:39:16 +00:00
QDelimiterDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QDelimiterDialog.h Implement GUI for fixed size math delimiters (by Enrico Forestieri and me): 2006-05-07 10:51:19 +00:00
QDialogView.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QDialogView.h
QDocument.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
QDocument.h
QDocumentDialog.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QDocumentDialog.h The Grand Font Selection Redesign: 2006-06-19 08:10:17 +00:00
QErrorList.C
QErrorList.h
QErrorListDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QErrorListDialog.h
QERT.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QERT.h
QERTDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QERTDialog.h
QExternal.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QExternal.h
QExternalDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QExternalDialog.h
QFloat.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QFloat.h
QFloatDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QFloatDialog.h
qfont_loader.C This commit introduces the FontLoader interface class. In the future, I intend to extend it with a proper encapsulation of font metrics. 2006-10-03 16:17:32 +00:00
qfont_loader.h This commit introduces the FontLoader interface class. In the future, I intend to extend it with a proper encapsulation of font metrics. 2006-10-03 16:17:32 +00:00
qfont_metrics.C Merge the unicode branch into trunk. 2006-08-13 22:54:59 +00:00
qfontexample.C
qfontexample.h
QGraphics.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QGraphics.h
QGraphicsDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QGraphicsDialog.h
QInclude.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QInclude.h
QIncludeDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QIncludeDialog.h
QIndex.C
QIndex.h
QIndexDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QIndexDialog.h
QLImage.C
QLImage.h
qlkey.h
QLMenubar.C Change MenuBackend and the other menuclasses to store a docstring. Do the required updates to lstrings/convert. 2006-09-09 22:27:22 +00:00
QLMenubar.h Change MenuBackend and the other menuclasses to store a docstring. Do the required updates to lstrings/convert. 2006-09-09 22:27:22 +00:00
QLog.C
QLog.h
QLogDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QLogDialog.h
QLPainter.C s/boost::uint32_t/lyx::char_type/g except in the definition of lyx::docstring 2006-09-13 17:11:39 +00:00
QLPainter.h Merge the unicode branch into trunk. 2006-08-13 22:54:59 +00:00
QLPopupMenu.C This commit splits the add() method in two methods add() and 2006-09-29 21:40:56 +00:00
QLPopupMenu.h Change MenuBackend and the other menuclasses to store a docstring. Do the required updates to lstrings/convert. 2006-09-09 22:27:22 +00:00
QLPrintDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QLPrintDialog.h
QLToolbar.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QLToolbar.h Revision 14964: forgot this... 2006-09-10 11:09:25 +00:00
QLyXKeySym.C More unicode work. Fixup some usages. 2006-09-10 18:34:24 +00:00
QLyXKeySym.h Merge the unicode branch into trunk. 2006-08-13 22:54:59 +00:00
QMath.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QMath.h
QMathDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QMathDialog.h
QMathMatrixDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QMathMatrixDialog.h
QNote.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QNote.h
QNoteDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QNoteDialog.h
QParagraph.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QParagraph.h
QParagraphDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QParagraphDialog.h
QPrefs.C compile fix 2006-10-03 20:03:25 +00:00
QPrefs.h
QPrefsDialog.C Fix bug 2868 2006-10-03 08:34:59 +00:00
QPrefsDialog.h Renaming: 2006-06-27 10:51:24 +00:00
QPrint.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QPrint.h
QRef.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QRef.h
QRefDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QRefDialog.h
qscreen.C clean up Abdel's cleanup 2006-08-24 19:43:06 +00:00
qscreen.h Fix some WorkArea fallouts 2006-07-09 01:08:47 +00:00
QSearch.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QSearch.h
QSearchDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QSearchDialog.h
QSendto.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QSendto.h
QSendtoDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QSendtoDialog.h
qsetborder.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
qsetborder.h
QShowFile.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QShowFile.h
QShowFileDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QShowFileDialog.h
QSpellchecker.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QSpellchecker.h
QSpellcheckerDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QSpellcheckerDialog.h
Qt2BC.C
Qt2BC.h Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
qt_helpers.C make it compile again 2006-09-11 10:07:39 +00:00
qt_helpers.h make it compile again 2006-09-11 10:07:39 +00:00
QTabular.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QTabular.h
QTabularCreate.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QTabularCreate.h
QTabularCreateDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QTabularCreateDialog.h
QTabularDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QTabularDialog.h merge booktabs branch 2006-07-03 19:13:56 +00:00
QTexinfo.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QTexinfo.h
QTexinfoDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QTexinfoDialog.h
QThesaurus.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QThesaurus.h
QThesaurusDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QThesaurusDialog.h
QtLyXView.h
QToc.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QToc.h
QTocDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QTocDialog.h
qttableview.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
qttableview.h
qtTimeout.C This is the merging of the GUI API cleanup branch that was developed in svn+ssh://svn.lyx.org/lyx/lyx-devel/branches/personal/younes. 2006-06-20 08:39:16 +00:00
qtTimeout.h This is the merging of the GUI API cleanup branch that was developed in svn+ssh://svn.lyx.org/lyx/lyx-devel/branches/personal/younes. 2006-06-20 08:39:16 +00:00
QtView.C This commit introduces the FontLoader interface class. In the future, I intend to extend it with a proper encapsulation of font metrics. 2006-10-03 16:17:32 +00:00
QtView.h * Application: new createView() method 2006-09-29 23:10:17 +00:00
QURL.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QURL.h
QURLDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QURLDialog.h
QViewSource.C compile fix 2006-10-03 20:03:25 +00:00
QViewSource.h Add more controls to the view-source dialog. 2006-08-04 13:59:12 +00:00
QViewSourceDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QViewSourceDialog.h Add more controls to the view-source dialog. 2006-08-04 13:59:12 +00:00
QVSpace.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QVSpace.h
QVSpaceDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QVSpaceDialog.h
QWorkArea.C make it compile again 2006-09-22 20:48:42 +00:00
QWorkArea.h make it compile again 2006-09-22 20:48:42 +00:00
QWrap.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QWrap.h
QWrapDialog.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
QWrapDialog.h
README
socket_callback.C Add #include "xxx_moc.cpp" to xxx.C files, and stop compiling _moc.cpp individually. 2006-08-16 22:10:20 +00:00
socket_callback.h
validators.C make it compile again 2006-09-11 10:07:39 +00:00
validators.h

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.

moc is incredibly stupid and sometimes you need a fully qualified
"std::string" for .connect() statements to work. Be very, very careful.

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.