lyx_mirror/src/frontends/qt2
John Levon c25a3c200c keynav fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5269 a592a061-630c-0410-9148-cb99ea01b6c8
2002-09-11 17:42:45 +00:00
..
moc Add basic bits of Qt's math panel. Hacked together (no MVC yet) but 2002-08-30 16:20:27 +00:00
ui keynav fixes 2002-09-11 17:42:45 +00:00
.cvsignore
Alert_pimpl.C keynav fixes 2002-09-11 17:42:45 +00:00
ChangeLog keynav fixes 2002-09-11 17:42:45 +00:00
Dialogs2.C build fixes 2002-09-10 18:44:53 +00:00
Dialogs_impl.h build fixes 2002-09-10 18:44:53 +00:00
Dialogs.C Qt2 compiles again and in about half the time of xforms. 2002-08-15 19:07:17 +00:00
emptytable.C
emptytable.h
FileDialog_private.C File dialog fixes. Implement optional menu items 2002-08-25 20:53:39 +00:00
FileDialog_private.h File dialog fixes. Implement optional menu items 2002-08-25 20:53:39 +00:00
FileDialog.C File dialog fixes. Implement optional menu items 2002-08-25 20:53:39 +00:00
iconpalette.C god DAMN ! 2002-09-08 05:00:37 +00:00
iconpalette.h relayout on resize for the icon palette 2002-09-08 02:37:57 +00:00
io_callback.h remove_io_callback for Qt 2002-07-31 04:33:03 +00:00
lengthcombo.C Rob's patch and some minor cleanup 2002-08-24 22:02:30 +00:00
lengthcombo.h build fixes 2002-08-06 00:54:20 +00:00
lyx_gui.C Some stuff. 2002-08-25 05:41:42 +00:00
LyXKeySymFactory.C
LyXScreenFactory.C
Makefile.am Add basic bits of Qt's math panel. Hacked together (no MVC yet) but 2002-08-30 16:20:27 +00:00
Makefile.dialogs Add basic bits of Qt's math panel. Hacked together (no MVC yet) but 2002-08-30 16:20:27 +00:00
Menubar_pimpl.C fix navigate 2002-09-10 19:23:38 +00:00
Menubar_pimpl.h Populate menus on popup - good news JMarc, it seems to work (almost) perfectly 2002-08-25 18:26:45 +00:00
QAbout.C no interesting changes 2002-08-29 02:04:31 +00:00
QAbout.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QAboutDialog.C
QAboutDialog.h
QBibitem.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QBibitem.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QBibitemDialog.C
QBibitemDialog.h
QBibtex.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QBibtex.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QBibtexDialog.C Trivial compilation fixes. 2002-07-24 07:35:59 +00:00
QBibtexDialog.h
QCharacter.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QCharacter.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QCharacterDialog.C
QCharacterDialog.h
QCitation.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QCitation.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QCitationDialog.C Fix loop search in cite dialog. Also info update fix. 2002-07-22 15:30:24 +00:00
QCitationDialog.h
QCommandBuffer.C some math dialog non-improvements 2002-09-06 01:44:02 +00:00
QCommandBuffer.h use qlistbox for command buffer 2002-08-29 04:39:43 +00:00
QCommandEdit.C make tab work 2002-07-25 04:41:11 +00:00
QCommandEdit.h added files 2002-07-19 23:05:24 +00:00
QContentPane.C fix repaints etc. 2002-09-11 15:56:07 +00:00
QContentPane.h implement triple click 2002-08-29 01:25:41 +00:00
QDocument.C
QDocument.h
QDocumentDialog.C
QDocumentDialog.h
QError.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QError.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QErrorDialog.C
QErrorDialog.h
QERT.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QERT.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QERTDialog.C
QERTDialog.h
QExternal.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QExternal.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QExternalDialog.C keynav fixes 2002-09-11 17:42:45 +00:00
QExternalDialog.h keynav fixes 2002-09-11 17:42:45 +00:00
QFloat.C another fix 2002-09-08 06:22:06 +00:00
QFloat.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QFloatDialog.C float dialog fixes 2002-09-08 06:16:40 +00:00
QFloatDialog.h float dialog fixes 2002-09-08 06:16:40 +00:00
qfont_loader.C fix emph style. Needed realShape (uggggh) 2002-09-08 05:13:04 +00:00
qfont_loader.h add debug for what fonts we use 2002-09-07 19:51:58 +00:00
qfont_metrics.C painter fixes 2002-09-11 03:05:19 +00:00
QGraphics.C Some Qt graphics dialog improvements. Yet more work needed :/ 2002-08-25 04:06:06 +00:00
QGraphics.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QGraphicsDialog.C keynav fixes 2002-09-11 17:42:45 +00:00
QGraphicsDialog.h keynav fixes 2002-09-11 17:42:45 +00:00
QInclude.C build fixes 2002-09-10 18:44:53 +00:00
QInclude.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QIncludeDialog.C keynav fixes 2002-09-11 17:42:45 +00:00
QIncludeDialog.h keynav fixes 2002-09-11 17:42:45 +00:00
QIndex.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QIndex.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QIndexDialog.C keynav fixes 2002-09-11 17:42:45 +00:00
QIndexDialog.h keynav fixes 2002-09-11 17:42:45 +00:00
QLImage.C use qlistbox for command buffer 2002-08-29 04:39:43 +00:00
QLImage.h remove getPixmap() from GraphicsImage 2002-07-15 17:17:57 +00:00
qlkey.h Remove crap again. Make redo key binding work. 2002-08-25 06:45:16 +00:00
QLog.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QLog.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QLogDialog.C
QLogDialog.h
QLPainter.C painter fixes 2002-09-11 03:05:19 +00:00
QLPainter.h Asymptotic approach to a well-designed graphics loader. 2002-06-28 11:22:56 +00:00
QLPopupMenu.C fix navigate 2002-09-10 19:23:38 +00:00
QLPopupMenu.h fix navigate 2002-09-10 19:23:38 +00:00
QLyXKeySym.C Compilation fix. 2002-09-04 09:46:08 +00:00
QLyXKeySym.h Remove crap again. Make redo key binding work. 2002-08-25 06:45:16 +00:00
QMath.C some math dialog non-improvements 2002-09-06 01:44:02 +00:00
QMath.h some math dialog non-improvements 2002-09-06 01:44:02 +00:00
QMathDialog.C god DAMN ! 2002-09-08 05:00:37 +00:00
QMathDialog.h first cut of detachable icon menus. Buggy. 2002-09-08 02:57:10 +00:00
QMinipage.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QMinipage.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QMinipageDialog.C
QMinipageDialog.h
QParagraph.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QParagraph.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QParagraphDialog.C build fixes 2002-08-06 00:54:20 +00:00
QParagraphDialog.h Add paragraph dialog to qt2 frontend. First commit, I am sure it can be done better but it works. 2002-07-17 15:51:23 +00:00
QPreamble.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QPreamble.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QPreambleDialog.C
QPreambleDialog.h
QPrint.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QPrint.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QPrintDialog.C some math dialog non-improvements 2002-09-06 01:44:02 +00:00
QPrintDialog.h
QRef.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QRef.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QRefDialog.C
QRefDialog.h
qscreen.C fix repaints etc. 2002-09-11 15:56:07 +00:00
qscreen.h incomplete key mapping stuff. Introduces some breakage. 2002-07-30 00:53:57 +00:00
QSearch.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QSearch.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QSearchDialog.C keynav fixes 2002-09-11 17:42:45 +00:00
QSearchDialog.h keynav fixes 2002-09-11 17:42:45 +00:00
QShowFile.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QShowFile.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QShowFileDialog.C
QShowFileDialog.h
QSpellchecker.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QSpellchecker.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QSpellcheckerDialog.C
QSpellcheckerDialog.h build fixes 2002-08-06 00:54:20 +00:00
Qt2Base.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
Qt2Base.h * LyXView: the accessor methods now return a reference to the member 2002-08-13 14:40:38 +00:00
Qt2BC.C
Qt2BC.h
QTabularCreate.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QTabularCreate.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QTabularCreateDialog.C
QTabularCreateDialog.h
QTexinfo.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QTexinfo.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QTexinfoDialog.C Texinfo path issue repaired, Bibtex style combo, Citation, External re-layout. 2002-07-23 13:12:55 +00:00
QTexinfoDialog.h Texinfo path issue repaired, Bibtex style combo, Citation, External re-layout. 2002-07-23 13:12:55 +00:00
QThesaurus.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QThesaurus.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QThesaurusDialog.C
QThesaurusDialog.h
QtLyXView.h
QToc.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QToc.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QTocDialog.C
QTocDialog.h
qttableview.C
qttableview.h
QtView.C d'oh 2002-08-29 08:51:45 +00:00
QtView.h qt command buffer stuff, some image fixes 2002-07-19 23:04:55 +00:00
QURL.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QURL.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QURLDialog.C keynav fixes 2002-09-11 17:42:45 +00:00
QURLDialog.h keynav fixes 2002-09-11 17:42:45 +00:00
QVCLog.C No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QVCLog.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
QVCLogDialog.C
QVCLogDialog.h
QWorkArea.C qt command buffer stuff, some image fixes 2002-07-19 23:04:55 +00:00
QWorkArea.h resize/redraw changes 2002-06-21 02:58:54 +00:00
README incomplete key mapping stuff. Introduces some breakage. 2002-07-30 00:53:57 +00:00
Timeout_pimpl.C
Timeout_pimpl.h
TODO fix repaints etc. 2002-09-11 15:56:07 +00:00
Toolbar_pimpl.C unfocus layout combo on select 2002-08-29 14:43:01 +00:00
Toolbar_pimpl.h No longer pass Controller & or Dialogs & to the View c-tors. 2002-08-12 14:28:43 +00:00
WorkAreaFactory.C

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

Don't #undef emit - #include "QtLyXView.h" instead
 
Naming conventions
------------------

QFoo.[Ch]              The file that interacts with the controller
QFooDialog.[Ch]        The implementation of the dialog, derived from the generated files
ui/QFooDialog.ui       The designer file
ui/QFooDialogBase.[Ch] Generated files from QFooDialog.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
LA - label
ML -
PB - push button
(FIXME: complete this)

 
Dialog		Maintainer	MVC conversion
----------------------------------------------
About		John		Done
Bibitem		John		Done
Bibtex		John		Done
Character	Edwin		Done
Citation	Kalle		Done
Document	Kalle		Waiting for MVC
ERT		John		Done
Error		John		Done 
External	John		Done 
Graphics	John		Done
Include		John		Done 
Index		Kalle		Done
Log		John		Done
Minipage	John		Done 
Paragraph	Edwin		Waiting to be updated
Preamble	John		Done
Print		Edwin		Done
Ref		Kalle		Done
Search		Edwin		Done
Spellchecker	John		Done
Splash		Edwin
Tabular				Waiting for MVC
TabularCreate	Edwin		Done
Thesaurus	John		Done
Toc		Kalle		Waiting to be updated
Url		Kalle		Done
VCLog		John		Done