lyx_mirror/src/frontends/qt2
John Levon af9ab9d8b6 use sed to replace tr() with _()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2597 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-27 16:51:13 +00:00
..
moc some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00
ui use sed to replace tr() with _() 2001-08-27 16:51:13 +00:00
.cvsignore The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
ChangeLog use sed to replace tr() with _() 2001-08-27 16:51:13 +00:00
Dialogs.C Thesaurus dialog. Untested, as it won't build for me. I get undefined 2001-08-27 02:54:27 +00:00
emptytable.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
emptytable.h Qt2 compilation + LColor cleanup from John 2001-06-05 17:05:51 +00:00
FileDialog_private.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
FileDialog_private.h In for a penny, in for a pound. Consistent use of // -*- C++ -*- 2001-06-14 08:20:41 +00:00
FileDialog.C Fogot to "add" these files when I committed last time. 2001-03-12 12:47:07 +00:00
GUIRunTime.C add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
Makefile.am whoops ... 2001-08-27 15:05:35 +00:00
Makefile.dialogs Thesaurus dialog. Untested, as it won't build for me. I get undefined 2001-08-27 02:54:27 +00:00
QAbout.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QAbout.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QAboutDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QAboutDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QBibitem.C bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibitem.h bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibitemDialog.C bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibitemDialog.h bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QBibtex.C Add a Bibtex dialog with Herbert's spangly new things + some more. 2001-08-26 03:20:52 +00:00
QBibtex.h Add a Bibtex dialog with Herbert's spangly new things + some more. 2001-08-26 03:20:52 +00:00
QBibtexDialog.C add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QBibtexDialog.h bibitem dialog for Qt2. Took longer to build than to write ;) 2001-08-26 15:34:36 +00:00
QCharacter.C character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCharacter.h character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCharacterDialog.C character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCharacterDialog.h character dialog with auto-apply ... 2001-08-26 17:49:42 +00:00
QCitation.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QCitation.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QCitationDialog.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QCitationDialog.h some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00
QDocument.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QDocument.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QDocumentDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QDocumentDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QError.C Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QError.h Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QErrorDialog.C Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QErrorDialog.h Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QERT.C forgot cvs add ... 2001-08-26 19:19:27 +00:00
QERT.h forgot cvs add ... 2001-08-26 19:19:27 +00:00
QERTDialog.C forgot cvs add ... 2001-08-26 19:19:27 +00:00
QERTDialog.h forgot cvs add ... 2001-08-26 19:19:27 +00:00
QExternal.C add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QExternal.h add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QExternalDialog.C add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QExternalDialog.h add external material dialog to Qt2 2001-08-27 01:19:32 +00:00
QIndex.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QIndex.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QIndexDialog.C Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QIndexDialog.h Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
QParagraph.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QParagraph.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QParagraphDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QParagraphDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QPrint.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QPrint.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QPrintDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QPrintDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QRef.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QRef.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QRefDialog.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QRefDialog.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QSearch.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSearch.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSearchDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSearchDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSplash.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSplash.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSplashDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QSplashDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
Qt2Base.C ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
Qt2Base.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
Qt2BC.C small silly 2001-08-26 01:01:12 +00:00
Qt2BC.h some small updates 2001-08-23 21:21:50 +00:00
QTabularCreate.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTabularCreate.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTabularCreateDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTabularCreateDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QThesaurus.C Thesaurus dialog. Untested, as it won't build for me. I get undefined 2001-08-27 02:54:27 +00:00
QThesaurus.h Thesaurus dialog. Untested, as it won't build for me. I get undefined 2001-08-27 02:54:27 +00:00
QThesaurusDialog.C Thesaurus dialog. Untested, as it won't build for me. I get undefined 2001-08-27 02:54:27 +00:00
QThesaurusDialog.h Thesaurus dialog. Untested, as it won't build for me. I get undefined 2001-08-27 02:54:27 +00:00
QtLyXView.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QToc.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QToc.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTocDialog.C The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QTocDialog.h The big renaming. Yowser. 2001-08-19 13:25:15 +00:00
QURL.C small silly 2001-08-26 01:01:12 +00:00
QURL.h ref dialog, more updates (BC stuff should now be OK along with the coming 2001-08-26 00:29:39 +00:00
QURLDialog.C various fixes 2001-08-25 20:04:15 +00:00
QURLDialog.h various fixes 2001-08-25 20:04:15 +00:00
README Qt2 latex error dialog 2001-08-26 18:49:33 +00:00
Timeout_pimpl.C some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00
Timeout_pimpl.h some more random changes, added Timeout (make clean if LyX crashes !!) 2001-08-25 03:00:19 +00:00

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 (e.g. the index dialog)
 
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
Bibtex		John		Done
Character	Edwin		Done
Citation	Kalle		Done
Document	Kalle		Waiting for MVC
Error		John		Done 
Index		Kalle		Done
Paragraph	Edwin		Waiting for MVC
Print		Edwin
Ref		Kalle		Done
Search		Edwin
Splash		Edwin
Tabular				Waiting for MVC
TabularCreate	Edwin
Toc		Kalle
Url		Kalle		Done