lyx_mirror/src/frontends/qt4
André Pönitz 163a95106e more dialog merging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17977 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-25 08:42:22 +00:00
..
ui * src/frontends/qt4/ui/DelimiterUi.ui: 2007-04-24 14:34:31 +00:00
Action.C * Action.[Ch] 2007-04-19 20:29:27 +00:00
Action.h * Action.[Ch] 2007-04-19 20:29:27 +00:00
Alert_pimpl.C renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
BulletsModule.C * src/frontends/qt4/BulletModule.C: remove unneeded debug include. 2007-03-27 06:57:50 +00:00
BulletsModule.h * replace many toggled(bool) with changed() signals 2007-01-17 13:06:16 +00:00
ChangeLog
checkedwidgets.C Fix for bug 3215. All changes in src/frontends/qt4/. 2007-04-05 14:58:15 +00:00
checkedwidgets.h Fix for bug 3215. All changes in src/frontends/qt4/. 2007-04-05 14:58:15 +00:00
ColorCache.C
ColorCache.h
Dialogs.C merge QViewSource and QViewSourceDialog 2007-04-24 14:08:53 +00:00
DockView.h Present for Bo: Cleanup ViewSource and make it a DockWidget. 2007-03-25 01:25:29 +00:00
emptytable.C
emptytable.h
FileDialog_private.C undo last acedential checkin 2006-12-30 10:30:02 +00:00
FileDialog_private.h
FileDialog.C avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
FloatPlacement.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
FloatPlacement.h
GuiApplication.C Implement Angus suggestion. 2007-04-02 10:18:12 +00:00
GuiApplication.h Fix bug 3288: 2007-04-01 16:06:43 +00:00
GuiClipboard.C explain why ownsClipbiard() does not work on Windows and OS X 2007-04-03 08:27:23 +00:00
GuiClipboard.h Fix bug 2138: copy and paste should preserve formatting between different 2007-01-13 18:29:50 +00:00
GuiFontLoader.C remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed 2007-04-01 14:35:42 +00:00
GuiFontLoader.h
GuiFontMetrics.C Cache char right bearings 2007-03-21 23:13:32 +00:00
GuiFontMetrics.h Cache char right bearings 2007-03-21 23:13:32 +00:00
GuiImplementation.C Fix this error message on startup: 2006-12-21 12:01:35 +00:00
GuiImplementation.h Clean up quit code. 2006-12-02 17:39:31 +00:00
GuiSelection.C Normalize everything that comes from 'outside' (plain text import, 2007-04-03 08:15:39 +00:00
GuiSelection.h Fix enabling of LFUN_PRIMARY_SELECTION_PASTE: It was always disabled, because 2007-01-08 18:37:40 +00:00
GuiView.C * frontends/LyXView.h: 2007-04-21 17:38:43 +00:00
GuiView.h * frontends/LyXView.h: 2007-04-21 17:38:43 +00:00
GuiWorkArea.C Restore the version number position on the splash screen 2007-04-07 01:07:51 +00:00
GuiWorkArea.h Improved input method support by M. Iwami. I fixed some typo, and simplified the code a bit. 2007-04-01 09:14:08 +00:00
iconpalette.C * remove old iconpalette (and rename iconpanel to iconpalette) 2007-04-19 22:01:28 +00:00
iconpalette.h Compilation fixes: 2007-04-20 07:29:02 +00:00
InsertTableWidget.C remove "BufferView.h" 2007-04-04 12:58:40 +00:00
InsertTableWidget.h
lengthcombo.C * qt4/QExternal.C: 2006-12-03 01:11:37 +00:00
lengthcombo.h
LyXKeySymFactory.C
Makefile.am more dialog merging 2007-04-25 08:42:22 +00:00
Makefile.dialogs more dialog merging 2007-04-25 08:42:22 +00:00
panelstack.C avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
panelstack.h
pch.h
QAbout.C merge QAbout and QAboutDialog 2007-04-24 11:32:09 +00:00
QAbout.h merge QAbout and QAboutDialog 2007-04-24 11:32:09 +00:00
QBibitem.C more dialog merging 2007-04-25 08:42:22 +00:00
QBibitem.h more dialog merging 2007-04-25 08:42:22 +00:00
QBibtex.C more dialog merging 2007-04-25 08:42:22 +00:00
QBibtex.h more dialog merging 2007-04-25 08:42:22 +00:00
QBibtexDialog.C * replace many toggled(bool) with changed() signals 2007-01-17 13:06:16 +00:00
QBibtexDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QBox.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QBox.h merge QBox and QBoxDialog 2007-04-24 10:56:22 +00:00
QBranch.C more dialog merging 2007-04-25 08:42:22 +00:00
QBranch.h more dialog merging 2007-04-25 08:42:22 +00:00
QBranchDialog.C
QBranchDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QBranches.C
QBranches.h
QChanges.C compile qt4 three times faster with msvc: 2007-03-22 23:07:24 +00:00
QChanges.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QChangesDialog.C While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QChangesDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QCharacter.C * src/frontends/qt4/QCharacter.C: 2007-03-26 14:06:20 +00:00
QCharacter.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QCharacterDialog.C While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QCharacterDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QCitation.C avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
QCitation.h Cleanup and polish of the Citation dialog: 2007-03-25 01:32:12 +00:00
QCitationDialog.C add missing #include 2007-03-25 15:22:54 +00:00
QCitationDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QCommandBuffer.C * QCommandBuffer::complete(): Add connection to QListWidget::itemActivated() in order to select in the help list with "Enter". 2007-04-19 16:43:09 +00:00
QCommandBuffer.h Fix focus on WorkArea after mini-buffer command. 2006-12-23 17:09:50 +00:00
QCommandEdit.C
QCommandEdit.h
QDelimiterDialog.C Pass the main window (GuiView) to the delimiter dialog so that it is properly handled by the window manager. 2007-04-22 07:54:36 +00:00
QDelimiterDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QDialogView.C Made sizeHint const. 2007-04-03 21:47:00 +00:00
QDialogView.h It seems that commit 17167 was not enough to ensure that the proper hide/show/update methods are called. 2007-02-15 10:16:35 +00:00
QDocument.C more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QDocument.h more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QErrorList.C compile qt4 three times faster with msvc: 2007-03-22 23:07:24 +00:00
QErrorList.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QErrorListDialog.C * QErrorList::update_contents(): avoid touching the dialog here. 2007-01-25 10:21:02 +00:00
QErrorListDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QERT.C merge QERT and QERTDialog 2007-04-24 13:47:33 +00:00
QERT.h merge QERT and QERTDialog 2007-04-24 13:47:33 +00:00
QExternal.C more dialog merging 2007-04-25 08:42:22 +00:00
QExternal.h more dialog merging 2007-04-25 08:42:22 +00:00
QFloat.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QFloat.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QFloatDialog.C
QFloatDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
qfontexample.C
qfontexample.h
QGraphics.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QGraphics.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QGraphicsDialog.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QGraphicsDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QGraphicsUi.h
QInclude.C compile qt4 three times faster with msvc: 2007-03-22 23:07:24 +00:00
QInclude.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QIncludeDialog.C Fix a bunch of focus proxy. 2007-03-28 21:17:47 +00:00
QIncludeDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QIndex.C more dialog merging 2007-04-25 08:42:22 +00:00
QIndex.h more dialog merging 2007-04-25 08:42:22 +00:00
QLImage.C restore the old LyX banner in preparation of the next release; 2007-04-01 20:33:40 +00:00
QLImage.h Next step of true unicode filenames: Use support::FileName instead of 2006-11-26 21:30:39 +00:00
qlkey.h
QLMenubar.C avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
QLMenubar.h
QLog.C more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QLog.h more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QLPainter.C remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed 2007-04-01 14:35:42 +00:00
QLPainter.h * support/qstring_helpers.h: erase ucs4_to_qstring() method. 2007-02-26 15:13:08 +00:00
QLPopupMenu.C avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
QLPopupMenu.h * QLMenubar.C (macxMenuBarInit): fix workaround for menu merging 2006-12-20 14:28:06 +00:00
QLPrintDialog.C * replace many toggled(bool) with changed() signals 2007-01-17 13:06:16 +00:00
QLPrintDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QLToolbar.C * src/frontend/qt4/QLToolbar.C: fix translation of toolbar 2007-04-22 10:05:17 +00:00
QLToolbar.h * Action.[Ch] 2007-04-19 20:29:27 +00:00
QLyXKeySym.C remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the output is actually needed 2007-04-01 14:35:42 +00:00
QLyXKeySym.h We use char_type, not size_t for storing UCS4 characters. 2007-01-24 14:01:34 +00:00
QMathMatrixDialog.C * removal of math panel 2007-04-19 21:42:42 +00:00
QMathMatrixDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QNomencl.C Fix bug 3413: 2007-04-06 16:27:10 +00:00
QNomencl.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QNomenclDialog.C Fix bug 3413: 2007-04-06 16:27:10 +00:00
QNomenclDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QNote.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QNote.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QNoteDialog.C * replace many toggled(bool) with changed() signals 2007-01-17 13:06:16 +00:00
QNoteDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QParagraph.C more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QParagraph.h more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QPrefs.C merge QPref and QPrefDialog 2007-04-25 07:13:54 +00:00
QPrefs.h merge QPref and QPrefDialog 2007-04-25 07:13:54 +00:00
QPrefsDialog.C Fix some shortcut issues with the converters subdialog. Problem was that some shortcuts defined here are also defined in the main preferences dialog, and some were doubly defined here, too. Also set focus proxy for definitions group box. 2007-04-19 17:29:59 +00:00
QPrefsDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QPrint.C compile qt4 three times faster with msvc: 2007-03-22 23:07:24 +00:00
QPrint.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QRef.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QRef.h Fix bug 2474; partial fix for 1777. Added last_reference_ member to QRef class and reworked logic involving display of last added reference. Added logic to make sure selected item is visible. 2007-04-24 22:10:56 +00:00
QRefDialog.C Fix bug 3461. Add reset_dialog() method that resets the QRef::at_ref_ boolean on dialog close. 2007-04-23 15:25:02 +00:00
QRefDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QSearch.C merge QSearch and QSearchDialog 2007-04-24 13:27:23 +00:00
QSearch.h merge QSearch and QSearchDialog 2007-04-24 13:27:23 +00:00
QSendto.C compile qt4 three times faster with msvc: 2007-03-22 23:07:24 +00:00
QSendto.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QSendtoDialog.C
QSendtoDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
qsetborder.C
qsetborder.h
QShowFile.C more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QShowFile.h more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QSpellchecker.C merge QSpellChecker and QSpellcheckerDialog 2007-04-24 15:32:14 +00:00
QSpellchecker.h merge QSpellChecker and QSpellcheckerDialog 2007-04-24 15:32:14 +00:00
Qt2BC.C
Qt2BC.h
qt_helpers.C Fix for bug 3215. All changes in src/frontends/qt4/. 2007-04-05 14:58:15 +00:00
qt_helpers.h Fix for bug 3215. All changes in src/frontends/qt4/. 2007-04-05 14:58:15 +00:00
QTabular.C merge the tabular/gui related files 2007-04-24 17:46:08 +00:00
QTabular.h merge the tabular/gui related files 2007-04-24 17:46:08 +00:00
QTabularCreate.C merge the tabular/gui related files 2007-04-24 17:46:08 +00:00
QTabularCreate.h merge the tabular/gui related files 2007-04-24 17:46:08 +00:00
QTexinfo.C merge QTexinfo and QTexinfoDialog 2007-04-24 15:10:14 +00:00
QTexinfo.h merge QTexinfo and QTexinfoDialog 2007-04-24 15:10:14 +00:00
QThesaurus.C merge QThesaurus and QThesaurusDialog 2007-04-24 14:35:15 +00:00
QThesaurus.h merge QThesaurus and QThesaurusDialog 2007-04-24 14:35:15 +00:00
QToc.C add GuiView parent to QToc for proper memory management. 2007-04-07 00:04:38 +00:00
QToc.h add GuiView parent to QToc for proper memory management. 2007-04-07 00:04:38 +00:00
qtTimeout.C
qtTimeout.h
QURLDialog.C Fix focus proxy. 2007-03-28 20:14:50 +00:00
QURLDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QViewSource.C merge QViewSource and QViewSourceDialog 2007-04-24 14:08:53 +00:00
QViewSource.h merge QViewSource and QViewSourceDialog 2007-04-24 14:08:53 +00:00
QVSpace.C merge QVSpace and QVSpaceDialog 2007-04-24 12:02:27 +00:00
QVSpace.h merge QVSpace and QVSpaceDialog 2007-04-24 12:02:27 +00:00
QWrap.C Rename insets/insetxxx to insets/InsetXxx, part 1 2007-04-25 01:24:38 +00:00
QWrap.h merge QWrapDialog and QWrap 2007-04-24 14:59:51 +00:00
README renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
socket_callback.C undo last acedential checkin 2006-12-30 10:30:02 +00:00
socket_callback.h
TocModel.C avoid evalutation of lyxerr arguments unless really needed 2007-04-01 10:09:49 +00:00
TocModel.h
TocWidget.C Fix loop when opening TOC widget in an empty document, basically by Richard Heck. 2007-04-17 10:27:53 +00:00
TocWidget.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
UrlView.C compile qt4 three times faster with msvc: 2007-03-22 23:07:24 +00:00
UrlView.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
validators.C Fix for bug 3215. All changes in src/frontends/qt4/. 2007-04-05 14:58:15 +00:00
validators.h Fix for bug 3215. All changes in src/frontends/qt4/. 2007-04-05 14:58:15 +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
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.

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/FooDialog.ui       The designer file
ui/FooDialogBase.[Ch] 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)


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 uses a different encoding (UCS4) than Qt (UTF16), therefore there are a
number of conversion functions in qt_helpers.[Ch]. 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.