lyx_mirror/src/frontends/qt
2020-10-19 18:01:17 +03:00
..
ui Add few examples for lineno options. 2020-10-06 15:05:11 +02:00
.gitignore Get rid of Qt resources 2020-06-07 01:15:28 +02:00
Action.cpp
Action.h
BulletsModule.cpp Get rid of Qt resources 2020-06-07 01:15:28 +02:00
BulletsModule.h Move BulletsModule to frontend namespace 2020-06-07 01:15:28 +02:00
ButtonController.cpp Loop refactoring 2020-10-09 09:04:20 +03:00
ButtonController.h
ButtonPolicy.cpp
ButtonPolicy.h Run codespell on src/frontends 2020-06-26 00:21:47 +02:00
CategorizedCombo.cpp Refactoring 2020-10-05 14:55:00 +02:00
CategorizedCombo.h Amend efc0877f 2020-10-05 09:37:15 +02:00
CMakeLists.txt Amend 2d48072e: Get rid of Qt resources 2020-06-07 12:07:58 +02:00
ColorCache.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
ColorCache.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
CustomizedWidgets.cpp
CustomizedWidgets.h Amend efc0877f 2020-10-05 09:37:15 +02:00
Dialog.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
Dialog.h Loop refactoring 2020-10-09 09:04:20 +03:00
DialogView.cpp <QCloseEvent> DialogView.h -> DialogView.cpp 2020-10-14 13:57:30 +02:00
DialogView.h <QCloseEvent> DialogView.h -> DialogView.cpp 2020-10-14 13:57:30 +02:00
DockView.cpp Move <QKeyEvent> from DockView.h 2020-10-14 14:35:29 +02:00
DockView.h Move <QKeyEvent> from DockView.h 2020-10-14 14:35:29 +02:00
EmptyTable.cpp
EmptyTable.h Amend efc0877f 2020-10-05 09:37:15 +02:00
FancyLineEdit.cpp Loop refactoring 2020-10-09 09:04:20 +03:00
FancyLineEdit.h Loop refactoring 2020-10-09 09:04:20 +03:00
FileDialog.cpp
FileDialog.h
FindAndReplace.cpp Move <algorithm> from DocIterator.h 2020-10-14 13:01:30 +02:00
FindAndReplace.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
FloatPlacement.cpp Remove redundant const & for primitive types 2020-10-19 12:50:07 +03:00
FloatPlacement.h Remove redundant const & for primitive types 2020-10-19 12:50:07 +03:00
GuiAbout.cpp About: Fix cutting of icon (#11946) 2020-08-26 10:01:53 +02:00
GuiAbout.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiAlert.cpp Remove redundant const & for primitive types 2020-10-19 12:50:07 +03:00
GuiApplication.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiApplication.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiBibitem.cpp
GuiBibitem.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiBibtex.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiBibtex.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiBox.cpp Move <algorithm> from DocIterator.h 2020-10-14 13:01:30 +02:00
GuiBox.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiBranch.cpp
GuiBranch.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiBranches.cpp
GuiBranches.h Amend efc0877f 2020-10-05 09:37:15 +02:00
GuiChanges.cpp
GuiChanges.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiCharacter.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiCharacter.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiCitation.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiCitation.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiClickableLabel.cpp
GuiClickableLabel.h
GuiClipboard.cpp Run codespell on src/frontends 2020-06-26 00:21:47 +02:00
GuiClipboard.h Amend efc0877f 2020-10-05 09:37:15 +02:00
GuiCommandBuffer.cpp Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiCommandBuffer.h
GuiCommandEdit.cpp
GuiCommandEdit.h Amend efc0877f 2020-10-05 09:37:15 +02:00
GuiCompare.cpp
GuiCompare.h Amend efc0877f 2020-10-03 21:17:17 +02:00
GuiCompareHistory.cpp
GuiCompareHistory.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiCompleter.cpp Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiCompleter.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiCounter.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiCounter.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiDelimiter.cpp
GuiDelimiter.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiDialog.cpp Fix #10328. 2020-08-09 13:00:41 -04:00
GuiDialog.h Amend efc0877f 2020-10-03 21:17:17 +02:00
GuiDocument.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiDocument.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiErrorList.cpp Refactoring 2020-10-05 14:55:00 +02:00
GuiErrorList.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiERT.cpp
GuiERT.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiExternal.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiExternal.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiFontExample.cpp
GuiFontExample.h
GuiFontLoader.cpp Fix on-screen display of special math fonts 2020-09-06 18:16:04 +02:00
GuiFontLoader.h
GuiFontMetrics.cpp amend 6d6fc761be 2020-09-28 16:44:12 +02:00
GuiFontMetrics.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiGraphics.cpp #9376 prepare use of Length in lyxrc - move the class Length to support 2020-08-07 09:24:31 +02:00
GuiGraphics.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiHSpace.cpp Prevent permanent disabling of comboboxes in Vertical/Horizontal space dialogs 2020-08-28 07:07:44 +02:00
GuiHSpace.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiHyperlink.cpp
GuiHyperlink.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiIdListModel.cpp
GuiIdListModel.h
GuiImage.cpp Refactoring 2020-10-05 14:55:00 +02:00
GuiImage.h
GuiInclude.cpp Accelerators 2020-09-02 10:22:26 -04:00
GuiInclude.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiIndex.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiIndex.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiIndices.cpp
GuiIndices.h
GuiInfo.cpp
GuiInfo.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiKeySymbol.cpp
GuiKeySymbol.h
GuiLabel.cpp
GuiLabel.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiLine.cpp
GuiLine.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiListings.cpp
GuiListings.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiLog.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiLog.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiLyXFiles.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiLyXFiles.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiMathMatrix.cpp Fix bug #11854 2020-05-17 18:15:00 +02:00
GuiMathMatrix.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiNomenclature.cpp
GuiNomenclature.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiNote.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiNote.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiPainter.cpp Fix and simplify computation of painter monochrome mode 2020-07-12 00:01:46 +02:00
GuiPainter.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiParagraph.cpp
GuiParagraph.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiPhantom.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiPhantom.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiPrefs.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiPrefs.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiPrintindex.cpp
GuiPrintindex.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiPrintNomencl.cpp
GuiPrintNomencl.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiProgress.cpp
GuiProgress.h Amend efc0877f 2020-10-05 09:37:15 +02:00
GuiProgressView.cpp
GuiProgressView.h Amend efc0877f 2020-10-03 21:17:17 +02:00
GuiRef.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiRef.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiSearch.cpp
GuiSearch.h Amend efc0877f 2020-10-03 21:17:17 +02:00
GuiSelection.cpp Fix commented out code 2020-05-04 09:27:35 -04:00
GuiSelection.h Amend efc0877f 2020-10-05 09:37:15 +02:00
GuiSelectionManager.cpp Correct Right Arrow key processing in Modules list 2020-08-14 10:12:13 +02:00
GuiSelectionManager.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiSendto.cpp Refactoring 2020-10-05 14:55:00 +02:00
GuiSendto.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiSetBorder.cpp
GuiSetBorder.h Amend efc0877f 2020-10-05 09:37:15 +02:00
GuiShowFile.cpp
GuiShowFile.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiSpellchecker.cpp Move GuiView.h from DockView.h 2020-10-14 14:28:47 +02:00
GuiSpellchecker.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiSymbols.cpp Refactoring 2020-10-05 14:55:00 +02:00
GuiSymbols.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiTabular.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiTabular.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiTabularCreate.cpp
GuiTabularCreate.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiTexinfo.cpp Run codespell on src/frontends 2020-06-26 00:21:47 +02:00
GuiTexinfo.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiThesaurus.cpp Focus keyword filed in Thesaurus dialog 2020-06-18 10:51:21 -04:00
GuiThesaurus.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiToc.cpp Remove duplicate and unused header includes in .cpp files 2020-10-19 18:01:11 +03:00
GuiToc.h Move GuiView.h from DockView.h 2020-10-14 14:28:47 +02:00
GuiToolbar.cpp Loop refactoring 2020-10-09 09:04:20 +03:00
GuiToolbar.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiView.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiView.h Amend efc0877f 2020-10-05 15:03:13 +02:00
GuiViewSource.cpp Move <QTimer> from GuiViewSource.h 2020-10-14 14:37:38 +02:00
GuiViewSource.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiVSpace.cpp Prevent permanent disabling of comboboxes in Vertical/Horizontal space dialogs 2020-08-28 07:07:44 +02:00
GuiVSpace.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
GuiWorkArea_Private.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
GuiWorkArea.cpp Fix display of caret completion indicator 2020-10-13 17:09:33 +02:00
GuiWorkArea.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
GuiWrap.cpp
GuiWrap.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
IconPalette.cpp
IconPalette.h Amend efc0877f 2020-10-05 09:37:15 +02:00
InGuiThread.cpp
InGuiThread.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
InsertTableWidget.cpp
InsertTableWidget.h Amend efc0877f 2020-10-05 09:37:15 +02:00
InsetParamsDialog.cpp Loop refactoring 2020-10-09 09:04:20 +03:00
InsetParamsDialog.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
InsetParamsWidget.cpp
InsetParamsWidget.h
LaTeXHighlighter.cpp
LaTeXHighlighter.h
LayoutBox.cpp Refactoring 2020-10-05 14:55:00 +02:00
LayoutBox.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
LengthCombo.cpp
LengthCombo.h #9376 prepare use of Length in lyxrc - move the class Length to support 2020-08-07 09:24:31 +02:00
LyXFileDialog.cpp
LyXFileDialog.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
Makefile.am Get rid of Qt resources 2020-06-07 01:15:28 +02:00
Menus.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
Menus.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
PanelStack.cpp Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
PanelStack.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
qt_helpers.cpp Remove redundant const & for primitive types 2020-10-19 12:50:07 +03:00
qt_helpers.h Remove redundant const & for primitive types 2020-10-19 12:50:07 +03:00
qt_i18n.h
README
TocModel.cpp
TocModel.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
TocWidget.cpp Move Cursor.h from TocWidget.h 2020-10-16 08:02:51 +03:00
TocWidget.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
Toolbars.cpp Refactoring 2020-10-05 14:55:00 +02:00
Toolbars.h Reduce includes in header files (2) 2020-10-19 18:01:17 +03:00
ToolTipFormatter.cpp
ToolTipFormatter.h Amend efc0877f 2020-10-05 09:37:15 +02:00
Validator.cpp
Validator.h Amend efc0877f 2020-10-05 09:37:15 +02:00

This file contains some do's and dont's for the Qt 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
changed(). If you are using a more complicated thing anyway,
then remember to call 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.

moc needs 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. This is
usually done by adding a top-level layout to the dialog in Designer.

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 slotOK() etc. Refer to close/cancel as close in the
source.

Override update_contents() to update the dialog, not update().  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.{cpp,h}     The file that interacts with the controller _and_
the implementation of the dialog, derived from the generated files
ui/FooDialog.ui  The designer file
ui_FooDialog.h   Generated files from FooDialog.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
GB - group box
LA - label
LC - LengthCombo
LV - QListView
ML - QTextBrowser
PB - push button
RB - radio button
SB - spin box
SL - slider
TE - text edit
TW - tree widget (FIXME: also TV in some files)


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

LyX uses a different encoding (UCS4) than Qt (UTF16), therefore there are a
number of conversion functions in qt_helpers.{cpp,h}. Read the doxygen
documentation for details when to use which function.

Additionally, you should follow these simple rules :

o Use qt_() not _() in code
o Use the conversion functions of qt_helpers.h, NOT .latin1() / .c_str() etc.