lyx_mirror/src/frontends/qt4
Abdelrazak Younes a21259dd02 * qt_helpers:
- ucs4_to_qchar() and qchar_to_ucs4() have been inlined.
  - ucs4_to_qstring(): pass a QString to avoid a copy.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15266 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-07 16:30:26 +00:00
..
ui Fix bug 2868 2006-10-03 08:34:59 +00:00
Action.C delete unneeded BufferView.h declaration. 2006-09-26 21:11:22 +00:00
Action.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:36:59 +00:00
Alert_pimpl.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
BulletsModule.C replace depreciated bitBlt() with calls to qpainter's drawPixmap() 2006-08-15 14:55:34 +00:00
BulletsModule.h * furter simplifications: 2006-08-14 15:07:13 +00:00
ChangeLog set svn:eol-style to native in qt4 frontend 2006-03-21 19:56:57 +00:00
checkedwidgets.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:43:48 +00:00
checkedwidgets.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:43:48 +00:00
ColorCache.C replace colorcache global variable with GuiApplication::colorCache(). 2006-09-26 09:57:47 +00:00
ColorCache.h replace colorcache global variable with GuiApplication::colorCache(). 2006-09-26 09:57:47 +00:00
Dialogs.C remove LFUN_TOOLTIPS_TOGGLE and associated Dialog::tooltipsEnabled() method. 2006-10-06 21:49:13 +00:00
emptytable.C delete some emits that I missed, add comments about emitting signals 2006-06-30 14:11:50 +00:00
emptytable.h some cleanup 2006-08-17 08:45:13 +00:00
FileDialog_private.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:45:48 +00:00
FileDialog_private.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:45:48 +00:00
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 minimal effort implementation of: 2006-08-25 13:40:01 +00:00
FloatPlacement.h minimal effort implementation of: 2006-08-25 13:40:01 +00:00
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
GuiFontLoader.C This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk. 2006-10-07 16:15:06 +00:00
GuiFontLoader.h This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk. 2006-10-07 16:15:06 +00:00
GuiFontMetrics.C * qt_helpers: 2006-10-07 16:30:26 +00:00
GuiFontMetrics.h This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk. 2006-10-07 16:15:06 +00:00
GuiImplementation.C 2 style and 1 compilation fixes. 2006-09-26 12:46:27 +00:00
GuiImplementation.h This commit replaces BufferView->LyXView->Gui->[selection,clipboard] with theApp->[selection,clipboard] 2006-09-22 15:02:41 +00:00
GuiSelection.C Fix clipboard/selection encoding 2006-09-03 07:02:38 +00:00
GuiSelection.h Fix clipboard/selection encoding 2006-09-03 07:02:38 +00:00
GuiView.C * lyx_gui: create_view(), start() and exit() functions deleted. 2006-10-03 13:38:28 +00:00
GuiView.h * Application: new createView() method 2006-09-29 23:10:17 +00:00
GuiWorkArea.C replace colorcache global variable with GuiApplication::colorCache(). 2006-09-26 09:57:47 +00:00
GuiWorkArea.h * src/frontends/qt4/GuiWorkArea.[Ch] (focusInEvent, focusOutEvent): 2006-08-21 09:14:18 +00:00
iconpalette.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:49:05 +00:00
iconpalette.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:49:40 +00:00
InsertTableWidget.C Remove quite a few compiler warnings: 2006-07-06 08:18:51 +00:00
InsertTableWidget.h make sure eol-style native is set and fix eol style 2006-06-30 14:50:44 +00:00
lengthcombo.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:49:57 +00:00
lengthcombo.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:49:57 +00:00
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 change string "qt2" to "qt4" 2006-04-24 13:25:50 +00:00
Makefile.am This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk. 2006-10-07 16:15:06 +00:00
Makefile.dialogs minimal effort implementation of: 2006-08-25 13:40:01 +00:00
panelstack.C Remove quite a few compiler warnings: 2006-07-06 08:18:51 +00:00
panelstack.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
pch.h delete some Qt "signals" macro reference. 2006-07-10 17:44:36 +00:00
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 Remove quite a few compiler warnings: 2006-07-06 08:18:51 +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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QBibitemDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:51:02 +00:00
QBibtexDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:51:41 +00:00
QBoxDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QBranchDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QBranches.C replace colorcache global variable with GuiApplication::colorCache(). 2006-09-26 09:57:47 +00:00
QBranches.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QChanges.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
QChanges.h
QChangesDialog.C Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QChangesDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:52:32 +00:00
QCharacterDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QCitation.C put citation dialog in good state: 2006-06-28 08:28:16 +00:00
QCitation.h put citation dialog in good state: 2006-06-28 08:28:16 +00:00
QCitationDialog.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:52:45 +00:00
QCitationDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QCommandBuffer.C delete some emits that I missed, add comments about emitting signals 2006-06-30 14:11:50 +00:00
QCommandBuffer.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QCommandEdit.C delete some emits that I missed, add comments about emitting signals 2006-06-30 14:11:50 +00:00
QCommandEdit.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QDelimiterDialog.C Fix combo box items in the delimiter GUI 2006-09-12 01:17:03 +00:00
QDelimiterDialog.h rework mathdelimiter dialog and add size combo... 2006-08-16 14:22:47 +00:00
QDialogView.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:53:10 +00:00
QDialogView.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QDocument.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
QDocument.h
QDocumentDialog.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
QDocumentDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QErrorList.C get rid of convenience classes in the following dialogs (and associated implementation files): 2006-05-03 19:51:15 +00:00
QErrorList.h get rid of convenience classes in the following dialogs (and associated implementation files): 2006-05-03 19:51:15 +00:00
QErrorListDialog.C Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QErrorListDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QERTDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:54:12 +00:00
QExternalDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 minimal effort implementation of: 2006-08-25 13:40:01 +00:00
QFloatDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
qfontexample.C Those classes (and their associated [Ch] files) are renamed : 2006-06-17 09:14:58 +00:00
qfontexample.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:54:44 +00:00
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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:55:23 +00:00
QGraphicsDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QGraphicsUi.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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QIncludeDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QIndex.C
QIndex.h
QIndexDialog.C Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QIndexDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QLImage.C get rid of comments, c++ style casts 2006-08-25 10:52:49 +00:00
QLImage.h
qlkey.h
QLMenubar.C MacOSX compilation fix. 2006-10-04 09:34:56 +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 getting rid of even more qt3 convenience classes and unused headers... 2006-05-04 07:31:46 +00:00
QLog.h
QLogDialog.C Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QLogDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QLPainter.C * qt_helpers: 2006-10-07 16:30:26 +00:00
QLPainter.h This commit is a big rework of the FontLoader/FontMetrics interaction. Only Qt4 for now, I would be grateful is somebody steps up for qt3 and gtk. 2006-10-07 16:15:06 +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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QLPrintDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QLToolbar.C * src/frontends/qt4/QLToolbar.C 2006-09-13 17:04:42 +00:00
QLToolbar.h * LyXView.h: 2006-09-10 11:03:21 +00:00
QLyXKeySym.C * qt_helpers.[Ch]: new conversion from/to ucs4 strings and chars to/from QChar and QString. 2006-08-30 14:59:07 +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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:57:29 +00:00
QMathDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QMathMatrixDialog.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:57:44 +00:00
QMathMatrixDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 Port of Martin Vermeer's QNote work: fix of framed and shaded note. 2006-08-16 08:57:00 +00:00
QNoteDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:58:01 +00:00
QParagraphDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QPrefs.C replace colorcache global variable with GuiApplication::colorCache(). 2006-09-26 09:57:47 +00:00
QPrefs.h Changelog: 2006-03-22 18:59:17 +00:00
QPrefsDialog.C use theApp directly for default fonts. 2006-10-03 14:21:15 +00:00
QPrefsDialog.h Remove quite a few compiler warnings: 2006-07-06 08:18:51 +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 compile fix for OS X 2006-06-06 10:10:11 +00:00
QRefDialog.C Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QRefDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:58:35 +00:00
QSearchDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QSendtoDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
qsetborder.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:59:00 +00:00
qsetborder.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 08:59:00 +00:00
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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QShowFileDialog.h
QSpellchecker.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
QSpellchecker.h
QSpellcheckerDialog.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 09:00:11 +00:00
QSpellcheckerDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 * qt_helpers: 2006-10-07 16:30:26 +00:00
qt_helpers.h * qt_helpers: 2006-10-07 16:30:26 +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 new tableinsertwidget 2006-05-31 12:53:05 +00:00
QTabularCreateDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QTabularDialog.C get rid of QT3_SUPPORT and some cleanup 2006-08-17 09:01:06 +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 get rid of QT3_SUPPORT and some cleanup 2006-08-17 09:01:25 +00:00
QTexinfoDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
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 Remove quite a few compiler warnings: 2006-07-06 08:18:51 +00:00
QThesaurusDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QToc.C * QToc.[Ch], QTocDialog.[Ch]: adaptation to ControlToc changes in r13772 2006-04-28 09:16:48 +00:00
QToc.h * QToc.[Ch], QTocDialog.[Ch]: adaptation to ControlToc changes in r13772 2006-04-28 09:16:48 +00:00
QTocDialog.C Remove quite a few compiler warnings: 2006-07-06 08:18:51 +00:00
QTocDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
qtTimeout.C
qtTimeout.h
QURLDialog.C QURL renamed to UrlView 2006-06-28 12:09:25 +00:00
QURLDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
QViewSource.C use theApp directly for default fonts. 2006-10-03 14:21:15 +00:00
QViewSource.h Add more controls to the view-source dialog. 2006-08-04 13:59:12 +00:00
QViewSourceDialog.C set eol-style to native 2006-08-17 10:01:27 +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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QVSpaceDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +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 Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
QWrapDialog.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
README remove references to deleted file QtLyXView.h 2006-06-14 19:26:23 +00:00
socket_callback.C Qt4 compilation speedup patch by Bo Peng and me. 2006-05-18 08:51:12 +00:00
socket_callback.h Make signals and slots to not be defined, and replace them with Q_SIGNALS and Q_SLOTS 2006-06-30 14:37:33 +00:00
TocModel.C * src/frontends/gtk/GuiImplementation.C: include config.h 2006-07-08 13:27:43 +00:00
TocModel.h * QToc.[Ch], QTocDialog.[Ch]: adaptation to ControlToc changes in r13772 2006-04-28 09:16:48 +00:00
UrlView.C Change _() to return a docstring. Fixup callers with the help of lyx::to_utf8. 2006-09-09 15:27:44 +00:00
UrlView.h QURL renamed to UrlView 2006-06-28 12:09:25 +00:00
validators.C A bunch of conversion to docstring. 2006-09-11 08:54:10 +00:00
validators.h get rid of QT3_SUPPORT and some cleanup 2006-08-17 09:03:26 +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.

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_

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.