lyx_mirror/src/frontends/qt4
André Pönitz 5c8f9bc525 compile fix. inclomplete transactioN???
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20078 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-05 20:52:35 +00:00
..
ui get rid of (cyg)win path panel in prefs by moving it to the latex panel 2007-09-02 20:17:36 +00:00
Action.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
Action.h move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
alert_pimpl.cpp
BulletsModule.cpp Fix ambiguity in translation 2007-08-31 11:09:46 +00:00
BulletsModule.h
ButtonController.cpp fix thinko 2007-09-03 06:11:51 +00:00
ButtonController.h Fix scons for Andre's patch, add a missing header file 2007-09-03 20:13:26 +00:00
ChangeLog move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
ColorCache.cpp
ColorCache.h
Dialogs.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
DockView.h the fun begins.... 2007-09-05 20:33:29 +00:00
EmptyTable.cpp
EmptyTable.h
FileDialog.cpp
FloatPlacement.cpp
FloatPlacement.h
GuiAbout.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiAbout.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiApplication.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiApplication.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBibitem.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBibitem.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBibtex.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBibtex.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBox.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBox.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBranch.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBranch.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBranches.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiBranches.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiChanges.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiChanges.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiCharacter.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiCharacter.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiCitation.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiCitation.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiClipboard.cpp
GuiClipboard.h Merge QController into individual dialogs. Also various cleanup 2007-08-31 22:16:11 +00:00
GuiCommandBuffer.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiCommandBuffer.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiCommandEdit.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiCommandEdit.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiDelimiter.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiDelimiter.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiDialog.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiDialog.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiDocument.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiDocument.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiEmbeddedFiles.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiEmbeddedFiles.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiErrorList.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiErrorList.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiERT.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiERT.h compile fix. inclomplete transactioN??? 2007-09-05 20:52:35 +00:00
GuiExternal.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiExternal.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiFloat.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiFloat.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiFontExample.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiFontExample.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiFontLoader.cpp rename a few view functions from foo() to fooView() 2007-09-03 20:28:26 +00:00
GuiFontLoader.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiFontMetrics.cpp
GuiFontMetrics.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiGraphics.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiGraphics.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiGraphicsUi.h move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiImage.cpp Merge QController into individual dialogs. Also various cleanup 2007-08-31 22:16:11 +00:00
GuiImage.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiImplementation.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiImplementation.h Merge QController into individual dialogs. Also various cleanup 2007-08-31 22:16:11 +00:00
GuiInclude.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiInclude.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiIndex.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiIndex.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiKeySymbol.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiKeySymbol.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiListings.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiListings.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiLog.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiLog.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiMathMatrix.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiMathMatrix.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiMenubar.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiMenubar.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiNomencl.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiNomencl.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiNote.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiNote.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiPainter.cpp comment out debug info. 2007-09-01 09:26:37 +00:00
GuiPainter.h Merge QController into individual dialogs. Also various cleanup 2007-08-31 22:16:11 +00:00
GuiParagraph.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiParagraph.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiPopupMenu.cpp resuscitate menus 2007-09-05 11:55:03 +00:00
GuiPopupMenu.h rename a few view functions from foo() to fooView() 2007-09-03 20:28:26 +00:00
GuiPrefs.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiPrefs.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiPrint.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiPrint.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiRef.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiRef.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSearch.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSearch.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSelection.cpp
GuiSelection.h
GuiSelectionManager.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSelectionManager.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSendto.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSendto.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSetBorder.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiSetBorder.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiShowFile.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiShowFile.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSpellchecker.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiSpellchecker.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiTabular.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiTabular.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiTabularCreate.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiTabularCreate.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiTexinfo.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiTexinfo.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiThesaurus.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiThesaurus.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiToc.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiToc.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiToolbar.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
GuiToolbar.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiURL.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiURL.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiView.cpp rename a few view functions from foo() to fooView() 2007-09-03 20:28:26 +00:00
GuiView.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiViewSource.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiViewSource.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiVSpace.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiVSpace.h the fun begins.... 2007-09-05 20:33:29 +00:00
GuiWorkArea.cpp Merge QController into individual dialogs. Also various cleanup 2007-08-31 22:16:11 +00:00
GuiWorkArea.h rename a few view functions from foo() to fooView() 2007-09-03 20:28:26 +00:00
GuiWrap.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
GuiWrap.h the fun begins.... 2007-09-05 20:33:29 +00:00
IconPalette.cpp xpm -> png 2007-08-30 20:09:12 +00:00
IconPalette.h
InsertTableWidget.cpp
InsertTableWidget.h
LengthCombo.cpp
LengthCombo.h
LyXFileDialog.cpp
LyXFileDialog.h
Makefile.am the fun begins.... 2007-09-05 20:33:29 +00:00
PanelStack.cpp single depth for preference items, 2007-08-30 14:22:56 +00:00
PanelStack.h
pch.h
qlkey.h
qt_helpers.cpp
qt_helpers.h move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
README the fun begins.... 2007-09-05 20:33:29 +00:00
socket_callback.cpp
socket_callback.h
TocModel.cpp move our stuff off the Q* namespace 2007-08-31 05:53:55 +00:00
TocModel.h
TocWidget.cpp the fun begins.... 2007-09-05 20:33:29 +00:00
TocWidget.h the fun begins.... 2007-09-05 20:33:29 +00:00
Validator.cpp
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.