lyx_mirror/src/frontends/qt4
2018-05-08 07:46:53 +02:00
..
ui Add \nospellcheck font property 2018-05-06 19:48:21 +02:00
.gitignore
Action.cpp
Action.h
BulletsModule.cpp
BulletsModule.h
ButtonController.cpp
ButtonController.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
ButtonPolicy.cpp Further BC fixes to GuiCharacter 2018-05-05 17:24:09 +02:00
ButtonPolicy.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CategorizedCombo.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
CategorizedCombo.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
CMakeLists.txt Cmake build: Add option to use native file dialog also for linux 2017-11-26 18:50:53 +01:00
ColorCache.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
ColorCache.h
CustomizedWidgets.cpp
CustomizedWidgets.h
Dialog.cpp Speed up exit time 2017-10-18 13:12:20 +02:00
Dialog.h Speed up exit time 2017-10-18 13:12:20 +02:00
DialogView.cpp
DialogView.h
DockView.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
DockView.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
EmptyTable.cpp
EmptyTable.h
FancyLineEdit.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
FancyLineEdit.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
FileDialog.cpp Make it possible to select (not)native file dialogs at run time 2018-03-19 11:17:33 +01:00
FileDialog.h
FindAndReplace.cpp Cleanup and simplify WorkArea code 2017-09-08 16:57:21 +02:00
FindAndReplace.h
FloatPlacement.cpp InsetFloat: allow float placement for rotated floats 2017-04-15 06:57:52 +02:00
FloatPlacement.h Implement proper dialog titles in InsetParamsDialogs 2016-08-26 11:35:12 +02:00
GuiAbout.cpp Fix little bit the garbled output for translators. 2018-02-22 20:55:35 +01:00
GuiAbout.h
GuiAlert.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiApplication.cpp buffer-forall now disables async 2018-04-21 22:59:26 -04:00
GuiApplication.h Unhide buffers that are marked dirty as a result of external modifications 2017-06-11 19:51:17 +02:00
GuiBibitem.cpp Extend LATEXIFY command param handling and add literal param. 2017-01-30 07:44:55 +01:00
GuiBibitem.h
GuiBibtex.cpp Get rid of idiosyncratic accelerator syntax 2017-12-20 11:37:13 +01:00
GuiBibtex.h #10662 use drawers for bibliography dialogs 2017-09-12 11:14:16 +02:00
GuiBox.cpp Use proper localization chain for Box special width/height 2018-01-27 12:26:01 +01:00
GuiBox.h
GuiBranch.cpp
GuiBranch.h
GuiBranches.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiBranches.h
GuiChanges.cpp
GuiChanges.h
GuiCharacter.cpp Separate Text Styles and Text Properties 2018-05-08 07:46:53 +02:00
GuiCharacter.h Add \nospellcheck font property 2018-05-06 19:48:21 +02:00
GuiCitation.cpp Filter in citation dialog is not respected when reloading databaze. 2018-03-02 00:50:32 +01:00
GuiCitation.h Respect "literal" setting when entering citation via LyX server. 2018-02-22 15:28:01 -05:00
GuiClipboard.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
GuiClipboard.h
GuiCommandBuffer.cpp Make "devel mode" configurable at run time 2017-07-24 22:00:44 +02:00
GuiCommandBuffer.h Make "devel mode" configurable at run time 2017-07-24 22:00:44 +02:00
GuiCommandEdit.cpp
GuiCommandEdit.h
GuiCompare.cpp Get rid of idiosyncratic accelerator syntax 2017-12-20 11:37:13 +01:00
GuiCompare.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
GuiCompareHistory.cpp
GuiCompareHistory.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
GuiCompleter.cpp Use UndoGroupHelper to track undo group lifetime 2017-11-29 14:55:56 +01:00
GuiCompleter.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
GuiDelimiter.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
GuiDelimiter.h
GuiDialog.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiDialog.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
GuiDocument.cpp Align fontenc with document fonts 2018-04-22 19:06:46 +02:00
GuiDocument.h Fix bug 11099. 2018-04-01 22:07:16 -04:00
GuiErrorList.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiErrorList.h
GuiERT.cpp Collapsable -> Collapsible (part 2) 2017-10-16 10:12:21 +02:00
GuiERT.h
GuiExternal.cpp Open ExternalInset dialog on first tab for new insets 2018-03-18 18:30:48 +01:00
GuiExternal.h
GuiFontExample.cpp
GuiFontExample.h
GuiFontLoader.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
GuiFontLoader.h
GuiFontMetrics.cpp Another go at fixing string metrics 2018-02-17 16:57:35 +01:00
GuiFontMetrics.h Use the same code for editable and non-editable buttons 2017-06-15 15:40:30 +02:00
GuiGraphics.cpp Get rid of idiosyncratic accelerator syntax 2017-12-20 11:37:13 +01:00
GuiGraphics.h Revert "Create new graphics from within LyX choosing a sample file to copy from." 2017-05-06 09:21:50 +02:00
GuiGraphicsUi.h
GuiHSpace.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiHSpace.h
GuiHyperlink.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiHyperlink.h
GuiIdListModel.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiIdListModel.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
GuiImage.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
GuiImage.h
GuiInclude.cpp Add literal param to InsetInclude 2018-02-23 08:58:16 +01:00
GuiInclude.h Fix #10874 compiler warnings. 2017-12-16 00:46:16 -05:00
GuiIndex.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiIndex.h
GuiIndices.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiIndices.h
GuiInfo.cpp
GuiInfo.h
GuiKeySymbol.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiKeySymbol.h
GuiLabel.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiLabel.h
GuiLine.cpp
GuiLine.h
GuiListings.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiListings.h
GuiLog.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiLog.h
GuiMathMatrix.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiMathMatrix.h
GuiNomenclature.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiNomenclature.h
GuiNote.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiNote.h
GuiPainter.cpp Do not presume what the defaults for a new QPainter are 2017-09-18 11:21:18 +02:00
GuiPainter.h three-stage drawing: add a nodraw stage 2017-08-29 16:37:07 +02:00
GuiParagraph.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiParagraph.h Speed up exit time 2017-10-18 13:12:20 +02:00
GuiPhantom.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiPhantom.h
GuiPrefs.cpp Rework OK/Apply/Cancel UI of prefs dialog 2018-04-28 11:19:26 +02:00
GuiPrefs.h Align fontenc with document fonts 2018-04-22 19:06:46 +02:00
GuiPrintindex.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiPrintindex.h
GuiPrintNomencl.cpp
GuiPrintNomencl.h Fix #10819: Set title for print nomencl dialog. 2017-11-26 22:00:14 -05:00
GuiProgress.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiProgress.h
GuiProgressView.cpp Fix bug #10881. 2018-02-22 00:17:46 -05:00
GuiProgressView.h Speed up exit time 2017-10-18 13:12:20 +02:00
GuiRef.cpp Fix bug #10882. 2018-02-22 00:20:19 -05:00
GuiRef.h
GuiSearch.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiSearch.h
GuiSelection.cpp
GuiSelection.h
GuiSelectionManager.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
GuiSelectionManager.h Fix 18 memory leaks 2017-02-26 22:16:10 +01:00
GuiSendto.cpp Fix bug #10883. 2018-02-22 00:21:41 -05:00
GuiSendto.h
GuiSetBorder.cpp
GuiSetBorder.h
GuiShowFile.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiShowFile.h
GuiSpellchecker.cpp Fix #10884 compiler warnings. 2017-12-16 00:48:34 -05:00
GuiSpellchecker.h Fix #10884 compiler warnings. 2017-12-16 00:48:34 -05:00
GuiSymbols.cpp Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
GuiSymbols.h
GuiTabular.cpp Add support for rotated longtabulars (via [pdf]lscape) 2018-04-18 13:22:29 +02:00
GuiTabular.h
GuiTabularCreate.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiTabularCreate.h
GuiTexinfo.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiTexinfo.h
GuiThesaurus.cpp Fix bug #10886. 2018-02-22 00:23:37 -05:00
GuiThesaurus.h
GuiToc.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiToc.h
GuiToolbar.cpp Add toolbar menus for custom insets and character styles. 2018-05-02 20:31:24 -04:00
GuiToolbar.h Add toolbar menus for custom insets and character styles. 2018-05-02 20:31:24 -04:00
GuiView.cpp Remove unused code 2018-05-05 11:28:54 +02:00
GuiView.h Refactor code showing error dialogs 2018-04-14 13:45:31 -04:00
GuiViewSource.cpp Speed up exit time 2017-10-18 13:12:20 +02:00
GuiViewSource.h Speed up exit time 2017-10-18 13:12:20 +02:00
GuiVSpace.cpp
GuiVSpace.h
GuiWorkArea_Private.h Use a backing store on macOS 2017-12-15 17:30:20 +01:00
GuiWorkArea.cpp Try to fix bug #10989. 2018-04-25 23:46:13 -04:00
GuiWorkArea.h Use qt4-compatible connect() syntax. 2018-01-12 15:42:04 +01:00
GuiWrap.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
GuiWrap.h
IconPalette.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
IconPalette.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
InGuiThread.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
InGuiThread.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
InsertTableWidget.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
InsertTableWidget.h
InsetParamsDialog.cpp Fix bug #10879. 2018-02-24 01:01:34 -05:00
InsetParamsDialog.h
InsetParamsWidget.cpp
InsetParamsWidget.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LaTeXHighlighter.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LaTeXHighlighter.h
LayoutBox.cpp Fix trailing whitespace in cpp files. 2017-07-03 13:53:14 -04:00
LayoutBox.h Fix whitespace at EOL. 2017-07-03 13:46:30 -04:00
LengthCombo.cpp
LengthCombo.h Bulk cleanup/fix incorrect annotation at the end of namespaces. 2017-07-23 13:11:54 +02:00
LyXFileDialog.cpp Get rid of idiosyncratic accelerator syntax 2017-12-20 11:37:13 +01:00
LyXFileDialog.h
Makefile.am Fix whitespace in some more files. 2017-07-03 14:46:27 -04:00
Menus.cpp Fix duplicate, disabled "Separated Frame Below" 2018-04-28 11:45:17 -04:00
Menus.h
PanelStack.cpp Fix minor whitespace error. 2017-07-17 22:23:17 +02:00
PanelStack.h
qt_helpers.cpp Fix bug #10893. 2018-02-22 00:34:52 -05:00
qt_helpers.h Sort external templates locale-aware 2017-08-09 16:09:50 +02:00
qt_i18n.h
README
TocModel.cpp Fix Undocked Outliner & multiple window crashes (#11004). 2018-03-12 14:34:24 +01:00
TocModel.h Fix Undocked Outliner & multiple window crashes (#11004). 2018-03-12 14:34:24 +01:00
TocWidget.cpp Fix Undocked Outliner & multiple window crashes (#11004). 2018-03-12 14:34:24 +01:00
TocWidget.h Fix Undocked Outliner & multiple window crashes (#11004). 2018-03-12 14:34:24 +01:00
Toolbars.cpp Add toolbar menus for custom insets and character styles. 2018-05-02 20:31:24 -04:00
Toolbars.h Add toolbar menus for custom insets and character styles. 2018-05-02 20:31:24 -04:00
ToolTipFormatter.cpp
ToolTipFormatter.h
Validator.cpp Fix bug #10892. 2018-02-22 00:33:28 -05:00
Validator.h

This file contains some do's and dont's for the Qt4 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.