lyx_mirror/src/frontends/qt4
Pavel Sanda a05f041470 ui-toggle lfun tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 23:52:25 +00:00
..
ui Adding preference for visual mode for bidi cursor movement 2008-02-10 19:51:23 +00:00
Action.cpp Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/. 2007-11-29 07:04:28 +00:00
Action.h Rename GuiViewBase to GuiView. 2007-11-05 13:52:37 +00:00
BulletsModule.cpp getting rid of superfluous std:: statements. 2007-12-12 19:28:07 +00:00
BulletsModule.h
ButtonController.cpp Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/. 2007-11-29 07:04:28 +00:00
ButtonController.h Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
ButtonPolicy.cpp getting rid of superfluous std:: statements. 2007-12-12 19:28:07 +00:00
ButtonPolicy.h Move Dialog.{h,cpp} and ButtonPolicy.{h,cpp} to frontends/qt4/ 2007-11-22 08:01:09 +00:00
ColorCache.cpp introduce a header to forward declare std::string. 2007-10-31 22:40:34 +00:00
ColorCache.h Move Color::color enum to ColorCode.h 2007-10-25 12:41:02 +00:00
CustomizedWidgets.cpp PrefShortcuts: use KeySequence::ForGui to display shortcuts 2007-10-31 17:15:10 +00:00
CustomizedWidgets.h - add label and remove subclassed SearchLineEdit 2007-10-29 08:56:30 +00:00
Dialog.cpp * Dialog::showView(): call checkStatus() after updateView() as some dialogs may re-enable some controls in updateView() (egg the paragraph dialog). 2008-02-08 17:25:59 +00:00
Dialog.h compilation fix 2008-02-05 15:16:49 +00:00
DialogView.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
DialogView.h Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
DockView.h Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
EmptyTable.cpp
EmptyTable.h
FileDialog.cpp Transfer FileDialog.h to qt4/ 2008-02-07 00:05:18 +00:00
FileDialog.h Transfer FileDialog.h to qt4/ 2008-02-07 00:05:18 +00:00
FloatPlacement.cpp *** Support for generic sideways floats *** 2008-01-11 18:56:53 +00:00
FloatPlacement.h *** Support for generic sideways floats *** 2008-01-11 18:56:53 +00:00
GuiAbout.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiAbout.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiAlert.cpp Patch to please gcc 4.3. Less bloat in the include headers means that 2008-02-07 17:04:06 +00:00
GuiApplication.cpp The core is now clean enough that we don't need the NoGuiFontLoader/Metrics anymore... 2008-02-07 09:12:19 +00:00
GuiApplication.h Transfer some GUI oriented code from core to frontend. 2008-02-06 23:02:57 +00:00
GuiBibitem.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiBibitem.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiBibtex.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiBibtex.h * src/frontends/qt4/GuiBibtex.{cpp,h}: 2008-01-12 09:30:21 +00:00
GuiBox.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiBox.h framed.sty goes InsetBox: 2007-12-04 09:25:50 +00:00
GuiBranch.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiBranch.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiBranches.cpp next one 2007-10-06 22:43:21 +00:00
GuiBranches.h
GuiChanges.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiChanges.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiCharacter.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiCharacter.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiCitation.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiCitation.h Support for nocite, provided by Bernhard Reiter. 2007-12-20 15:46:14 +00:00
GuiClipboard.cpp Transfer FileDialog.h to qt4/ 2008-02-07 00:05:18 +00:00
GuiClipboard.h * Support for graphics pasting (with most code in the frontend's GuiClipboard) 2008-02-03 10:43:03 +00:00
GuiCommandBuffer.cpp Unneeded headers, doxy cosmetics. 2008-02-09 12:20:05 +00:00
GuiCommandBuffer.h Some more cosmetics and removal of unused methods in GuiView. 2007-11-13 14:04:32 +00:00
GuiCommandEdit.cpp
GuiCommandEdit.h
GuiDelimiter.cpp remove unused macro 2008-02-07 14:22:41 +00:00
GuiDelimiter.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiDialog.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiDialog.h Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiDocument.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiDocument.h * src/frontends/GuiDocument.{cpp,h}: 2008-01-15 10:38:19 +00:00
GuiErrorList.cpp start work on less-likely-to-misuse iterators. 2008-02-09 15:23:05 +00:00
GuiErrorList.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiERT.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiERT.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiExternal.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiExternal.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiFloat.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiFloat.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiFontExample.cpp
GuiFontExample.h
GuiFontLoader.cpp getting rid of superfluous lyx::support:: statements. 2007-12-12 19:57:42 +00:00
GuiFontLoader.h fix memory leaks 2007-12-02 18:39:05 +00:00
GuiFontMetrics.cpp header cleanup 2008-01-14 23:18:52 +00:00
GuiFontMetrics.h
GuiGraphics.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiGraphics.h Embedding: simplify code in the handling of embedCB in GuiGraphics 2008-01-08 02:34:17 +00:00
GuiGraphicsUi.h
GuiHyperlink.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiHyperlink.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiIdListModel.cpp cosmetics 2008-01-19 12:33:01 +00:00
GuiIdListModel.h silence warning 2008-02-05 15:16:20 +00:00
GuiImage.cpp getting rid of superfluous lyx::support:: statements. 2007-12-12 19:57:42 +00:00
GuiImage.h cosmetics 2007-11-23 22:15:17 +00:00
GuiInclude.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiInclude.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiIndex.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiIndex.h Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiKeySymbol.cpp 'using namespace std' instead of 'using std::xxx' 2007-12-12 10:16:00 +00:00
GuiKeySymbol.h cosmetics 2007-10-02 21:51:54 +00:00
GuiListings.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiListings.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiLog.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiLog.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiMath.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiMath.h Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiMathMatrix.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiMathMatrix.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiNomencl.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiNomencl.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiNote.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiNote.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiPainter.cpp header cleanup 2008-01-14 23:18:52 +00:00
GuiPainter.h merge frontend::Painter into GuiPainter 2007-11-23 21:39:51 +00:00
GuiParagraph.cpp Disable alignment doesn't mean it's not possible (egg. readonly mode). 2008-02-09 10:11:11 +00:00
GuiParagraph.h Fix typo and remove unused code. 2008-02-08 16:14:24 +00:00
GuiPopupMenu.cpp * MenuBackend.cpp (binding): remove forgui argument 2008-01-07 10:53:04 +00:00
GuiPopupMenu.h * MenuBackend.cpp (binding): remove forgui argument 2008-01-07 10:53:04 +00:00
GuiPrefs.cpp Adding preference for visual mode for bidi cursor movement 2008-02-10 19:51:23 +00:00
GuiPrefs.h * The gui change for the mouse wheel speed setting. This includes the 2008-01-30 21:20:56 +00:00
GuiPrint.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiPrint.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiRef.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiRef.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiSearch.cpp headers. 2008-02-11 07:12:06 +00:00
GuiSearch.h Factorize general code out of GuiDialog and into the base Dialog class. This is now possible thanks to the moving of Dialog.{cpp,h} to qt4/. Any dialog must inherit QWidget within Qt so it is safe to use Dialog::asQWidget() method (which is similar to dynamic casting). 2007-12-09 22:35:04 +00:00
GuiSelection.cpp use QClipboard::selectionChanged() signal instead of QClipboard::dataChanged(). 2007-12-12 18:46:16 +00:00
GuiSelection.h remove #includes; cosmetics 2007-11-13 23:00:36 +00:00
GuiSelectionManager.cpp remove duplicated code, (fix cmake merge) 2008-01-14 19:52:16 +00:00
GuiSelectionManager.h This commit changes the way individual LyXModule's are represented, both internally and in the .lyx files. The earlier version represented them by their `descriptive name', e.g., "Endnote" or "Theorems (AMS)", these being the same names used in the UI. This was a mistake, as becomes readily apparent when one starts to think about translating these strings. The modules ought to be represented by their filename, without the extension, just as TextClass's are. 2008-01-12 04:28:12 +00:00
GuiSendto.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiSendto.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiSetBorder.cpp
GuiSetBorder.h
GuiShowFile.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiShowFile.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiSpellchecker.cpp start work on less-likely-to-misuse iterators. 2008-02-09 15:23:05 +00:00
GuiSpellchecker.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiSymbols.cpp simplification. 2008-02-08 17:55:43 +00:00
GuiSymbols.h * GuiSymbols.{cpp,h}: 2008-02-08 16:43:02 +00:00
GuiTabular.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiTabular.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiTabularCreate.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiTabularCreate.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiTexinfo.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiTexinfo.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiThesaurus.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiThesaurus.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiToc.cpp Add list of notes and list of footnotes to the outline pane. 2008-02-11 13:06:01 +00:00
GuiToc.h fix memory leaks 2007-12-02 18:39:05 +00:00
GuiToolbar.cpp * GuiLayoutBox: fix initial readonly disabled state and small cleanups. 2008-02-07 16:46:19 +00:00
GuiToolbar.h Introduce class PaletteButton in order to delay the icon palette initialisation up until it is first shown. This improve the inital loading time by 2.3 seconds on windows! 2008-01-16 18:27:24 +00:00
GuiToolbars.cpp * cosmetic 2007-12-23 00:48:41 +00:00
GuiToolbars.h * cosmetic 2007-12-23 00:48:41 +00:00
GuiView.cpp ui-toggle lfun tweaks. 2008-02-11 23:52:25 +00:00
GuiView.h Put LFUN_UI_TOGGLE in its own method and add FIXMEs WRT multple workareas. 2008-02-09 17:54:28 +00:00
GuiViewSource.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiViewSource.h use structure with named members instead of pair<int, int>... 2007-11-29 22:12:19 +00:00
GuiVSpace.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiVSpace.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
GuiWorkArea.cpp Handle full screen mode for all work areas. 2008-02-09 18:29:15 +00:00
GuiWorkArea.h Handle full screen mode for all work areas. 2008-02-09 18:29:15 +00:00
GuiWrap.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
GuiWrap.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
IconPalette.cpp don't update parent and make sure the icon sizes on the palette are correct 2008-01-16 20:51:00 +00:00
IconPalette.h don't update parent and make sure the icon sizes on the palette are correct 2008-01-16 20:51:00 +00:00
InsertTableWidget.cpp Please JMarc: Make sure we always pass through LyXFunc::dispatch() even if this is a waste of CPU. 2007-11-26 22:45:17 +00:00
InsertTableWidget.h Transfer some more dialog related code from core to frontend: 2007-11-23 09:44:02 +00:00
LaTeXHighlighter.cpp Use a less verbose form for warnings in the view source window 2007-12-30 21:28:38 +00:00
LaTeXHighlighter.h * src/Buffer.cpp: 2007-12-24 13:55:01 +00:00
LengthCombo.cpp cosmetics... less than intented 2007-10-24 22:55:02 +00:00
LengthCombo.h
LyXFileDialog.cpp * src/frontends/qt4/LyXFileDialog.cpp: 2008-02-10 11:50:10 +00:00
LyXFileDialog.h Transfer FileDialog.h to qt4/ 2008-02-07 00:05:18 +00:00
Makefile.am * do not pass headers without Q_OBJECT through moc 2008-02-07 13:45:40 +00:00
Menus.cpp Fix mac menubar only modifying the Prefs. 2008-01-16 16:50:10 +00:00
Menus.h * compile fix 2007-12-26 13:29:45 +00:00
PanelStack.cpp 'using namespace std' instead of 'using std::xxx' 2007-12-12 10:16:00 +00:00
PanelStack.h
pch.h cosmetics 2007-11-02 21:04:52 +00:00
qlkey.h Cosmetic changes to how shortcuts are printed: S-C-S => C-S-s because S-S can be confusion, and Ctrl-Shift is more natural than Shift-Ctrl 2007-10-30 16:34:35 +00:00
qt_helpers.cpp Transfer FileDialog.h to qt4/ 2008-02-07 00:05:18 +00:00
qt_helpers.h merge helper files; 2007-11-05 22:20:23 +00:00
README
TocModel.cpp Patch to please gcc 4.3. Less bloat in the include headers means that 2008-02-07 17:04:06 +00:00
TocModel.h cosmetics 2007-11-14 00:21:31 +00:00
TocWidget.cpp Factorize out the way window titles are handled. 2008-02-05 12:43:19 +00:00
TocWidget.h next one 2007-10-06 20:54:31 +00:00
Validator.cpp 'using namespace std' instead of 'using std::xxx' 2007-12-12 10:16:00 +00:00
Validator.h cosmetics 2007-11-14 00:21:31 +00:00

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.