]> git.lyx.org Git - features.git/commitdiff
Merge QController into individual dialogs. Also various cleanup
authorAndré Pönitz <poenitz@gmx.net>
Fri, 31 Aug 2007 22:16:11 +0000 (22:16 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 31 Aug 2007 22:16:11 +0000 (22:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19961 a592a061-630c-0410-9148-cb99ea01b6c8

123 files changed:
development/qmake/qt4/qt4.pro
development/scons/scons_manifest.py
po/POTFILES.in
po/ca.po
po/cs.po
po/es.po
po/eu.po
po/fr.po
po/gl.po
po/hu.po
po/it.po
po/ko.po
po/nn.po
po/pl.po
po/pt.po
po/ro.po
po/tr.po
src/frontends/qt4/Dialogs.cpp
src/frontends/qt4/GuiAbout.cpp
src/frontends/qt4/GuiAbout.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiApplication.h
src/frontends/qt4/GuiBibitem.cpp
src/frontends/qt4/GuiBibitem.h
src/frontends/qt4/GuiBibtex.cpp
src/frontends/qt4/GuiBibtex.h
src/frontends/qt4/GuiBox.cpp
src/frontends/qt4/GuiBox.h
src/frontends/qt4/GuiBranch.cpp
src/frontends/qt4/GuiBranch.h
src/frontends/qt4/GuiBranches.h
src/frontends/qt4/GuiChanges.cpp
src/frontends/qt4/GuiChanges.h
src/frontends/qt4/GuiCharacter.cpp
src/frontends/qt4/GuiCharacter.h
src/frontends/qt4/GuiCitation.h
src/frontends/qt4/GuiCitationDialog.h
src/frontends/qt4/GuiClipboard.h
src/frontends/qt4/GuiCommandBuffer.h
src/frontends/qt4/GuiCommandEdit.h
src/frontends/qt4/GuiDelimiterDialog.cpp
src/frontends/qt4/GuiDelimiterDialog.h
src/frontends/qt4/GuiDialogView.h
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiDocument.h
src/frontends/qt4/GuiERT.cpp
src/frontends/qt4/GuiERT.h
src/frontends/qt4/GuiEmbeddedFiles.cpp
src/frontends/qt4/GuiErrorList.cpp
src/frontends/qt4/GuiErrorList.h
src/frontends/qt4/GuiExternal.cpp
src/frontends/qt4/GuiExternal.h
src/frontends/qt4/GuiFloat.cpp
src/frontends/qt4/GuiFloat.h
src/frontends/qt4/GuiFloatDialog.cpp [deleted file]
src/frontends/qt4/GuiFloatDialog.h [deleted file]
src/frontends/qt4/GuiFontExample.h
src/frontends/qt4/GuiFontMetrics.h
src/frontends/qt4/GuiGraphics.cpp
src/frontends/qt4/GuiGraphics.h
src/frontends/qt4/GuiGraphicsDialog.cpp [deleted file]
src/frontends/qt4/GuiGraphicsDialog.h [deleted file]
src/frontends/qt4/GuiImage.cpp
src/frontends/qt4/GuiImage.h
src/frontends/qt4/GuiImplementation.h
src/frontends/qt4/GuiInclude.cpp
src/frontends/qt4/GuiInclude.h
src/frontends/qt4/GuiIndex.cpp
src/frontends/qt4/GuiIndex.h
src/frontends/qt4/GuiKeySymbol.h
src/frontends/qt4/GuiListings.cpp
src/frontends/qt4/GuiListings.h
src/frontends/qt4/GuiLog.cpp
src/frontends/qt4/GuiLog.h
src/frontends/qt4/GuiMathMatrixDialog.cpp
src/frontends/qt4/GuiMathMatrixDialog.h
src/frontends/qt4/GuiMenubar.h
src/frontends/qt4/GuiNomencl.cpp
src/frontends/qt4/GuiNomencl.h
src/frontends/qt4/GuiNote.cpp
src/frontends/qt4/GuiNote.h
src/frontends/qt4/GuiPainter.cpp
src/frontends/qt4/GuiPainter.h
src/frontends/qt4/GuiParagraph.cpp
src/frontends/qt4/GuiParagraph.h
src/frontends/qt4/GuiPopupMenu.h
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h
src/frontends/qt4/GuiPrint.cpp
src/frontends/qt4/GuiPrint.h
src/frontends/qt4/GuiPrintDialog.cpp [deleted file]
src/frontends/qt4/GuiPrintDialog.h [deleted file]
src/frontends/qt4/GuiRef.cpp
src/frontends/qt4/GuiRef.h
src/frontends/qt4/GuiSearch.cpp
src/frontends/qt4/GuiSearch.h
src/frontends/qt4/GuiSendto.cpp
src/frontends/qt4/GuiSendto.h
src/frontends/qt4/GuiShowFile.cpp
src/frontends/qt4/GuiShowFile.h
src/frontends/qt4/GuiSpellchecker.cpp
src/frontends/qt4/GuiSpellchecker.h
src/frontends/qt4/GuiTabular.cpp
src/frontends/qt4/GuiTabular.h
src/frontends/qt4/GuiTabularCreate.cpp
src/frontends/qt4/GuiTabularCreate.h
src/frontends/qt4/GuiTexinfo.cpp
src/frontends/qt4/GuiTexinfo.h
src/frontends/qt4/GuiThesaurus.cpp
src/frontends/qt4/GuiThesaurus.h
src/frontends/qt4/GuiToc.h
src/frontends/qt4/GuiToolbar.h
src/frontends/qt4/GuiURLDialog.cpp
src/frontends/qt4/GuiURLDialog.h
src/frontends/qt4/GuiVSpace.cpp
src/frontends/qt4/GuiVSpace.h
src/frontends/qt4/GuiViewSource.h
src/frontends/qt4/GuiWorkArea.cpp
src/frontends/qt4/GuiWrap.cpp
src/frontends/qt4/GuiWrap.h
src/frontends/qt4/Makefile.am
src/frontends/qt4/UrlView.cpp [deleted file]
src/frontends/qt4/UrlView.h [deleted file]

index 77c9a8c95f233b9ea9f0c064207b2da6ededcd81..ce046c1b6e75cce73ad3b9fd5d5012acca29c315 100644 (file)
@@ -41,14 +41,11 @@ HPP += GuiDocument.h
 HPP += GuiErrorList.h
 HPP += GuiERT.h
 HPP += GuiExternal.h
-HPP += GuiFloatDialog.h
 HPP += GuiFloat.h
 HPP += GuiFontExample.h
 HPP += GuiFontLoader.h
 HPP += GuiFontMetrics.h
-HPP += GuiGraphicsDialog.h
 HPP += GuiGraphics.h
-HPP += GuiGraphicsUi.h
 HPP += GuiImage.h
 HPP += GuiImplementation.h
 HPP += GuiInclude.h
@@ -97,7 +94,6 @@ HPP += qt_helpers.h
 HPP += socket_callback.h
 HPP += TocModel.h
 HPP += TocWidget.h
-HPP += UrlView.h
 HPP += Validator.h
 
 CPP += Action.cpp
@@ -130,12 +126,10 @@ CPP += GuiErrorList.cpp
 CPP += GuiERT.cpp
 CPP += GuiExternal.cpp
 CPP += GuiFloat.cpp
-CPP += GuiFloatDialog.cpp
 CPP += GuiFontExample.cpp
 CPP += GuiFontLoader.cpp
 CPP += GuiFontMetrics.cpp
 CPP += GuiGraphics.cpp
-CPP += GuiGraphicsDialog.cpp
 CPP += GuiImage.cpp
 CPP += GuiImplementation.cpp
 CPP += GuiInclude.cpp
@@ -183,7 +177,6 @@ CPP += qt_helpers.cpp
 CPP += socket_callback.cpp
 CPP += TocModel.cpp
 CPP += TocWidget.cpp
-CPP += UrlView.cpp
 CPP += Validator.cpp
 
 UI += AboutUi.ui
index ac41733233d4990c86bf23261221d2495fc615f0..899dacd47cbce15f3f336fb942183f26c8954be3 100644 (file)
@@ -871,11 +871,9 @@ src_frontends_qt4_header_files = Split('''
     GuiErrorList.h
     GuiERT.h
     GuiExternal.h
-    GuiFloatDialog.h
     GuiFloat.h
     GuiFontExample.h
     GuiFontLoader.h
-    GuiGraphicsDialog.h
     GuiGraphics.h
     GuiGraphicsUi.h
     GuiImage.h
@@ -923,7 +921,6 @@ src_frontends_qt4_header_files = Split('''
     Qt2BC.h
     TocModel.h
     TocWidget.h
-    UrlView.h
     Validator.h
     qlkey.h
     qt_helpers.h
@@ -962,12 +959,10 @@ src_frontends_qt4_files = Split('''
     GuiERT.cpp
     GuiExternal.cpp
     GuiFloat.cpp
-    GuiFloatDialog.cpp
     GuiFontExample.cpp
     GuiFontLoader.cpp
     GuiFontMetrics.cpp
     GuiGraphics.cpp
-    GuiGraphicsDialog.cpp
     GuiImage.cpp
     GuiImplementation.cpp
     GuiInclude.cpp
@@ -1013,7 +1008,6 @@ src_frontends_qt4_files = Split('''
     Qt2BC.cpp
     TocModel.cpp
     TocWidget.cpp
-    UrlView.cpp
     Validator.cpp
     alert_pimpl.cpp
     qt_helpers.cpp
index 0fd217fd4eb2af8f249dd4d614a899634d46a8be..b3b61268d2e4b6e952f10aa9a3c2c8acc9a41e7b 100644 (file)
@@ -50,10 +50,8 @@ src/frontends/controllers/frontend_helpers.cpp
 src/frontends/qt4/BulletsModule.cpp
 src/frontends/qt4/Dialogs.cpp
 src/frontends/qt4/FileDialog.cpp
-src/frontends/qt4/GuiApplication.cpp
-src/frontends/qt4/GuiView.cpp
-src/frontends/qt4/IconPalette.cpp
 src/frontends/qt4/GuiAbout.cpp
+src/frontends/qt4/GuiApplication.cpp
 src/frontends/qt4/GuiBibitem.cpp
 src/frontends/qt4/GuiBibtex.cpp
 src/frontends/qt4/GuiBox.cpp
@@ -86,7 +84,9 @@ src/frontends/qt4/GuiTabularCreate.cpp
 src/frontends/qt4/GuiTexinfo.cpp
 src/frontends/qt4/GuiThesaurus.cpp
 src/frontends/qt4/GuiVSpace.cpp
+src/frontends/qt4/GuiView.cpp
 src/frontends/qt4/GuiWrap.cpp
+src/frontends/qt4/IconPalette.cpp
 src/frontends/qt4/Qt2BC.h
 src/frontends/qt4/UrlView.cpp
 src/frontends/qt4/Validator.cpp
index f6d8a109884a5609246b0ef54caec39e3d4920b1..7728ad45d0c746540528382dc9267ef9de1de001 100644 (file)
--- a/po/ca.po
+++ b/po/ca.po
@@ -18,7 +18,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: ca\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-06-01 18:19+0200\n"
 "Last-Translator: Joan Montané <jmontane@gmail.com>\n"
 "Language-Team: catalan <ca@li.org>\n"
@@ -14812,30 +14812,6 @@ msgstr "Reconfigura|R"
 msgid "Quit %1"
 msgstr "Surt del LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr "Icones petites"
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr "Icones normals"
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr "Icones grans"
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "versió desconeguda"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr ""
@@ -15404,10 +15380,34 @@ msgstr "Informaci
 msgid "Vertical Space Settings"
 msgstr ""
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr "Icones petites"
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr "Icones normals"
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr "Icones grans"
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "versió desconeguda"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr ""
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "espai"
index c8ffd1aceb84def3f1df64772407a317ceecd49d..f9df4aac509c57ea3f3fca242a45d73601022160 100644 (file)
--- a/po/cs.po
+++ b/po/cs.po
@@ -6,7 +6,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Lyx 1.5.0svn\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-07-09 04:42+0200\n"
 "Last-Translator: Pavel Sanda <ps@ucw.cz>\n"
 "Language-Team: Czech <LL@li.org>\n"
@@ -14759,30 +14759,6 @@ msgstr "Rekonfigurovat|R"
 msgid "Quit %1"
 msgstr "Ukonèit LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr "Malé ikony"
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr "Normální ikony"
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr "Velké ikony"
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "neznámá verze"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr "Kliknìte pro odpojení"
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Nastavení hesla bibliografie"
@@ -15347,10 +15323,34 @@ msgstr "Informace TeX-u"
 msgid "Vertical Space Settings"
 msgstr "Nastavení vertikální mezery"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr "Malé ikony"
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr "Normální ikony"
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr "Velké ikony"
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "neznámá verze"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Nastavení obtékání textu"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr "Kliknìte pro odpojení"
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "mezera"
index c7ae4f13da92d14b913e41d841ea84709d9e23ae..a30ad98e37c2b73af765f3b5b7cac4b6f6132f62 100644 (file)
--- a/po/es.po
+++ b/po/es.po
@@ -10,7 +10,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: es\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2006-11-07 18:46+0100\n"
 "Last-Translator: Eulogio Serradilla <eulogio.sr@terra.es>\n"
 "Language-Team:  <es@li.org>\n"
@@ -15264,31 +15264,6 @@ msgstr "Reconfigurar|R"
 msgid "Quit %1"
 msgstr "Salir de LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "Acción desconocida"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Configuración de entrada bibliográfica"
@@ -15853,10 +15828,35 @@ msgstr "Informaci
 msgid "Vertical Space Settings"
 msgstr "Configuración del espacio vertical"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "Acción desconocida"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Configuración del ajuste de línea"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "espacio"
index 2c252276ea80572d86ea80c08a92822ef07eba11..f2a68b48e5d596ea7539baa973f5a0a2bf0455a4 100644 (file)
--- a/po/eu.po
+++ b/po/eu.po
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: lyx_1.5.0_eu\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2006-11-08 11:47+0000\n"
 "Last-Translator: Iñaki Larrañaga Murgoitio <dooteo@euskalgnu.org>\n"
 "Language-Team: Basque <itzulpena@euskalgnu.org>\n"
@@ -15243,31 +15243,6 @@ msgstr "Birkonfiguratu|B"
 msgid "Quit %1"
 msgstr "Irten LyX-etik"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "Ekintza ezezaguna"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Bibliografia-sarreren ezarpenak"
@@ -15832,10 +15807,35 @@ msgstr "TeX informazioa"
 msgid "Vertical Space Settings"
 msgstr "Tarte bertikalaren ezarpenak"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "Ekintza ezezaguna"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Testua doitzeko ezarpenak"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "tartea"
index fd5d883d474e994afa3fea3d67075da033d67856..a9a2d9355bffba6f36949e4852d6d6ce68d50580 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -170,7 +170,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LyX 1.4.3\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-07-18 08:48+0200\n"
 "Last-Translator:  Adrien Rebollo <adrien.rebollo@gmx.fr>\n"
 "Language-Team: lyxfr \n"
@@ -15464,31 +15464,6 @@ msgstr "Reconfigurer|R"
 msgid "Quit %1"
 msgstr "Quitter %1"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "Action inconnue"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Paramètres d'Entrée de Bibliographie"
@@ -16063,10 +16038,35 @@ msgstr "Informations TeX"
 msgid "Vertical Space Settings"
 msgstr "Paramètres d'espacement vertical"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "Action inconnue"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Paramètres d'enrobage"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "espace"
index d6154913e771410ad9a00fec23583a3d8c33e0a7..615e577d4380c01385442eebde2375ce385dabcd 100644 (file)
--- a/po/gl.po
+++ b/po/gl.po
@@ -10,7 +10,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: gl-1.5.0rc2\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-07-11 18:48+0200\n"
 "Last-Translator: Ramon Flores <fa2ramon@usc.es>\n"
 "Language-Team: Galician <gl@li.org>\n"
@@ -14790,30 +14790,6 @@ msgstr "Reconfigurar|R"
 msgid "Quit %1"
 msgstr "Sair de LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr "Icones pequenos"
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr "Icones normais"
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr "Icones grandes"
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "versión descoñecida"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr "Clique para separar"
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Configuración de entrada bibliográfica"
@@ -15383,10 +15359,34 @@ msgstr "Informaci
 msgid "Vertical Space Settings"
 msgstr "Configuración do espazo vertical"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr "Icones pequenos"
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr "Icones normais"
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr "Icones grandes"
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "versión descoñecida"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Configuración do axuste de liña"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr "Clique para separar"
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "espazo"
index 4845ab9e79c1e3422755b5e04dff90147f0990a1..53bf852faffe4bc0b107a8537db0cedaa1b5fdcb 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -5,7 +5,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: hu\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-07-24 18:18+0100\n"
 "Last-Translator: Alex <alex@lyx.hu>\n"
 "Language-Team: LyX <alex@lyx.org>\n"
@@ -14773,30 +14773,6 @@ msgstr "
 msgid "Quit %1"
 msgstr "Kilépés LyX-bõl"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr "Kis-méretû ikonok"
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr "Normál-méretû ikonok"
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr "Nagy-méretû ikonok"
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "ismeretlen verzió"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr "Kattintson ide a leválasztáshoz"
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Irodalomjegyzék elem beállítások"
@@ -15366,10 +15342,34 @@ msgstr "TeX inform
 msgid "Vertical Space Settings"
 msgstr "Függõleges kitöltés beállításai"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr "Kis-méretû ikonok"
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr "Normál-méretû ikonok"
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr "Nagy-méretû ikonok"
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "ismeretlen verzió"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Körbefuttatás beállításai"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr "Kattintson ide a leválasztáshoz"
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "szóköz"
index b8d5cf99aff616b0be79ecc5062e3c21064342fa..b43a2b6ff06914950b2da3b0ddbabe8e42c67b50 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -6,7 +6,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: it\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2006-09-18 16:03+0200\n"
 "Last-Translator: Kostantino <ciclope10ATalice.it>\n"
 "Language-Team: italiano <it@li.org>\n"
@@ -15285,31 +15285,6 @@ msgstr "Riconfigura|g"
 msgid "Quit %1"
 msgstr "Chiudi LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "Azione sconosciuta"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Impostazioni voce bibliografica"
@@ -15884,10 +15859,35 @@ msgstr "Informazione di TeX"
 msgid "Vertical Space Settings"
 msgstr "Impostazioni spazio verticale"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "Azione sconosciuta"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Impostazioni testo a capo"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "spazio"
index 65b39cd2d4d72e8b955112520e81d287c3fdfa7e..534b74242978d11e4b047def22d2f55f6c58ecbd 100644 (file)
--- a/po/ko.po
+++ b/po/ko.po
@@ -6,7 +6,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LyX 1.4.4\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-05-15 16:13+0900\n"
 "Last-Translator: cghan <cghan@pusan.ac.kr>\n"
 "Language-Team: hangul <ko@li.org>\n"
@@ -14566,30 +14566,6 @@ msgstr "
 msgid "Quit %1"
 msgstr ""
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "¸ð¸£´Â ÆÇ(version)"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr ""
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Âü°í ¹®Çå ¸ñ·Ï ±âÀç »çÇ× ±¸¼º(Bibliography Entry Settings)"
@@ -15146,10 +15122,34 @@ msgstr "TeX 
 msgid "Vertical Space Settings"
 msgstr ""
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "¸ð¸£´Â ÆÇ(version)"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr ""
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "º»¹® °¨½Î±â ±¸¼º(Text Wrap Settings)"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "°ø°£(space)"
index ceaa70af898b92535e88c603f0622e7a457bfd39..efa27c2af6ada5ffd10ad04c1a19b41d0dd68bb6 100644 (file)
--- a/po/nn.po
+++ b/po/nn.po
@@ -10,7 +10,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: nn\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-06-26 21:34+0200\n"
 "Last-Translator: Ingar Pareliussen <ingarp_ved_samfundet.no>\n"
 "Language-Team: Nynorsk <nn@li.org>\n"
@@ -14772,30 +14772,6 @@ msgstr "Set opp p
 msgid "Quit %1"
 msgstr "Skru av LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr "Små ikon"
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr "Normale ikon"
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr "Store ikon"
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "ukjent versjon"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Val for litteraturnøkkel"
@@ -15362,10 +15338,34 @@ msgstr "TeX informasjon"
 msgid "Vertical Space Settings"
 msgstr "Val for loddrettmellomrom"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr "Små ikon"
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr "Normale ikon"
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr "Store ikon"
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "ukjent versjon"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Tekst brekkingval"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "mellomrom"
index f1c788e664b43d1c3ee8a0f9819ec7879d36337c..87c9a2cdb2c8d3b6fc999328928a2a929957f555 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -12,7 +12,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: pl\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2006-07-04 00:28+0200\n"
 "Last-Translator: Andrzej Tomaszewski <tomaszewski@wne.uw.edu.pl>\n"
 "Language-Team: Polski <pl@li.org>\n"
@@ -15263,31 +15263,6 @@ msgstr "Rekonfiguruj|R"
 msgid "Quit %1"
 msgstr "Zamknij LyX-a"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "Nieznane polecenie"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Ustawienia pozycji bibliografii"
@@ -15863,10 +15838,35 @@ msgstr "Konfiguracja TeX-a"
 msgid "Vertical Space Settings"
 msgstr "Ustawienia odstêpów pionowych"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "Nieznane polecenie"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Ustawienia oblewania tekstem"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "odstêp"
index f919e8a197ca9b20330214684f24ab90d2cfe6e5..a51d2844a4b85dacb907da8f466193746f9797eb 100644 (file)
--- a/po/pt.po
+++ b/po/pt.po
@@ -10,7 +10,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: pt\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-08-13 22:59+0100\n"
 "Last-Translator: Susana Barbosa <susana.barbosa@fc.up.pt>\n"
 "Language-Team:  <en@li.org>\n"
@@ -15208,30 +15208,6 @@ msgstr "Reconfigurar"
 msgid "Quit %1"
 msgstr "Sair do LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr "Ícons de tamanho pequeno"
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr "Ícons de tamanho normal"
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr "Ícons de tamanho grande"
-
-#: src/frontends/qt4/GuiView.cpp:194
-msgid "unknown version"
-msgstr "versão desconhecida"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr "Clicar para destacar"
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Configurações de Ítem Bibliográfico"
@@ -15810,10 +15786,34 @@ msgstr "Informa
 msgid "Vertical Space Settings"
 msgstr "Configurações de Espaço Vertical"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr "Ícons de tamanho pequeno"
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr "Ícons de tamanho normal"
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr "Ícons de tamanho grande"
+
+#: src/frontends/qt4/GuiView.cpp:194
+msgid "unknown version"
+msgstr "versão desconhecida"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Configurações de Repartição de Texto"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr "Clicar para destacar"
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "Espaço"
index a00f3ed9e6f91221615e589ecaeb6b45490fa3da..9bf7e606ea5a2a3820b3202c8b4325e077b69ddc 100644 (file)
--- a/po/ro.po
+++ b/po/ro.po
@@ -9,7 +9,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: ro\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2007-02-20 21:33-0500\n"
 "Last-Translator: Marius Ionescu <felijohn@gmail.com>\n"
 "Language-Team: Romanian <ro-kde@yahoogroups.com>\n"
@@ -15361,31 +15361,6 @@ msgstr "Reconfigureaz
 msgid "Quit %1"
 msgstr "Despre LyX"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "necunoscut"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr ""
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 #, fuzzy
 msgid "Bibliography Entry Settings"
@@ -16017,11 +15992,36 @@ msgstr "Informa
 msgid "Vertical Space Settings"
 msgstr "Spaþiere verticalã:|#e"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "necunoscut"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr ""
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 #, fuzzy
 msgid "Text Wrap Settings"
 msgstr "Setãri tabel"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 #, fuzzy
 msgid "space"
index 0bbe0518b7fce600e8c0db0493aa7dddde1981ad..8190699d6e555e1c54f9c8243c8c37b6dfa42439 100644 (file)
--- a/po/tr.po
+++ b/po/tr.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: LyX 1.3.6\n"
 "Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\n"
-"POT-Creation-Date: 2007-08-31 20:10+0200\n"
+"POT-Creation-Date: 2007-08-31 20:14+0200\n"
 "PO-Revision-Date: 2006-07-01 11:06+0200\n"
 "Last-Translator: Gürer Özen <gurer@pardus.org.tr>\n"
 "Language-Team: Turkish <tr@li.org>\n"
@@ -15157,31 +15157,6 @@ msgstr "Yeniden yap
 msgid "Quit %1"
 msgstr "Çýk"
 
-#: src/frontends/qt4/GuiView.cpp:161
-msgid "Small-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:167
-msgid "Normal-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:173
-msgid "Big-sized icons"
-msgstr ""
-
-#: src/frontends/qt4/GuiView.cpp:194
-#, fuzzy
-msgid "unknown version"
-msgstr "Bilinmeyen kullanýcý"
-
-#: src/frontends/qt4/GuiView.cpp:756
-msgid "LyX"
-msgstr "LyX"
-
-#: src/frontends/qt4/IconPalette.cpp:39
-msgid "Click to detach"
-msgstr ""
-
 #: src/frontends/qt4/GuiBibitem.cpp:69
 msgid "Bibliography Entry Settings"
 msgstr "Kaynakça Giriþ Ayarlarý"
@@ -15755,10 +15730,35 @@ msgstr "TeX Bilgisi"
 msgid "Vertical Space Settings"
 msgstr "Düþey Boþluk Ayarlarý"
 
+#: src/frontends/qt4/GuiView.cpp:161
+msgid "Small-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:167
+msgid "Normal-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:173
+msgid "Big-sized icons"
+msgstr ""
+
+#: src/frontends/qt4/GuiView.cpp:194
+#, fuzzy
+msgid "unknown version"
+msgstr "Bilinmeyen kullanýcý"
+
+#: src/frontends/qt4/GuiView.cpp:756
+msgid "LyX"
+msgstr "LyX"
+
 #: src/frontends/qt4/GuiWrap.cpp:83
 msgid "Text Wrap Settings"
 msgstr "Tablo Dönüþ Ayarlarý"
 
+#: src/frontends/qt4/IconPalette.cpp:39
+msgid "Click to detach"
+msgstr ""
+
 #: src/frontends/qt4/Validator.cpp:153
 msgid "space"
 msgstr "boþluk"
index 2f87b5e1b5b4cf26f3701cfffceac08eb7211533..5a29b438831750e1dc2f7f6ddba377f52e6d29d0 100644 (file)
@@ -86,7 +86,7 @@
 #include "GuiTexinfo.h"
 #include "GuiToc.h"
 #include "TocWidget.h"
-#include "UrlView.h"
+#include "GuiURLDialog.h"
 #include "GuiVSpace.h"
 #include "GuiWrap.h"
 
@@ -255,7 +255,7 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
                dialog->bc().bp(new OkCancelPolicy);
        } else if (name == "mathdelimiter") {
                dialog->setController(new ControlMath(*dialog));
-               dialog->setView(new GuiMathDelimiter(*dialog));
+               dialog->setView(new GuiDelimiter(*dialog));
                dialog->bc().bp(new IgnorantPolicy);
        } else if (name == "mathmatrix") {
                dialog->setController(new ControlMath(*dialog));
index 0ed3de0a9684b543f7722d601e6c1539d262315f..90acf73c91e68919f151e1068be1b6b97e6800b7 100644 (file)
@@ -38,10 +38,8 @@ namespace lyx {
 namespace frontend {
 
 
-typedef QController<ControlAboutlyx, GuiView<GuiAboutDialog> > AboutBase;
-
 GuiAbout::GuiAbout(Dialog & parent)
-       : AboutBase(parent, _("About LyX"))
+       : GuiView<GuiAboutDialog>(parent, _("About LyX"))
 {
 }
 
index f38985a017bae15d32c9aa5cb1a6db7c832643df..0be3eae0e526d7bead5b18baf336c01835eaf95f 100644 (file)
@@ -9,18 +9,18 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef FORMABOUT_H
-#define FORMABOUT_H
+#ifndef GUIABOUT_H
+#define GUIABOUT_H
 
 #include "GuiDialogView.h"
+#include "ControlAboutlyx.h"
 #include "ui_AboutUi.h"
+
 #include <QDialog>
 
 namespace lyx {
 namespace frontend {
 
-class ControlAboutlyx;
-
 class GuiAboutDialog : public QDialog, public Ui::AboutUi {
        Q_OBJECT
 public:
@@ -33,11 +33,16 @@ public:
 };
 
 
-class GuiAbout
-       : public QController<ControlAboutlyx, GuiView<GuiAboutDialog> >
+class GuiAbout : public GuiView<GuiAboutDialog>
 {
 public:
        GuiAbout(Dialog &);
+       /// parent controller
+       ControlAboutlyx & controller()
+       { return static_cast<ControlAboutlyx &>(this->getController()); }
+       /// parent controller
+       ControlAboutlyx const & controller() const
+       { return static_cast<ControlAboutlyx const &>(this->getController()); }
 private:
        /// not needed
        virtual void apply() {}
@@ -50,4 +55,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // FORMABOUT_H
+#endif // GUIABOUT_H
index f830c26ae2bfff116b3c8982612d24a117187a29..f316019b132bcea5dfc113ae0863282beae3828f 100644 (file)
@@ -141,8 +141,8 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
 
        using namespace lyx::graphics;
 
-       Image::newImage = boost::bind(&QLImage::newImage);
-       Image::loadableFormats = boost::bind(&QLImage::loadableFormats);
+       Image::newImage = boost::bind(&GuiImage::newImage);
+       Image::loadableFormats = boost::bind(&GuiImage::loadableFormats);
 
        // needs to be done before reading lyxrc
        lyxrc.dpi = getDPI();
index 954c48e06470ba269963f66c2e63cf464fba2341..be7b69276d7aff89f6630e9373ad1bb02c2bb0ec 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file qt4/GuiApplication.h
+ * \file GuiApplication.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -10,8 +10,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QT4_APPLICATION_H
-#define QT4_APPLICATION_H
+#ifndef GUIAPPLICATION_H
+#define GUIAPPLICATION_H
 
 #include "ColorCache.h"
 #include "GuiFontLoader.h"
@@ -57,8 +57,8 @@ public:
 
        /// Method inherited from \c Application class
        //@{
-       virtual Clipboard& clipboard();
-       virtual Selection& selection();
+       virtual Clipboard & clipboard();
+       virtual Selection & selection();
        virtual FontLoader & fontLoader() { return font_loader_; }
        virtual int const exec();
        virtual Gui & gui() { return gui_; }
@@ -127,4 +127,4 @@ extern GuiApplication * guiApp;
 } // namespace lyx
 
 
-#endif // QT4_APPLICATION_H
+#endif // GUIAPPLICATION_H
index a54542614c0bda6073531050333ff9f0dc26f514..88512371c3e94769253f48cfde6025ad81306b5e 100644 (file)
@@ -14,8 +14,7 @@
 #include "Qt2BC.h"
 #include "qt_helpers.h"
 
-#include "controllers/ControlCommand.h"
-
+#include <QCloseEvent>
 #include <QLineEdit>
 #include <QPushButton>
 
@@ -25,7 +24,7 @@ namespace frontend {
 
 /////////////////////////////////////////////////////////////////////
 //
-// QBibItemDialog
+// GuiBibItemDialog
 //
 /////////////////////////////////////////////////////////////////////
 
@@ -58,15 +57,13 @@ void GuiBibitemDialog::closeEvent(QCloseEvent *e)
 
 /////////////////////////////////////////////////////////////////////
 //
-// QBibItem
+// GuiBibItem
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlCommand, GuiView<GuiBibitemDialog> > BibItemBase;
-
 
 GuiBibitem::GuiBibitem(Dialog & parent)
-       : BibItemBase(parent, _("Bibliography Entry Settings"))
+       : GuiView<GuiBibitemDialog>(parent, _("Bibliography Entry Settings"))
 {
 }
 
index 9c7bac917909305dfad9b157edf32fd25e8e837a..7f6859f4e9bd0eb600a9386180f072e9b05af99d 100644 (file)
@@ -9,15 +9,14 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QBIBITEM_CONTROLLER_H
-#define QBIBITEM_CONTROLLER_H
+#ifndef GUIBIBITEM_H
+#define GUIBIBITEM_H
 
 #include "GuiDialogView.h"
-
+#include "ControlCommand.h"
 #include "ui_BibitemUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 
 namespace lyx {
@@ -39,19 +38,21 @@ private:
 };
 
 
-class ControlCommand;
-
-class GuiBibitem
-       : public QController<ControlCommand, GuiView<GuiBibitemDialog> >
+class GuiBibitem : public GuiView<GuiBibitemDialog>
 {
 public:
-       friend class GuiBibitemDialog;
-
+       ///
        GuiBibitem(Dialog &);
-
+       /// parent controller
+       ControlCommand & controller()
+       { return static_cast<ControlCommand &>(this->getController()); }
+       /// parent controller
+       ControlCommand const & controller() const
+       { return static_cast<ControlCommand const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
+       friend class GuiBibitemDialog;
        /// Apply changes
        virtual void apply();
        /// update
@@ -63,4 +64,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QBIBITEM_H
+#endif // GUIBIBITEM_H
index f1ad85b11f3aef87111aa0ba2fad9dbe736456eb..e7546af5da0498451f7aab49ab86fb2b80c5cee5 100644 (file)
@@ -24,8 +24,6 @@
 #include "controllers/ControlBibtex.h"
 #include "controllers/ButtonPolicy.h"
 
-#include "controllers/ControlBibtex.h"
-
 #include "support/filetools.h" // changeExtension
 #include "support/lstrings.h"
 
 #include <QCloseEvent>
 #include <QLineEdit>
 
-using lyx::support::changeExtension;
-using lyx::support::split;
-using lyx::support::trim;
-
-using std::vector;
-using std::string;
-
 #include "debug.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"
 
+using std::vector;
+using std::string;
+
 
 namespace lyx {
 namespace frontend {
 
+using support::changeExtension;
+using support::split;
+using support::trim;
+
 
 /////////////////////////////////////////////////////////////////////
 //
@@ -253,10 +251,8 @@ void GuiBibtexDialog::closeEvent(QCloseEvent *e)
 /////////////////////////////////////////////////////////////////////
 
 
-typedef QController<ControlBibtex, GuiView<GuiBibtexDialog> > BibtexBase;
-
 GuiBibtex::GuiBibtex(Dialog & parent)
-       : BibtexBase(parent, _("BibTeX Bibliography"))
+       : GuiView<GuiBibtexDialog>(parent, _("BibTeX Bibliography"))
 {
 }
 
index 027d5396347f31aab14562821e748db35fdf8a62..8033c51db3e869a19497902e21195460b6b79887 100644 (file)
@@ -9,17 +9,15 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QBIBTEX_H
-#define QBIBTEX_H
+#ifndef GUIBIBTEX_H
+#define GUIBIBTEX_H
 
 #include "GuiDialogView.h"
-
+#include "ButtonController.h"
+#include "ControlBibtex.h"
 #include "ui_BibtexUi.h"
 #include "ui_BibtexAddUi.h"
 
-#include "ButtonController.h"
-
-#include <QCloseEvent>
 #include <QDialog>
 
 namespace lyx {
@@ -68,15 +66,18 @@ private:
 };
 
 
-class ControlBibtex;
-
-class GuiBibtex
-       : public QController<ControlBibtex, GuiView<GuiBibtexDialog> >
+class GuiBibtex : public GuiView<GuiBibtexDialog>
 {
 public:
        friend class GuiBibtexDialog;
 
        GuiBibtex(Dialog &);
+       /// parent controller
+       ControlBibtex & controller()
+       { return static_cast<ControlBibtex &>(this->getController()); }
+       /// parent controller
+       ControlBibtex const & controller() const
+       { return static_cast<ControlBibtex const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
@@ -91,4 +92,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QBIBTEX_H
+#endif // GUIBIBTEX_H
index 751c4683a7d6d8daa1cafce3c7239e6a10911378..f6ed74df617c56ff48ca0e8cb8f956d4d9124085 100644 (file)
@@ -142,10 +142,9 @@ void GuiBoxDialog::restoreClicked()
 //
 //////////////////////////////////////////////////////////////////
 
-typedef QController<ControlBox, GuiView<GuiBoxDialog> > box_base_class;
 
 GuiBox::GuiBox(Dialog & parent)
-       : box_base_class(parent, _("Box Settings"))
+       : GuiView<GuiBoxDialog>(parent, _("Box Settings"))
 {}
 
 
index 2763a591c64a8b555aac0cc4a7f9b943e3cd2255..6d9e3dfc499fa70cf98d825db501a935d85c4be4 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QBOX_H
-#define QBOX_H
+#ifndef GUIBOX_H
+#define GUIBOX_H
 
 #include "GuiDialogView.h"
-
+#include "ControlBox.h"
 #include "ui_BoxUi.h"
 
-#include <QCloseEvent>
 #include <QDialog>
 
 #include <vector>
@@ -26,7 +25,6 @@
 namespace lyx {
 namespace frontend {
 
-class ControlBox;
 class GuiBox;
 
 class GuiBoxDialog : public QDialog, public Ui::BoxUi {
@@ -45,20 +43,24 @@ private:
 };
 
 
-///
-class GuiBox
-       : public QController<ControlBox, GuiView<GuiBoxDialog> >
+class GuiBox : public GuiView<GuiBoxDialog>
 {
 public:
-       ///
-       friend class GuiBoxDialog;
        ///
        GuiBox(Dialog &);
+       /// parent controller
+       ControlBox & controller()
+       { return static_cast<ControlBox &>(this->getController()); }
+       /// parent controller
+       ControlBox const & controller() const
+       { return static_cast<ControlBox const &>(this->getController()); }
        /// add and remove special lengths
        void setSpecial(bool ibox);
        /// only show valid inner box items
        void setInnerType(bool frameless, int i);
 private:
+       ///
+       friend class GuiBoxDialog;
        /// Apply changes
        virtual void apply();
        /// update
@@ -78,4 +80,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QBOX_H
+#endif // GUIBOX_H
index f9d33309d4cccb4d7ce3337bdc8d7874a718eb56..f292dc73115f709c17e518539199254a4a7ca69e 100644 (file)
@@ -16,8 +16,6 @@
 
 #include "BranchList.h"
 
-#include "controllers/ControlBranch.h"
-
 #include "insets/InsetBranch.h"
 
 #include <QPushButton>
@@ -64,11 +62,9 @@ void GuiBranchDialog::change_adaptor()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlBranch, GuiView<GuiBranchDialog> > branch_base_class;
-
 
 GuiBranch::GuiBranch(Dialog & parent)
-       : branch_base_class(parent, _("Branch Settings"))
+       : GuiView<GuiBranchDialog>(parent, _("Branch Settings"))
 {}
 
 
index 836da8217e03024131858e6cda45accc874c8603..d3c3b66e8dff9993628c8cbdde1f0e836cbb3573 100644 (file)
@@ -9,13 +9,13 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QBRANCH_H
-#define QBRANCH_H
+#ifndef GUIBRANCH_H
+#define GUIBRANCH_H
 
 #include "GuiDialogView.h"
+#include "ControlBranch.h"
 #include "ui_BranchUi.h"
 
-#include <QCloseEvent>
 #include <QDialog>
 
 namespace lyx {
@@ -35,18 +35,23 @@ private:
        GuiBranch * form_;
 };
 
-class ControlBranch;
 
 /** This class provides a QT implementation of the Branch Dialog.
  */
-class GuiBranch : public QController<ControlBranch, GuiView<GuiBranchDialog> >
+class GuiBranch : public GuiView<GuiBranchDialog> 
 {
 public:
-       friend class GuiBranchDialog;
-
        /// Constructor
        GuiBranch(Dialog &);
+       /// parent controller
+       ControlBranch & controller()
+       { return static_cast<ControlBranch &>(this->getController()); }
+       /// parent controller
+       ControlBranch const & controller() const
+       { return static_cast<ControlBranch const &>(this->getController()); }
 private:
+       friend class GuiBranchDialog;
+
        ///  Apply changes
        virtual void apply();
        /// Build the dialog
@@ -58,4 +63,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QBRANCH_H
+#endif // GUIBRANCH_H
index bd1ed0b0ec8b919b33106fd9f1538a2b5bfdd9a0..e77dc25a3fce76c09dfe81429d0c10ae32c9a9fe 100644 (file)
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QBRANCHES_H
-#define QBRANCHES_H
+#ifndef GUIBRANCHES_H
+#define GUIBRANCHES_H
 
 #include "ui_BranchesUi.h"
 #include "GuiDocument.h"
@@ -30,7 +30,6 @@ class BufferParams;
 
 namespace frontend {
 
-
 class GuiBranches: public QWidget, public Ui::BranchesUi
 {
        Q_OBJECT
@@ -56,13 +55,11 @@ protected Q_SLOTS:
        void on_colorPB_clicked();
 
 private:
-
        /// Contains all legal branches for this doc
        BranchList branchlist_;
-
 };
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // DOCUMENTDIALOG_H
+#endif // GUIBRANCHES
index 05d1cf41e72c36fa29a48ba17cc1c11c3ef95395..7f4bb8b7b81ae2c47ae9a12551288f44e50cae0b 100644 (file)
@@ -17,9 +17,6 @@
 
 #include "support/lstrings.h"
 
-#include "controllers/ControlChanges.h"
-
-#include <QPushButton>
 #include <QCloseEvent>
 #include <QTextBrowser>
 
@@ -78,11 +75,9 @@ void GuiChangesDialog::closeEvent(QCloseEvent *e)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlChanges, GuiView<GuiChangesDialog> > ChangesBase;
-
 
 GuiChanges::GuiChanges(Dialog & parent)
-       : ChangesBase(parent, _("Merge Changes"))
+       : GuiView<GuiChangesDialog>(parent, _("Merge Changes"))
 {
 }
 
index 9df8b9f715526e03851f423d2a031cf15b7b03bc..0bb2937da678c4bf9eab699479842b588f788883 100644 (file)
@@ -9,12 +9,13 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QCHANGES_H
-#define QCHANGES_H
+#ifndef GUICHANGES_H
+#define GUICHANGES_H
 
 #include "GuiDialogView.h"
+#include "ControlChanges.h"
 #include "ui_ChangesUi.h"
-#include <QCloseEvent>
+
 #include <QDialog>
 
 namespace lyx {
@@ -41,15 +42,18 @@ private:
        GuiChanges * form_;
 };
 
-class ControlChanges;
 
-class GuiChanges
-       : public QController<ControlChanges, GuiView<GuiChangesDialog> >
+class GuiChanges : public GuiView<GuiChangesDialog>
 {
 public:
-       friend class GuiChangesDialog;
-
+       ///
        GuiChanges(Dialog &);
+       /// parent controller
+       ControlChanges & controller()
+       { return static_cast<ControlChanges &>(this->getController()); }
+       /// parent controller
+       ControlChanges const & controller() const
+       { return static_cast<ControlChanges const &>(this->getController()); }
 
        void accept();
 
@@ -58,6 +62,7 @@ public:
        void next();
 
 private:
+       friend class GuiChangesDialog;
        /// Apply changes
        virtual void apply() {};
        /// update
@@ -69,4 +74,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QCHANGES_H
+#endif // GUICHANGES_H
index d9ee64514b8c8f070a2c99fc9322b7857c3e2fb8..f10b40619e3d2197a1dce8739b5318c560225454 100644 (file)
 #include <config.h>
 
 #include "GuiCharacter.h"
-#include "ControlCharacter.h"
 #include "Qt2BC.h"
 #include "qt_helpers.h"
-
+#include "frontend_helpers.h"
 #include "Color.h"
 
-
 #include <QCloseEvent>
 
 using std::vector;
@@ -86,10 +84,9 @@ void GuiCharacterDialog::closeEvent(QCloseEvent * e)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlCharacter, GuiView<GuiCharacterDialog> > CharacterBase;
 
 GuiCharacter::GuiCharacter(Dialog & parent)
-       : CharacterBase(parent, _("Text Style"))
+       : GuiView<GuiCharacterDialog>(parent, _("Text Style"))
 {
 }
 
index 7cce5132f9f345c2bf4c148995c86a56d05f7522..09e9507db04b07a58552deb016500d41cdd5f98c 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QCHARACTER_H_CONTROLLER
-#define QCHARACTER_H_CONTROLLER
+#ifndef GUICHARACTER_H
+#define GUICHARACTER_H
 
 #include "GuiDialogView.h"
+#include "ControlCharacter.h"
 #include "ui_CharacterUi.h"
-#include <QDialog>
 
-#include "controllers/frontend_helpers.h"
+#include <QDialog>
 
 #include <vector>
 
 namespace lyx {
-
-class Font;
-
 namespace frontend {
 
 class GuiCharacter;
@@ -42,15 +39,18 @@ protected Q_SLOTS:
 };
 
 
-class ControlCharacter;
-
-class GuiCharacter
-       : public QController<ControlCharacter, GuiView<GuiCharacterDialog> >
+class GuiCharacter : public GuiView<GuiCharacterDialog>
 {
 public:
        friend class GuiCharacterDialog;
 
        GuiCharacter(Dialog &);
+       /// parent controller
+       ControlCharacter & controller()
+       { return static_cast<ControlCharacter &>(this->getController()); }
+       /// parent controller
+       ControlCharacter const & controller() const
+       { return static_cast<ControlCharacter const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -71,4 +71,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QCHARACTER_H
+#endif // GUICHARACTER_H
index f99b009b670f3c4c97d6c62bbfa8d4add44b7b80..7059106ef87427e32b391f8aab4a366b08ffa420 100644 (file)
@@ -7,15 +7,15 @@
  * \author Angus Leeming
  * \author Kalle Dalheimer
  * \author Abdelrazak Younes
- * \author Richard Heck (adapted to QSelectionManager)
+ * \author Richard Heck
  *
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QCITATION_H
-#define QCITATION_H
+#ifndef GUICITATION_H
+#define GUICITATION_H
 
-#include "frontends/controllers/ControlCitation.h"
+#include "ControlCitation.h"
 #include "support/docstring.h"
 
 #include <QStringList>
@@ -82,13 +82,10 @@ public:
 private:
        /// available keys.
        QStringListModel available_model_;
-
        /// selected keys.
        QStringListModel selected_model_;
-
        /// All keys.
        QStringList all_keys_;
-       
        /// Cited keys.
        QStringList cited_keys_;
 };
@@ -97,4 +94,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QCITATION_H
+#endif // GUICITATION_H
index cec477270de386b88eab3428b413e91a0119cd56..d4e5050629eece5df62d169265aea74c26f004a1 100644 (file)
@@ -11,8 +11,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QCITATIONDIALOG_H
-#define QCITATIONDIALOG_H
+#ifndef GUICITATIONDIALOG_H
+#define GUICITATIONDIALOG_H
 
 #include "Dialog.h"
 #include "GuiSelectionManager.h"
@@ -105,4 +105,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QCITATIOINDIALOG_H
+#endif // GUICITATIOINDIALOG_H
index f167cc1f971e2a1ebd1f895079b7626ec7a02944..12a8864a413d580f771ca534c286e1a1cdd1b96c 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- * \file qt4/GuiClipboard.h
+ * \file GuiClipboard.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -11,8 +11,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef CLIPBOARD_H
-#define CLIPBOARD_H
+#ifndef GUICLIPBOARD_H
+#define GUICLIPBOARD_H
 
 #include "frontends/Clipboard.h"
 
@@ -22,7 +22,7 @@ namespace frontend {
 /**
  * The Qt4 version of the Clipboard.
  */
-class GuiClipboard: public Clipboard
+class GuiClipboard : public Clipboard
 {
 public:
        virtual ~GuiClipboard() {}
@@ -42,4 +42,4 @@ public:
 } // namespace frontend
 } // namespace lyx
 
-#endif // CLIPBOARD_H
+#endif // GUICLIPBOARD_H
index 370c937b9f80e3fd3cdb9be2e7450d3a5518460e..3ee0cfab31087c2495f6e68ed38041b688c80836 100644 (file)
@@ -9,10 +9,10 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QCOMMANDBUFFER_H
-#define QCOMMANDBUFFER_H
+#ifndef GUICOMMANDBUFFER_H
+#define GUICOMMANDBUFFER_H
 
-#include "controllers/ControlCommandBuffer.h"
+#include "ControlCommandBuffer.h"
 
 #include <QWidget>
 
@@ -47,10 +47,8 @@ public Q_SLOTS:
 private:
        /// owning view
        GuiViewBase * view_;
-
        /// controller
        ControlCommandBuffer controller_;
-
        /// command widget
        GuiCommandEdit * edit_;
 };
@@ -58,4 +56,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QCOMMANDBUFFER_H
+#endif // GUICOMMANDBUFFER_H
index 76756f4b937606985e884f13c6242e2bd1af8c8f..f3587744a0b8b67ec09a5c67768c49f203de1a03 100644 (file)
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QCOMMANDEDIT_H
-#define QCOMMANDEDIT_H
+#ifndef GUICOMMANDEDIT_H
+#define GUICOMMANDEDIT_H
 
 #include <QLineEdit>
 #include <QKeyEvent>
@@ -21,8 +21,10 @@ namespace frontend {
 
 class GuiCommandEdit : public QLineEdit {
        Q_OBJECT
+
 public:
        GuiCommandEdit(QWidget * parent);
+
 Q_SIGNALS:
        /// cancel
        void escapePressed();
@@ -45,4 +47,4 @@ protected:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QCOMMANDEDIT_H
+#endif // GUICOMMANDEDIT_H
index 3162f00c69a03f310bea324d73b63970e6e40293..a9690aafe871c2fd95144ea5d97e797bf4adc0c6 100644 (file)
 #include "GuiApplication.h"
 #include "GuiView.h"
 
-
 #include "qt_helpers.h"
-#include "controllers/ControlMath.h"
-
 #include "gettext.h"
 
 #include <QPixmap>
@@ -63,14 +60,12 @@ QString fix_name(QString const & str, bool big)
 } // namespace anon
 
 
-typedef QController<ControlMath, GuiView<GuiDelimiterDialog> > delimiter_base;
-
-GuiMathDelimiter::GuiMathDelimiter(Dialog & parent)
-       : delimiter_base(parent, _("Math Delimiter"))
+GuiDelimiter::GuiDelimiter(Dialog & parent)
+       : GuiView<GuiDelimiterDialog>(parent, _("Math Delimiter"))
 {}
 
 
-void GuiMathDelimiter::build_dialog()
+void GuiDelimiter::build_dialog()
 {
        dialog_.reset(new GuiDelimiterDialog(this,
                static_cast<GuiViewBase *>(controller().view())));
@@ -102,7 +97,7 @@ char_type GuiDelimiterDialog::doMatch(char_type const symbol) const
 }
 
 
-GuiDelimiterDialog::GuiDelimiterDialog(GuiMathDelimiter * form, QWidget * parent)
+GuiDelimiterDialog::GuiDelimiterDialog(GuiDelimiter * form, QWidget * parent)
        : QDialog(parent), form_(form)
 {
        setupUi(this);
index 7ad132ccda4ac1bfab7651bb791b301f0141c106..301eabc7b92173f8f55a21be9627802d3582eaac 100644 (file)
@@ -9,27 +9,26 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QDELIMITERDIALOG_H
-#define QDELIMITERDIALOG_H
+#ifndef GUIDELIMITERDIALOG_H
+#define GUIDELIMITERDIALOG_H
 
 #include "GuiDialogView.h"
-
+#include "ControlMath.h"
 #include "ui_DelimiterUi.h"
 
-#include <string>
-
 class QListWidgetItem;
 
 namespace lyx {
 namespace frontend {
 
 class ControlMath;
-class GuiMathDelimiter;
+class GuiDelimiter;
 
-class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi {
+class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi
+{
        Q_OBJECT
 public:
-       GuiDelimiterDialog(GuiMathDelimiter * form, QWidget * parent);
+       GuiDelimiterDialog(GuiDelimiter * form, QWidget * parent);
 public Q_SLOTS:
        void on_leftLW_itemActivated(QListWidgetItem *);
        void on_rightLW_itemActivated(QListWidgetItem *);
@@ -44,18 +43,24 @@ private:
        ///
        void updateTeXCode(int size);
        /// owning form
-       GuiMathDelimiter * form_;
+       GuiDelimiter * form_;
        /// TeX code that will be inserted.
        QString tex_code_;
 };
 
 
-class GuiMathDelimiter : public QController<ControlMath, GuiView<GuiDelimiterDialog> > {
+class GuiDelimiter : public GuiView<GuiDelimiterDialog>
+{
 public:
        friend class GuiDelimiterDialog;
-
-       GuiMathDelimiter(Dialog &);
-
+       ///
+       GuiDelimiter(Dialog &);
+       /// parent controller
+       ControlMath & controller()
+       { return static_cast<ControlMath &>(this->getController()); }
+       /// parent controller
+       ControlMath const & controller() const
+       { return static_cast<ControlMath const &>(this->getController()); }
 private:
        virtual void apply() {}
        virtual void update_contents() {}
@@ -67,4 +72,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QDELIMITERDIALOG_H
+#endif // GUIDELIMITERDIALOG_H
index 861025b307d405307026feea388e8680e132ca34..d0eba362bc573f01351a74ab012658c6c7a06e30 100644 (file)
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QDIALOGVIEW_H
-#define QDIALOGVIEW_H
+#ifndef GUIDIALOGVIEW_H
+#define GUIDIALOGVIEW_H
 
 #include "Dialog.h"
 
@@ -121,25 +121,7 @@ protected:
        boost::scoped_ptr<GUIDialog> dialog_;
 };
 
-
-template <class Controller, class Base>
-class QController: public Base
-{
-protected:
-       ///
-       QController(Dialog & p, docstring const & t): Base(p, t)
-       {}
-public:
-       /// The parent controller
-       Controller & controller()
-       { return static_cast<Controller &>(this->getController()); }
-
-       /// The parent controller
-       Controller const & controller() const
-       { return static_cast<Controller const &>(this->getController()); }
-};
-
 } // namespace frontend
 } // namespace lyx
 
-#endif // QDIALOGVIEW_H
+#endif // GUIDIALOGVIEW_H
index 7d882df7d137728eb9dc8a64bff6ad290be7f34d..8f61c641eb9a37147c083313164c732c3084310c 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "GuiViewSource.h" // For latexHighlighter use in the preamble.
 
-#include "controllers/ControlDocument.h"
-
 #include "BufferParams.h"
 #include "Encoding.h"
 #include "gettext.h"
@@ -37,7 +35,6 @@
 #include "Spacing.h"
 
 #include "insets/InsetListingsParams.h"
-#include "controllers/ControlDocument.h"
 
 #include "support/lstrings.h"
 
@@ -1399,16 +1396,13 @@ void GuiDocumentDialog::updateParams(BufferParams const & params)
 
 /////////////////////////////////////////////////////////////////////
 //
-// Document
+// GuiDocument
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlDocument, GuiView<GuiDocumentDialog> >
-       DocumentBase;
-
 
 GuiDocument::GuiDocument(Dialog & parent)
-       : DocumentBase(parent, _("Document Settings"))
+       : GuiView<GuiDocumentDialog>(parent, _("Document Settings"))
 {}
 
 
index b683521479fb257bac7c75b6e3355d51231fea10..7590cdaa931960c0223c9f83ceab7ab4256cf207 100644 (file)
@@ -9,11 +9,12 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QDOCUMENT_H
-#define QDOCUMENT_H
+#ifndef GUIDOCUMENT_H
+#define GUIDOCUMENT_H
 
 #include "GuiDialogView.h"
 #include "BulletsModule.h"
+#include "ControlDocument.h"
 
 #include "ui_DocumentUi.h"
 #include "ui_FontUi.h"
 #include "ui_BiblioUi.h"
 #include "ui_NumberingUi.h"
 #include "ui_MarginsUi.h"
-
-// For the Preamble module
 #include "ui_PreambleUi.h"
 
-#include <QCloseEvent>
 #include <QDialog>
 
 #include <vector>
@@ -38,7 +36,7 @@
 class FloatPlacement;
 
 template<class UI>
-class UiWidget: public QWidget, public UI
+class UiWidget : public QWidget, public UI
 {
 public:
        UiWidget(QWidget * parent = 0) : QWidget(parent)
@@ -119,10 +117,7 @@ private:
 };
 
 
-class ControlDocument;
-
-class GuiDocument
-       : public QController<ControlDocument, GuiView<GuiDocumentDialog> >
+class GuiDocument : public GuiView<GuiDocumentDialog>
 {
 public:
 
@@ -131,7 +126,12 @@ public:
        GuiDocument(Dialog &);
 
        void showPreamble();
-
+       /// parent controller
+       ControlDocument & controller()
+       { return static_cast<ControlDocument &>(this->getController()); }
+       /// parent controller
+       ControlDocument const & controller() const
+       { return static_cast<ControlDocument const &>(this->getController()); }
 private:
        /// Apply changes
        void apply();
@@ -175,8 +175,7 @@ private:
 };
 
 
-
 } // namespace frontend
 } // namespace lyx
 
-#endif // QDOCUMENT_H
+#endif // GUIDOCUMENT_H
index 66f1fa6ebead0083fbb6c07625819e9dd49c5e65..f9b994129bb7bf4bd67105930e3e41cb7dd1260f 100644 (file)
@@ -13,8 +13,6 @@
 #include "GuiERT.h"
 #include "Qt2BC.h"
 
-#include "controllers/ControlERT.h"
-
 #include <QRadioButton>
 #include <QPushButton>
 #include <QCloseEvent>
@@ -60,11 +58,8 @@ void GuiERTDialog::change_adaptor()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlERT, GuiView<GuiERTDialog> > ERTBase;
-
-
 GuiERT::GuiERT(Dialog & parent)
-       : ERTBase(parent, _("TeX Code Settings"))
+       : GuiView<GuiERTDialog>(parent, _("TeX Code Settings"))
 {
 }
 
index a7c2628af70c52a83323a9ced6ac2fcd997a778c..4bc641eb1d697f3fbcd58532d2c2b834e67b407c 100644 (file)
@@ -9,10 +9,11 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef GuiERT_H
-#define GuiERT_H
+#ifndef GUIERT_H
+#define GUIERT_H
 
 #include "GuiDialogView.h"
+#include "ControlERT.h"
 #include "ui_ERTUi.h"
 
 #include <QCloseEvent>
@@ -23,7 +24,8 @@ namespace frontend {
 
 class GuiERT;
 
-class GuiERTDialog : public QDialog, public Ui::ERTUi {
+class GuiERTDialog : public QDialog, public Ui::ERTUi
+{
        Q_OBJECT
 public:
        GuiERTDialog(GuiERT * form);
@@ -36,16 +38,19 @@ private:
 };
 
 
-
-class ControlERT;
-
-class GuiERT : public QController<ControlERT, GuiView<GuiERTDialog> >
+class GuiERT : public GuiView<GuiERTDialog>
 {
 public:
-       friend class GuiERTDialog;
-
+       /// constructor
        GuiERT(Dialog &);
+       /// parent controller
+       ControlERT & controller()
+       { return static_cast<ControlERT &>(this->getController()); }
+       /// parent controller
+       ControlERT const & controller() const
+       { return static_cast<ControlERT const &>(this->getController()); }
 private:
+       friend class GuiERTDialog;
        /// Apply changes
        virtual void apply();
        /// update
@@ -57,4 +62,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // GuiERT_H
+#endif // GUIERT_H
index e9239a9859573eeac99180c960b72aba06bdbea1..0ca5015597be8967536e267fb0ebddc555706240 100644 (file)
 
 #include <config.h>
 
-
 #include "GuiEmbeddedFiles.h"
 #include "Qt2BC.h"
 
 #include "debug.h"
 
-using std::string;
-
 namespace lyx {
 namespace frontend {
 
@@ -27,10 +24,11 @@ namespace frontend {
 // GuiEmbeddedFilesDialog
 //
 /////////////////////////////////////////////////////////////////////
-#define INVALID_COLOR "gray"
-#define AUTO_COLOR "green"
-#define EMBEDDED_COLOR "black"
-#define EXTERNAL_COLOR "blue"
+
+static QString const INVALID_COLOR = "gray";
+static QString const AUTO_COLOR = "green";
+static QString const EMBEDDED_COLOR = "black";
+static QString const EXTERNAL_COLOR = "blue";
 
 GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog(GuiEmbeddedFiles * form)
        : form_(form)
@@ -127,7 +125,7 @@ void GuiEmbeddedFilesDialog::on_actionPB_clicked()
        // FIXME.
        
        // ACTION
-       string action = fromqstr(actionCB->currentText());
+       QString action = actionCB->currentText();
        if (action == "Add file") {
        } else if (action == "Extract file") {
        } else if (action == "Extract all") {
index b0f0f9ef6e3729f21ab26271c9c14d06bf9a3d0b..c05b26c7871a3eda67d470690d86dca11145509f 100644 (file)
@@ -14,8 +14,6 @@
 #include "Qt2BC.h"
 #include "qt_helpers.h"
 
-#include "controllers/ControlErrorList.h"
-
 #include <QListWidget>
 #include <QTextBrowser>
 #include <QPushButton>
@@ -71,11 +69,8 @@ void GuiErrorListDialog::showEvent(QShowEvent *e)
 /////////////////////////////////////////////////////////////////////
 
 
-typedef QController<ControlErrorList, GuiView<GuiErrorListDialog> >
-       ErrorListBase;
-
 GuiErrorList::GuiErrorList(Dialog & parent)
-       : ErrorListBase(parent, docstring())
+       :  GuiView<GuiErrorListDialog>(parent, docstring())
 {}
 
 
index ec3ef9496d220b150f3c16d1280730ad717770d3..b2365541705f10f74430d000083f1ef320dc6e59 100644 (file)
@@ -9,17 +9,16 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QERRORLIST_H
-#define QERRORLIST_H
+#ifndef GUIERRORLIST_H
+#define GUIERRORLIST_H
 
 #include "GuiDialogView.h"
+#include "ControlErrorList.h"
 #include "ui_ErrorListUi.h"
 
 #include <QDialog>
 
 class QListWidgetItem;
-class QCloseEvent;
-class QShowEvent;
 
 namespace lyx {
 namespace frontend {
@@ -41,15 +40,18 @@ private:
 };
 
 
-class ControlErrorList;
-
-class GuiErrorList :
-       public QController<ControlErrorList, GuiView<GuiErrorListDialog> >
+class GuiErrorList : public GuiView<GuiErrorListDialog>
 {
 public:
        friend class GuiErrorListDialog;
 
        GuiErrorList(Dialog &);
+       /// parent controller
+       ControlErrorList & controller()
+       { return static_cast<ControlErrorList &>(this->getController()); }
+       /// parent controller
+       ControlErrorList const & controller() const
+       { return static_cast<ControlErrorList const &>(this->getController()); }
 private:
        /// select an entry
        void select(QListWidgetItem *);
@@ -64,4 +66,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QERRORLIST_H
+#endif // GUIERRORLIST_H
index 19cb852a965e053e55e4de1a35aee1c1ca9c6ad3..0a2b285c0e5c17bcf52dd1944c46bb472d42117e 100644 (file)
@@ -16,7 +16,6 @@
 #include "lengthcommon.h"
 #include "LyXRC.h"
 
-#include "controllers/ControlExternal.h"
 #include "controllers/ButtonController.h"
 
 #include "insets/ExternalTemplate.h"
@@ -489,11 +488,8 @@ void getExtra(external::ExtraData & data,
 } // namespace anon
 
 
-typedef QController<ControlExternal, GuiView<GuiExternalDialog> >
-       ExternalBase;
-
 GuiExternal::GuiExternal(Dialog & parent)
-       : ExternalBase(parent, _("External Material"))
+       : GuiView<GuiExternalDialog>(parent, _("External Material"))
 {}
 
 
index dcf2c3d4a89d2765b8890c3c7fabe63e1ffeb075..ffc1efe7ef53702458d51aa82a159b241add9f37 100644 (file)
@@ -9,11 +9,11 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QEXTERNAL_H
-#define QEXTERNAL_H
+#ifndef GUIEXTERNAL_H
+#define GUIEXTERNAL_H
 
 #include "GuiDialogView.h"
-
+#include "ControlExternal.h"
 #include "ui_ExternalUi.h"
 
 #include <QCloseEvent>
@@ -26,7 +26,8 @@ namespace frontend {
 
 class GuiExternal;
 
-class GuiExternalDialog : public QDialog, public Ui::ExternalUi {
+class GuiExternalDialog : public QDialog, public Ui::ExternalUi
+{
        Q_OBJECT
 public:
        GuiExternalDialog(GuiExternal * form);
@@ -52,18 +53,20 @@ private:
 };
 
 
-class ControlExternal;
-
-class GuiExternal
-       : public QController<ControlExternal, GuiView<GuiExternalDialog> >
+class GuiExternal : public GuiView<GuiExternalDialog>
 {
 public:
        friend class GuiExternalDialog;
 
        GuiExternal(Dialog &);
-
+       /// parent controller
+       ControlExternal & controller()
+       { return static_cast<ControlExternal &>(this->getController()); }
+       /// parent controller
+       ControlExternal const & controller() const
+       { return static_cast<ControlExternal const &>(this->getController()); }
+       ///
        typedef std::map<std::string, QString> MapType;
-
 private:
        /// Apply changes
        virtual void apply();
@@ -83,4 +86,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QEXTERNAL_H
+#endif // GUIEXTERNAL_H
index a29df99728b17808fd3383548ff4084252684ff5..3312ca9872fcd38e8496e893dd2d047697103251 100644 (file)
 #include <config.h>
 
 #include "GuiFloat.h"
-#include "GuiFloatDialog.h"
 #include "Qt2BC.h"
 #include "FloatPlacement.h"
 
-#include "controllers/ControlFloat.h"
-
 #include "insets/InsetFloat.h"
 
+#include <QCloseEvent>
 #include <QPushButton>
 
 namespace lyx {
 namespace frontend {
 
-typedef QController<ControlFloat, GuiView<GuiFloatDialog> > float_base_class;
+GuiFloatDialog::GuiFloatDialog(GuiFloat * form)
+       : form_(form)
+{
+       setupUi(this);
+       connect(restorePB, SIGNAL(clicked()),
+               form, SLOT(slotRestore()));
+       connect(okPB, SIGNAL(clicked()),
+               form, SLOT(slotOK()));
+       connect(applyPB, SIGNAL(clicked()),
+               form, SLOT(slotApply()));
+       connect(closePB, SIGNAL(clicked()),
+               form, SLOT(slotClose()));
+
+       // enable span columns checkbox
+       floatFP->useWide();
+
+       // enable sideways checkbox
+       floatFP->useSideways();
+
+       connect(floatFP, SIGNAL(changed()),
+               this, SLOT(change_adaptor()));
+}
+
+
+void GuiFloatDialog::change_adaptor()
+{
+       form_->changed();
+}
+
+
+void GuiFloatDialog::closeEvent(QCloseEvent * e)
+{
+       form_->slotWMHide();
+       e->accept();
+}
 
 
 GuiFloat::GuiFloat(Dialog & parent)
-       : float_base_class(parent, _("Float Settings"))
+       :  GuiView<GuiFloatDialog>(parent, _("Float Settings"))
 {
 }
 
@@ -61,3 +93,5 @@ void GuiFloat::apply()
 
 } // namespace frontend
 } // namespace lyx
+
+#include "GuiFloat_moc.cpp"
index 64a84ae24664a889b9a8d4a585d5a8d398eab110..565f8652e9c8930af7eb0e00e76fda58d2fd5a89 100644 (file)
@@ -9,25 +9,49 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QFLOAT_H
-#define QFLOAT_H
+#ifndef GUIFLOAT_H
+#define GUIFLOAT_H
 
 #include "GuiDialogView.h"
-#include "GuiFloatDialog.h"
+#include "ui_FloatUi.h"
+#include "ControlFloat.h"
+
+#include <QDialog>
 
 namespace lyx {
 namespace frontend {
 
+class GuiFloat;
+
+class GuiFloatDialog : public QDialog, public Ui::FloatUi {
+       Q_OBJECT
+public:
+       GuiFloatDialog(GuiFloat * form);
+
+protected Q_SLOTS:
+       virtual void change_adaptor();
+
+protected:
+       virtual void closeEvent(QCloseEvent * e);
+
+private:
+       GuiFloat * form_;
+};
 
-class ControlFloat;
 
 ///
-class GuiFloat : public QController<ControlFloat, GuiView<GuiFloatDialog> > {
+class GuiFloat : public GuiView<GuiFloatDialog> {
 public:
        ///
        friend class GuiFloatDialog;
        ///
        GuiFloat(Dialog &);
+       /// parent controller
+       ControlFloat & controller()
+       { return static_cast<ControlFloat &>(this->getController()); }
+       /// parent controller
+       ControlFloat const & controller() const
+       { return static_cast<ControlFloat const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -40,4 +64,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QFLOAT_H
+#endif // GUIFLOAT_H
diff --git a/src/frontends/qt4/GuiFloatDialog.cpp b/src/frontends/qt4/GuiFloatDialog.cpp
deleted file mode 100644 (file)
index 3a8b4f2..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- * \file GuiFloatDialog.cpp
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "GuiFloatDialog.h"
-#include "GuiFloat.h"
-
-#include <QCloseEvent>
-#include <QPushButton>
-
-#include "FloatPlacement.h"
-
-
-
-namespace lyx {
-namespace frontend {
-
-GuiFloatDialog::GuiFloatDialog(GuiFloat * form)
-       : form_(form)
-{
-       setupUi(this);
-       connect(restorePB, SIGNAL(clicked()),
-               form, SLOT(slotRestore()));
-       connect(okPB, SIGNAL(clicked()),
-               form, SLOT(slotOK()));
-       connect(applyPB, SIGNAL(clicked()),
-               form, SLOT(slotApply()));
-       connect(closePB, SIGNAL(clicked()),
-               form, SLOT(slotClose()));
-
-       // enable span columns checkbox
-       floatFP->useWide();
-
-       // enable sideways checkbox
-       floatFP->useSideways();
-
-       connect(floatFP, SIGNAL(changed()),
-               this, SLOT(change_adaptor()));
-}
-
-
-void GuiFloatDialog::change_adaptor()
-{
-       form_->changed();
-}
-
-
-void GuiFloatDialog::closeEvent(QCloseEvent * e)
-{
-       form_->slotWMHide();
-       e->accept();
-}
-
-} // namespace frontend
-} // namespace lyx
-
-#include "GuiFloatDialog_moc.cpp"
diff --git a/src/frontends/qt4/GuiFloatDialog.h b/src/frontends/qt4/GuiFloatDialog.h
deleted file mode 100644 (file)
index 1dc3c6a..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// -*- C++ -*-
-/**
- * \file GuiFloatDialog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QFLOATDIALOG_H
-#define QFLOATDIALOG_H
-
-#include "ui_FloatUi.h"
-
-#include <QCloseEvent>
-#include <QDialog>
-
-namespace lyx {
-namespace frontend {
-
-class GuiFloat;
-
-class GuiFloatDialog : public QDialog, public Ui::FloatUi {
-       Q_OBJECT
-public:
-       GuiFloatDialog(GuiFloat * form);
-
-protected Q_SLOTS:
-       virtual void change_adaptor();
-
-protected:
-       virtual void closeEvent(QCloseEvent * e);
-
-private:
-       GuiFloat * form_;
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // QFLOATDIALOG_H
index a23f4d0b492e50e7d5ac6767d9f9a2a1ad13fe39..c56a566d7df13da306d43103945b5e86ce0f44e1 100644 (file)
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QT_QFONTEXAMPLE_H
-#define QT_QFONTEXAMPLE_H
+#ifndef GUIFONTEXAMPLE_H
+#define GUIFONTEXAMPLE_H
 
 #include <QWidget>
 #include <QFont>
@@ -42,4 +42,4 @@ private:
 
 //} // namespace lyx
 
-#endif
+#endif // GUIFONTEXAMPLE_H
index 1a6fdfa408d59f88cd50587d40a82ee4c17341b2..707b5f336e3d9f7e6d12f7e8bf6834e2cf04c7c3 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- * \file FontMetrics.h
+ * \file GuiFontMetrics.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QT4_FONT_METRICS_H
-#define QT4_FONT_METRICS_H
+#ifndef GUI_FONT_METRICS_H
+#define GUI_FONT_METRICS_H
 
 #include "frontends/FontMetrics.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiFontMetrics: public FontMetrics
+class GuiFontMetrics : public FontMetrics
 {
 public:
-
        GuiFontMetrics(QFont const & font);
        GuiFontMetrics(QFont const & font, QFont const & smallcaps_font);
 
@@ -83,4 +82,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QT4_FONT_METRICS_H
+#endif // GUI_FONT_METRICS_H
index da7a7888b43ad6613557ac395db0b00604f553d2..1b804c841cce3e68771e11cf09c6a6ff8515d5b3 100644 (file)
 #include "GuiGraphics.h"
 
 #include "CheckedLineEdit.h"
+#include "debug.h"
 #include "LengthCombo.h"
-#include "GuiGraphicsDialog.h"
-#include "Qt2BC.h"
-#include "qt_helpers.h"
-
 #include "lengthcommon.h"
 #include "LyXRC.h"
+#include "Qt2BC.h"
+#include "qt_helpers.h"
+#include "Validator.h"
 
-#include "controllers/ControlGraphics.h"
 #include "controllers/frontend_helpers.h"
 
 #include "insets/InsetGraphicsParams.h"
 #include "support/lyxlib.h"
 #include "support/os.h"
 
-#include <QLineEdit>
-#include <QPushButton>
+#include <cmath>
+
+#include "insets/InsetGraphicsParams.h"
+
 #include <QCheckBox>
+#include <QCloseEvent>
 #include <QLabel>
+#include <QLineEdit>
+#include <QPushButton>
+#include <QValidator>
 
-#include <cmath>
 
 using lyx::support::float_equal;
 using lyx::support::token;
@@ -53,13 +57,280 @@ using std::floor;
 using std::vector;
 using std::string;
 
+
 namespace lyx {
 namespace frontend {
 
-typedef QController<ControlGraphics, GuiView<GuiGraphicsDialog> > graphics_base_class;
+
+GuiGraphicsDialog::GuiGraphicsDialog(GuiGraphics * form)
+       : form_(form)
+{
+       setupUi(this);
+       //main buttons
+       connect(okPB, SIGNAL(clicked()),
+               form, SLOT(slotOK()));
+       connect(applyPB, SIGNAL(clicked()),
+               form, SLOT(slotApply()));
+       connect(closePB, SIGNAL(clicked()),
+               form, SLOT(slotClose()));
+       connect(restorePB, SIGNAL(clicked()),
+               form, SLOT(slotRestore()));
+
+       //graphics pane
+       connect(filename, SIGNAL(textChanged(const QString &)),
+               this, SLOT(change_adaptor()));
+       connect(WidthCB, SIGNAL( clicked()),
+               this, SLOT(change_adaptor()));
+       connect(HeightCB, SIGNAL( clicked()),
+               this, SLOT(change_adaptor()));
+       connect(Width, SIGNAL(textChanged(const QString &)),
+               this, SLOT(change_adaptor()));
+       connect(Height, SIGNAL(textChanged(const QString &)),
+               this, SLOT(change_adaptor()));
+       connect(heightUnit, SIGNAL(selectionChanged(lyx::Length::UNIT)),
+               this, SLOT(change_adaptor()));
+       connect(widthUnit, SIGNAL(selectionChanged(lyx::Length::UNIT)),
+               this, SLOT(change_adaptor()));
+       connect(aspectratio, SIGNAL(stateChanged(int)),
+               this, SLOT(change_adaptor()));
+       connect(angle, SIGNAL(textChanged(const QString &)),
+               this, SLOT(change_adaptor()));
+       connect(origin, SIGNAL(activated(int)),
+               this, SLOT(change_adaptor()));
+       connect(scaleCB, SIGNAL(clicked()),
+               this, SLOT(change_adaptor()));
+       connect(Scale, SIGNAL(textChanged(const QString &)),
+               this, SLOT(change_adaptor()));
+       connect(rotateOrderCB, SIGNAL(clicked()),
+               this, SLOT(change_adaptor()));
+
+       filename->setValidator(new PathValidator(true, filename));
+       setFocusProxy(filename);
+
+       QDoubleValidator * scaleValidator = new DoubleAutoValidator(Scale);
+       scaleValidator->setBottom(0);
+       scaleValidator->setDecimals(256); //I guess that will do
+       Scale->setValidator(scaleValidator);
+       Height->setValidator(unsignedLengthAutoValidator(Height));
+       Width->setValidator(unsignedLengthAutoValidator(Width));
+       angle->setValidator(new QDoubleValidator(-360, 360, 2, angle));
+
+       //clipping pane
+       connect(clip, SIGNAL(stateChanged(int)),
+               this, SLOT(change_adaptor()));
+       connect(lbY, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_bb()));
+       connect(lbYunit, SIGNAL(activated(int)),
+               this, SLOT(change_bb()));
+       connect(rtY, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_bb()));
+       connect(rtYunit, SIGNAL(activated(int)),
+               this, SLOT(change_bb()));
+       connect(lbX, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_bb()));
+       connect(lbXunit, SIGNAL(activated(int)),
+               this, SLOT(change_bb()));
+       connect(rtX, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_bb()));
+       connect(rtXunit, SIGNAL(activated(int)),
+               this, SLOT(change_bb()));
+       connect(getPB, SIGNAL(clicked()),
+               this, SLOT(change_adaptor()));
+
+       lbX->setValidator(new QDoubleValidator(lbX));
+       lbY->setValidator(new QDoubleValidator(lbY));
+       rtX->setValidator(new QDoubleValidator(rtX));
+       rtY->setValidator(new QDoubleValidator(rtY));
+
+       //extra options pane
+       connect(latexoptions, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_adaptor()));
+       connect(draftCB, SIGNAL(stateChanged(int)),
+               this, SLOT(change_adaptor()));
+       connect(unzipCB, SIGNAL(stateChanged(int)),
+               this, SLOT(change_adaptor()));
+       // FIXME: we should connect to clicked() when we move to Qt 4.2 because
+       // the toggled(bool) signal is also trigged when we update the widgets
+       // (rgh-4/07) this isn't as much or a problem as it was, because we're now
+       // using blockSignals() to keep from triggering that signal when we call
+       // setChecked(). Note, too, that clicked() would get called whenever it
+       // is clicked, even right clicked (I think), not just whenever it is
+       // toggled.
+       connect(subfigure, SIGNAL(toggled(bool)),
+               this, SLOT(change_adaptor()));
+       connect(subcaption, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_adaptor()));
+       connect(displayGB, SIGNAL(toggled(bool)),
+               this, SLOT(change_adaptor()));
+       connect(showCB, SIGNAL(currentIndexChanged(int)),
+               this, SLOT(change_adaptor()));
+       connect(displayscale, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_adaptor()));
+       displayscale->setValidator(new QIntValidator(displayscale));
+}
+
+
+void GuiGraphicsDialog::show()
+{
+       QDialog::show();
+}
+
+
+void GuiGraphicsDialog::change_adaptor()
+{
+       form_->changed();
+}
+
+
+void GuiGraphicsDialog::change_bb()
+{
+       form_->controller().bbChanged = true;
+       LYXERR(Debug::GRAPHICS)
+               << "[controller().bb_Changed set to true]\n";
+       form_->changed();
+}
+
+
+void GuiGraphicsDialog::closeEvent(QCloseEvent * e)
+{
+       form_->slotWMHide();
+       e->accept();
+}
+
+
+void GuiGraphicsDialog::on_browsePB_clicked()
+{
+       docstring const str =
+               form_->controller().browse(qstring_to_ucs4(filename->text()));
+       if(!str.empty()){
+               filename->setText(toqstr(str));
+               form_->changed();
+       }
+}
+
+
+void GuiGraphicsDialog::on_getPB_clicked()
+{
+       form_->getBB();
+}
+
+
+void GuiGraphicsDialog::on_editPB_clicked()
+{
+       form_->controller().editGraphics();
+}
+
+
+void GuiGraphicsDialog::on_filename_textChanged(const QString & filename)
+{
+       editPB->setDisabled(filename.isEmpty());
+}
+
+
+void GuiGraphicsDialog::setAutoText()
+{
+       if (scaleCB->isChecked()) return;
+       if (!Scale->isEnabled() && Scale->text() != "100")
+               Scale->setText(QString("auto"));
+
+       setAutoTextCB(WidthCB, Width, widthUnit);
+       setAutoTextCB(HeightCB, Height, heightUnit);
+}
+
+
+void GuiGraphicsDialog::on_scaleCB_toggled(bool setScale)
+{
+       Scale->setEnabled(setScale);
+       if (setScale) {
+               Scale->setText("100");
+               Scale->setFocus(Qt::OtherFocusReason);
+       }
+
+       WidthCB->setDisabled(setScale);
+       WidthCB->blockSignals(true);
+       WidthCB->setChecked(false);
+       WidthCB->blockSignals(false);
+       Width->setEnabled(false);
+       widthUnit->setEnabled(false);
+
+       HeightCB->setDisabled(setScale);
+       HeightCB->blockSignals(true);
+       HeightCB->setChecked(false);
+       HeightCB->blockSignals(false);
+       Height->setEnabled(false);
+       heightUnit->setEnabled(false);
+
+       aspectratio->setDisabled(true);
+       aspectratio->setChecked(true);
+
+       rotateOrderCB->setEnabled((WidthCB->isChecked() ||
+                                HeightCB->isChecked() ||
+                                scaleCB->isChecked()) &&
+                                (angle->text() != "0"));
+
+       setAutoText();
+}
+
+void GuiGraphicsDialog::on_WidthCB_toggled(bool setWidth)
+{
+       Width->setEnabled(setWidth);
+       widthUnit->setEnabled(setWidth);
+       if (setWidth)
+               Width->setFocus(Qt::OtherFocusReason);
+
+       bool const setHeight = HeightCB->isChecked();
+       aspectratio->setEnabled(setWidth && setHeight);
+       aspectratio->blockSignals(true);
+       aspectratio->setChecked(!(setWidth && setHeight));
+       aspectratio->blockSignals(false);
+
+       scaleCB->setEnabled(!setWidth && !setHeight);
+       //already will be unchecked, so don't need to do that
+       Scale->setEnabled((!setWidth && !setHeight) //=scaleCB->isEnabled()
+                       && scaleCB->isChecked()); //should be false, but let's check
+       rotateOrderCB->setEnabled((setWidth || setHeight ||
+                                scaleCB->isChecked()) &&
+                                (angle->text() != "0"));
+
+       setAutoText();
+}
+
+void GuiGraphicsDialog::on_HeightCB_toggled(bool setHeight)
+{
+       Height->setEnabled(setHeight);
+       heightUnit->setEnabled(setHeight);
+       if (setHeight)
+               Height->setFocus(Qt::OtherFocusReason);
+
+       bool const setWidth = WidthCB->isChecked();
+       aspectratio->setEnabled(setWidth && setHeight);
+       aspectratio->blockSignals(true);
+       aspectratio->setChecked(!(setWidth && setHeight));
+       aspectratio->blockSignals(false);
+
+       scaleCB->setEnabled(!setWidth && !setHeight);
+       //already unchecked
+       Scale->setEnabled((!setWidth && !setHeight) //=scaleCB->isEnabled()
+               && scaleCB->isChecked()); //should be false
+       rotateOrderCB->setEnabled((setWidth || setHeight ||
+                                scaleCB->isChecked()) &&
+                                (angle->text() != "0"));
+
+       setAutoText();
+}
+
+
+void GuiGraphicsDialog::on_angle_textChanged(const QString & filename)
+{
+       rotateOrderCB->setEnabled((WidthCB->isChecked() ||
+                                HeightCB->isChecked() ||
+                                scaleCB->isChecked()) &&
+                                (filename != "0"));
+}
+
 
 GuiGraphics::GuiGraphics(Dialog & parent)
-       : graphics_base_class(parent, _("Graphics"))
+       : GuiView<GuiGraphicsDialog>(parent, _("Graphics"))
 {
 }
 
@@ -420,3 +691,7 @@ bool GuiGraphics::isValid()
 
 } // namespace frontend
 } // namespace lyx
+
+
+#include "GuiGraphics_moc.cpp"
+
index 45744ae38ecc079ea0b4bc6b816bb1f53f690e8a..3ff72533845369ad21b5cbc5a093864c7dc04bd2 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QGRAPHICS_H
-#define QGRAPHICS_H
+#ifndef GUIGRAPHICS_H
+#define GUIGRAPHICS_H
 
 #include "GuiDialogView.h"
-#include "GuiGraphicsDialog.h"
+#include "ui_GraphicsUi.h"
+#include "ControlGraphics.h"
+
+#include <QDialog>
 
 #include <vector>
 
+class QString;
+
 namespace lyx {
 namespace frontend {
 
-class ControlGraphics;
+class GuiGraphics;
+
+class GuiGraphicsDialog : public QDialog, public Ui::GraphicsUi
+{
+       Q_OBJECT
+public:
+       GuiGraphicsDialog(GuiGraphics * form);
+       virtual void setAutoText();
+       virtual void show();
+protected Q_SLOTS:
+       virtual void change_adaptor();
+       virtual void change_bb();
+       virtual void on_browsePB_clicked();
+       virtual void on_getPB_clicked();
+       virtual void on_editPB_clicked();
+       virtual void on_filename_textChanged(const QString &);
+       virtual void on_scaleCB_toggled(bool);
+       virtual void on_WidthCB_toggled(bool);
+       virtual void on_HeightCB_toggled(bool);
+       virtual void on_angle_textChanged(const QString &);
+protected:
+       virtual void closeEvent(QCloseEvent * e);
+private:
+       GuiGraphics * form_;
+};
+
 
-///
-class GuiGraphics
-       : public QController<ControlGraphics, GuiView<GuiGraphicsDialog> >
+class GuiGraphics : public GuiView<GuiGraphicsDialog>
 {
 public:
        ///
        friend class GuiGraphicsDialog;
        ///
        GuiGraphics(Dialog &);
+       /// parent controller
+       ControlGraphics & controller()
+       { return static_cast<ControlGraphics &>(this->getController()); }
+       /// parent controller
+       ControlGraphics const & controller() const
+       { return static_cast<ControlGraphics const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
@@ -52,4 +86,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QGRAPHICS_H
+#endif // GUIGRAPHICS_H
diff --git a/src/frontends/qt4/GuiGraphicsDialog.cpp b/src/frontends/qt4/GuiGraphicsDialog.cpp
deleted file mode 100644 (file)
index 70f8e79..0000000
+++ /dev/null
@@ -1,311 +0,0 @@
-/**
- * \file GuiGraphicsDialog.cpp
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Herbert Voß
- * \author Abdelrazak Younes
- * \author Richard Heck
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "GuiGraphicsDialog.h"
-#include "GuiGraphics.h"
-
-#include "LengthCombo.h"
-#include "Validator.h"
-#include "qt_helpers.h"
-
-#include "debug.h"
-
-#include "controllers/ControlGraphics.h"
-
-#include "insets/InsetGraphicsParams.h"
-
-#include <QCloseEvent>
-#include <QPushButton>
-#include <QLineEdit>
-#include <QValidator>
-
-
-using std::string;
-
-namespace lyx {
-namespace frontend {
-
-
-GuiGraphicsDialog::GuiGraphicsDialog(GuiGraphics * form)
-       : form_(form)
-{
-       setupUi(this);
-       //main buttons
-       connect(okPB, SIGNAL(clicked()),
-               form, SLOT(slotOK()));
-       connect(applyPB, SIGNAL(clicked()),
-               form, SLOT(slotApply()));
-       connect(closePB, SIGNAL(clicked()),
-               form, SLOT(slotClose()));
-       connect(restorePB, SIGNAL(clicked()),
-               form, SLOT(slotRestore()));
-
-       //graphics pane
-       connect(filename, SIGNAL(textChanged(const QString &)),
-               this, SLOT(change_adaptor()));
-       connect(WidthCB, SIGNAL( clicked()),
-               this, SLOT(change_adaptor()));
-       connect(HeightCB, SIGNAL( clicked()),
-               this, SLOT(change_adaptor()));
-       connect(Width, SIGNAL(textChanged(const QString &)),
-               this, SLOT(change_adaptor()));
-       connect(Height, SIGNAL(textChanged(const QString &)),
-               this, SLOT(change_adaptor()));
-       connect(heightUnit, SIGNAL(selectionChanged(lyx::Length::UNIT)),
-               this, SLOT(change_adaptor()));
-       connect(widthUnit, SIGNAL(selectionChanged(lyx::Length::UNIT)),
-               this, SLOT(change_adaptor()));
-       connect(aspectratio, SIGNAL(stateChanged(int)),
-               this, SLOT(change_adaptor()));
-       connect(angle, SIGNAL(textChanged(const QString &)),
-               this, SLOT(change_adaptor()));
-       connect(origin, SIGNAL(activated(int)),
-               this, SLOT(change_adaptor()));
-       connect(scaleCB, SIGNAL(clicked()),
-               this, SLOT(change_adaptor()));
-       connect(Scale, SIGNAL(textChanged(const QString &)),
-               this, SLOT(change_adaptor()));
-       connect(rotateOrderCB, SIGNAL(clicked()),
-               this, SLOT(change_adaptor()));
-
-       filename->setValidator(new PathValidator(true, filename));
-       setFocusProxy(filename);
-
-       QDoubleValidator * scaleValidator = new DoubleAutoValidator(Scale);
-       scaleValidator->setBottom(0);
-       scaleValidator->setDecimals(256); //I guess that will do
-       Scale->setValidator(scaleValidator);
-       Height->setValidator(unsignedLengthAutoValidator(Height));
-       Width->setValidator(unsignedLengthAutoValidator(Width));
-       angle->setValidator(new QDoubleValidator(-360, 360, 2, angle));
-
-       //clipping pane
-       connect(clip, SIGNAL(stateChanged(int)),
-               this, SLOT(change_adaptor()));
-       connect(lbY, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_bb()));
-       connect(lbYunit, SIGNAL(activated(int)),
-               this, SLOT(change_bb()));
-       connect(rtY, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_bb()));
-       connect(rtYunit, SIGNAL(activated(int)),
-               this, SLOT(change_bb()));
-       connect(lbX, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_bb()));
-       connect(lbXunit, SIGNAL(activated(int)),
-               this, SLOT(change_bb()));
-       connect(rtX, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_bb()));
-       connect(rtXunit, SIGNAL(activated(int)),
-               this, SLOT(change_bb()));
-       connect(getPB, SIGNAL(clicked()),
-               this, SLOT(change_adaptor()));
-
-       lbX->setValidator(new QDoubleValidator(lbX));
-       lbY->setValidator(new QDoubleValidator(lbY));
-       rtX->setValidator(new QDoubleValidator(rtX));
-       rtY->setValidator(new QDoubleValidator(rtY));
-
-       //extra options pane
-       connect(latexoptions, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_adaptor()));
-       connect(draftCB, SIGNAL(stateChanged(int)),
-               this, SLOT(change_adaptor()));
-       connect(unzipCB, SIGNAL(stateChanged(int)),
-               this, SLOT(change_adaptor()));
-       // FIXME: we should connect to clicked() when we move to Qt 4.2 because
-       // the toggled(bool) signal is also trigged when we update the widgets
-       // (rgh-4/07) this isn't as much or a problem as it was, because we're now
-       // using blockSignals() to keep from triggering that signal when we call
-       // setChecked(). Note, too, that clicked() would get called whenever it
-       // is clicked, even right clicked (I think), not just whenever it is
-       // toggled.
-       connect(subfigure, SIGNAL(toggled(bool)),
-               this, SLOT(change_adaptor()));
-       connect(subcaption, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_adaptor()));
-       connect(displayGB, SIGNAL(toggled(bool)),
-               this, SLOT(change_adaptor()));
-       connect(showCB, SIGNAL(currentIndexChanged(int)),
-               this, SLOT(change_adaptor()));
-       connect(displayscale, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_adaptor()));
-       displayscale->setValidator(new QIntValidator(displayscale));
-}
-
-
-void GuiGraphicsDialog::show()
-{
-       QDialog::show();
-}
-
-
-void GuiGraphicsDialog::change_adaptor()
-{
-       form_->changed();
-}
-
-
-void GuiGraphicsDialog::change_bb()
-{
-       form_->controller().bbChanged = true;
-       LYXERR(Debug::GRAPHICS)
-               << "[controller().bb_Changed set to true]\n";
-       form_->changed();
-}
-
-
-void GuiGraphicsDialog::closeEvent(QCloseEvent * e)
-{
-       form_->slotWMHide();
-       e->accept();
-}
-
-
-void GuiGraphicsDialog::on_browsePB_clicked()
-{
-       docstring const str =
-               form_->controller().browse(qstring_to_ucs4(filename->text()));
-       if(!str.empty()){
-               filename->setText(toqstr(str));
-               form_->changed();
-       }
-}
-
-
-void GuiGraphicsDialog::on_getPB_clicked()
-{
-       form_->getBB();
-}
-
-
-void GuiGraphicsDialog::on_editPB_clicked()
-{
-       form_->controller().editGraphics();
-}
-
-
-void GuiGraphicsDialog::on_filename_textChanged(const QString & filename)
-{
-       editPB->setDisabled(filename.isEmpty());
-}
-
-
-void GuiGraphicsDialog::setAutoText()
-{
-       if (scaleCB->isChecked()) return;
-       if (!Scale->isEnabled() && Scale->text() != "100")
-               Scale->setText(QString("auto"));
-
-       setAutoTextCB(WidthCB, Width, widthUnit);
-       setAutoTextCB(HeightCB, Height, heightUnit);
-}
-
-
-void GuiGraphicsDialog::on_scaleCB_toggled(bool setScale)
-{
-       Scale->setEnabled(setScale);
-       if (setScale) {
-               Scale->setText("100");
-               Scale->setFocus(Qt::OtherFocusReason);
-       }
-
-       WidthCB->setDisabled(setScale);
-       WidthCB->blockSignals(true);
-       WidthCB->setChecked(false);
-       WidthCB->blockSignals(false);
-       Width->setEnabled(false);
-       widthUnit->setEnabled(false);
-
-       HeightCB->setDisabled(setScale);
-       HeightCB->blockSignals(true);
-       HeightCB->setChecked(false);
-       HeightCB->blockSignals(false);
-       Height->setEnabled(false);
-       heightUnit->setEnabled(false);
-
-       aspectratio->setDisabled(true);
-       aspectratio->setChecked(true);
-
-       rotateOrderCB->setEnabled((WidthCB->isChecked() ||
-                                HeightCB->isChecked() ||
-                                scaleCB->isChecked()) &&
-                                (angle->text() != "0"));
-
-       setAutoText();
-}
-
-void GuiGraphicsDialog::on_WidthCB_toggled(bool setWidth)
-{
-       Width->setEnabled(setWidth);
-       widthUnit->setEnabled(setWidth);
-       if (setWidth)
-               Width->setFocus(Qt::OtherFocusReason);
-
-       bool const setHeight = HeightCB->isChecked();
-       aspectratio->setEnabled(setWidth && setHeight);
-       aspectratio->blockSignals(true);
-       aspectratio->setChecked(!(setWidth && setHeight));
-       aspectratio->blockSignals(false);
-
-       scaleCB->setEnabled(!setWidth && !setHeight);
-       //already will be unchecked, so don't need to do that
-       Scale->setEnabled((!setWidth && !setHeight) //=scaleCB->isEnabled()
-                       && scaleCB->isChecked()); //should be false, but let's check
-       rotateOrderCB->setEnabled((setWidth || setHeight ||
-                                scaleCB->isChecked()) &&
-                                (angle->text() != "0"));
-
-       setAutoText();
-}
-
-void GuiGraphicsDialog::on_HeightCB_toggled(bool setHeight)
-{
-       Height->setEnabled(setHeight);
-       heightUnit->setEnabled(setHeight);
-       if (setHeight)
-               Height->setFocus(Qt::OtherFocusReason);
-
-       bool const setWidth = WidthCB->isChecked();
-       aspectratio->setEnabled(setWidth && setHeight);
-       aspectratio->blockSignals(true);
-       aspectratio->setChecked(!(setWidth && setHeight));
-       aspectratio->blockSignals(false);
-
-       scaleCB->setEnabled(!setWidth && !setHeight);
-       //already unchecked
-       Scale->setEnabled((!setWidth && !setHeight) //=scaleCB->isEnabled()
-               && scaleCB->isChecked()); //should be false
-       rotateOrderCB->setEnabled((setWidth || setHeight ||
-                                scaleCB->isChecked()) &&
-                                (angle->text() != "0"));
-
-       setAutoText();
-}
-
-
-void GuiGraphicsDialog::on_angle_textChanged(const QString & filename)
-{
-       rotateOrderCB->setEnabled((WidthCB->isChecked() ||
-                                HeightCB->isChecked() ||
-                                scaleCB->isChecked()) &&
-                                (filename != "0"));
-}
-
-
-} // namespace frontend
-} // namespace lyx
-
-#include "GuiGraphicsDialog_moc.cpp"
diff --git a/src/frontends/qt4/GuiGraphicsDialog.h b/src/frontends/qt4/GuiGraphicsDialog.h
deleted file mode 100644 (file)
index 6bface0..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-// -*- C++ -*-
-/**
- * \file GuiGraphicsDialog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Herbert Voß
- * \author Richard Heck
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QGRAPHICSDIALOG_H
-#define QGRAPHICSDIALOG_H
-
-#include "ui_GraphicsUi.h"
-
-#include <QCloseEvent>
-#include <QDialog>
-#include <QString>
-
-namespace lyx {
-namespace frontend {
-
-class GuiGraphics;
-
-class GuiGraphicsDialog : public QDialog, public Ui::GraphicsUi {
-       Q_OBJECT
-public:
-       GuiGraphicsDialog(GuiGraphics * form);
-       virtual void setAutoText();
-       virtual void show();
-protected Q_SLOTS:
-       virtual void change_adaptor();
-       virtual void change_bb();
-       virtual void on_browsePB_clicked();
-       virtual void on_getPB_clicked();
-       virtual void on_editPB_clicked();
-       virtual void on_filename_textChanged(const QString &);
-       virtual void on_scaleCB_toggled(bool);
-       virtual void on_WidthCB_toggled(bool);
-       virtual void on_HeightCB_toggled(bool);
-       virtual void on_angle_textChanged(const QString &);
-protected:
-       virtual void closeEvent(QCloseEvent * e);
-private:
-       GuiGraphics * form_;
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // QGRAPHICSDIALOG_H
index 51eb3cf6f74b36a54cb964af572b26733fb13c5a..a65a09deaaa84fd39d566d83199780df3c060f1d 100644 (file)
@@ -46,16 +46,16 @@ namespace lyx {
 namespace graphics {
 
 /// Access to this class is through this static method.
-Image::ImagePtr QLImage::newImage()
+Image::ImagePtr GuiImage::newImage()
 {
        ImagePtr ptr;
-       ptr.reset(new QLImage);
+       ptr.reset(new GuiImage);
        return ptr;
 }
 
 
 /// Return the list of loadable formats.
-Image::FormatList QLImage::loadableFormats()
+Image::FormatList GuiImage::loadableFormats()
 {
        static FormatList fmts;
 
@@ -122,38 +122,32 @@ Image::FormatList QLImage::loadableFormats()
 }
 
 
-QLImage::QLImage()
-       : Image()
-{
-}
-
-
-QLImage::QLImage(QLImage const & other)
+GuiImage::GuiImage(GuiImage const & other)
        : Image(other), original_(other.original_),
          transformed_(other.transformed_),
          transformed_pixmap_(other.transformed_pixmap_)
 {}
 
 
-Image * QLImage::clone_impl() const
+Image * GuiImage::clone_impl() const
 {
-       return new QLImage(*this);
+       return new GuiImage(*this);
 }
 
 
-unsigned int QLImage::getWidth_impl() const
+unsigned int GuiImage::getWidth_impl() const
 {
        return transformed_.width();
 }
 
 
-unsigned int QLImage::getHeight_impl() const
+unsigned int GuiImage::getHeight_impl() const
 {
        return transformed_.height();
 }
 
 
-void QLImage::load_impl(support::FileName const & filename)
+void GuiImage::load_impl(support::FileName const & filename)
 {
        if (!original_.isNull()) {
                LYXERR(Debug::GRAPHICS)
@@ -198,7 +192,7 @@ QImage & toGray(QImage & img)
 } // namespace anon
 
 
-bool QLImage::setPixmap_impl(Params const & params)
+bool GuiImage::setPixmap_impl(Params const & params)
 {
        if (original_.isNull() || params.display == NoDisplay)
                return false;
@@ -223,7 +217,7 @@ bool QLImage::setPixmap_impl(Params const & params)
 }
 
 
-void QLImage::clip_impl(Params const & params)
+void GuiImage::clip_impl(Params const & params)
 {
        if (transformed_.isNull())
                return;
@@ -254,7 +248,7 @@ void QLImage::clip_impl(Params const & params)
 }
 
 
-void QLImage::rotate_impl(Params const & params)
+void GuiImage::rotate_impl(Params const & params)
 {
        if (transformed_.isNull())
                return;
@@ -269,7 +263,7 @@ void QLImage::rotate_impl(Params const & params)
 }
 
 
-void QLImage::scale_impl(Params const & params)
+void GuiImage::scale_impl(Params const & params)
 {
        if (transformed_.isNull())
                return;
index 57cc49e6897c9c7a942a34d3fa78817309ddab67..55529471bd420415c5a29d60dbbac360180e6d37 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLIMAGE_H
-#define QLIMAGE_H
-
+#ifndef GUIIMAGE_H
+#define GUIIMAGE_H
 
 #include "graphics/GraphicsImage.h"
 
-#include <qimage.h>
-//Added by qt3to4:
+#include <QImage>
 #include <QPixmap>
 
 namespace lyx {
 namespace graphics {
 
-class QLImage : public Image {
+class GuiImage : public Image {
 public:
        /// Access to this class is through this static method.
        static ImagePtr newImage();
@@ -66,9 +64,9 @@ private:
        virtual void scale_impl(Params const & params);
 
        /// Access to the class is through newImage() and clone.
-       QLImage();
+       GuiImage() {}
        ///
-       QLImage(QLImage const &);
+       GuiImage(GuiImage const &);
 
        /// The original loaded image.
        QImage original_;
@@ -82,4 +80,4 @@ private:
 } // namespace graphics
 } // namespace lyx
 
-#endif // QLIMAGE_H
+#endif // GUIIMAGE_H
index cf6c16b5e2e0ba1cd108e5060464c2d7f1ef1853..b88c2f211e5325d6fed2f79c654677704a2714fd 100644 (file)
@@ -36,7 +36,6 @@ public:
        GuiImplementation();
        virtual ~GuiImplementation() {}
 
-
        virtual LyXView& createRegisteredView();
        virtual bool closeAllViews();
        virtual bool unregisterView(int id);
index 38b56befcae6a13378ebdc7c2664507c7bc8a81e..8debf85106195844657fc3411d45e6d7677d352c 100644 (file)
@@ -22,7 +22,6 @@
 #include "LyXRC.h"
 
 #include "insets/InsetListingsParams.h"
-#include "controllers/ControlInclude.h"
 
 #include <QPushButton>
 #include <QCheckBox>
@@ -187,11 +186,8 @@ void GuiIncludeDialog::browseClicked()
 /////////////////////////////////////////////////////////////////////
 
 
-typedef QController<ControlInclude, GuiView<GuiIncludeDialog> > IncludeBase;
-
-
 GuiInclude::GuiInclude(Dialog & parent)
-       : IncludeBase(parent, _("Child Document"))
+       : GuiView<GuiIncludeDialog>(parent, _("Child Document"))
 {}
 
 
index d961650028c9d806dac5f9876cefa1d6ab4c17c7..d176547a93dc0158c901df8d6f35a11abe8a9bfa 100644 (file)
@@ -9,11 +9,11 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QINCLUDE_H
-#define QINCLUDE_H
+#ifndef GUIINCLUDE_H
+#define GUIINCLUDE_H
 
 #include "GuiDialogView.h"
-
+#include "ControlInclude.h"
 #include "ui_IncludeUi.h"
 
 #include <QDialog>
@@ -50,16 +50,19 @@ private:
 };
 
 
-class ControlInclude;
-
-///
-class GuiInclude : public QController<ControlInclude, GuiView<GuiIncludeDialog> >
+class GuiInclude : public GuiView<GuiIncludeDialog>
 {
 public:
        ///
        friend class GuiIncludeDialog;
        ///
        GuiInclude(Dialog &);
+       /// parent controller
+       ControlInclude & controller()
+       { return static_cast<ControlInclude &>(this->getController()); }
+       /// parent controller
+       ControlInclude const & controller() const
+       { return static_cast<ControlInclude const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
@@ -81,4 +84,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QINCLUDE_H
+#endif // GUIINCLUDE_H
index c9e114d948e8df41aa415d0b09c0e9dd180997ea..cebac4debdeab5068809c3fa7430221cc72ed156 100644 (file)
@@ -11,7 +11,6 @@
 #include <config.h>
 
 #include "debug.h"
-#include "ControlCommand.h"
 #include "qt_helpers.h"
 
 #include "GuiIndex.h"
@@ -21,7 +20,6 @@
 #include <QLabel>
 #include <QPushButton>
 #include <QLineEdit>
-#include <QWhatsThis>
 #include <QCloseEvent>
 
 
@@ -43,7 +41,7 @@ GuiIndexDialog::GuiIndexDialog(GuiIndex * form)
 
        connect(okPB, SIGNAL(clicked()), form, SLOT(slotOK()));
        connect(closePB, SIGNAL(clicked()), form, SLOT(slotClose()));
-       connect( keywordED, SIGNAL(textChanged(const QString &)),
+       connect(keywordED, SIGNAL(textChanged(const QString &)),
                this, SLOT(change_adaptor()));
 
        setFocusProxy(keywordED);
@@ -92,10 +90,8 @@ void GuiIndexDialog::closeEvent(QCloseEvent * e)
 /////////////////////////////////////////////////////////////////////
 
 
-typedef QController<ControlCommand, GuiView<GuiIndexDialog> > IndexBase;
-
 GuiIndex::GuiIndex(Dialog & parent, docstring const & title, QString const & label)
-       : IndexBase(parent, title), label_(label)
+       : GuiView<GuiIndexDialog>(parent, title), label_(label)
 {
 }
 
index fdeea347ffacde53b860859b461b8fcfb00da439..31929004a9fa2d5f9f2b3fe11d73ba23081e9214 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QINDEX_H
-#define QINDEX_H
+#ifndef GUIINDEX_H
+#define GUIINDEX_H
 
 #include "GuiDialogView.h"
+#include "ControlCommand.h"
 #include "ui_IndexUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 namespace lyx {
 namespace frontend {
@@ -39,15 +39,18 @@ private:
 };
 
 
-class ControlCommand;
-
-class GuiIndex :
-       public QController<ControlCommand, GuiView<GuiIndexDialog> >
+class GuiIndex : public GuiView<GuiIndexDialog>
 {
 public:
        friend class GuiIndexDialog;
 
        GuiIndex(Dialog &, docstring const & title, QString const & label);
+       /// parent controller
+       ControlCommand & controller()
+       { return static_cast<ControlCommand &>(this->getController()); }
+       /// parent controller
+       ControlCommand const & controller() const
+       { return static_cast<ControlCommand const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
@@ -65,4 +68,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QINDEX_H
+#endif // GUIINDEX_H
index a88314cf916850814ac2a7733200c4f5fc7772ca..d1725521753199c970d09ef94e851cb8c19ad237 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLYXKEYSYM_H
-#define QLYXKEYSYM_H
+#ifndef GUIKEYSYM_H
+#define GUIKEYSYM_H
 
 #include "frontends/KeySymbol.h"
 
 #include <QString>
-#include <QKeyEvent>
-
 
 class QKeyEvent;
 
@@ -85,4 +83,4 @@ key_modifier::state q_key_state(Qt::KeyboardModifiers state);
 
 } // namespace lyx
 
-#endif // QLYXKEYSYM_H
+#endif // GUIKEYSYM_H
index 2b4d2b049dcf5493787a814610c3387ac5915c55..04926b24e96f50ae1b0661521b7fcd6e2c17e352 100644 (file)
@@ -14,7 +14,6 @@
 #include "GuiListings.h"
 #include "Qt2BC.h"
 #include "qt_helpers.h"
-#include "controllers/ControlListings.h"
 #include "insets/InsetListingsParams.h"
 #include "debug.h"
 
@@ -408,10 +407,9 @@ void GuiListingsDialog::on_languageCO_currentIndexChanged(int index)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlListings, GuiView<GuiListingsDialog> > listings_wrap_base_class;
 
 GuiListings::GuiListings(Dialog & parent)
-       : listings_wrap_base_class(parent, _("Program Listing Settings"))
+       : GuiView<GuiListingsDialog>(parent, _("Program Listing Settings"))
 {
 }
 
index 71202e504ad4942a1f380e109e15637818e8675c..1aa6e0f54cbfd96df3e3188638028fde37714baa 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- * \file QListings.h
+ * \file GuiListings.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -9,14 +9,14 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLISTINGS_H
-#define QLISTINGS_H
+#ifndef GUILISTINGS_H
+#define GUILISTINGS_H
 
 #include "GuiDialogView.h"
+#include "ControlListings.h"
 #include "ui_ListingsUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 namespace lyx {
 namespace frontend {
@@ -53,13 +53,17 @@ private:
 };
 
 
-class ControlListings;
-
-class GuiListings : public QController<ControlListings, GuiView<GuiListingsDialog> > {
+class GuiListings : public GuiView<GuiListingsDialog> {
 public:
        friend class GuiListingsDialog;
 
        GuiListings(Dialog &);
+       /// parent controller
+       ControlListings & controller()
+       { return static_cast<ControlListings &>(this->getController()); }
+       /// parent controller
+       ControlListings const & controller() const
+       { return static_cast<ControlListings const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -75,4 +79,4 @@ protected:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QLISTINGS_H
+#endif // GUILISTINGS_H
index 370ab8532f157b63924d6e62978141e493da5619..0515629a4d8cb8a96a47d2dfa960c0e5fc027bfe 100644 (file)
 
 #include "frontends/Application.h"
 
-#include "controllers/ControlLog.h"
-
-#include <sstream>
-
+#include <QCloseEvent>
+#include <QTextBrowser>
 #include <QTextBrowser>
-#include <QPushButton>
 
 namespace lyx {
 namespace frontend {
@@ -107,10 +104,9 @@ void LogHighlighter::highlightBlock(QString const & text)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlLog, GuiView<GuiLogDialog> > LogBase;
 
 GuiLog::GuiLog(Dialog & parent)
-       : LogBase(parent, docstring())
+       :  GuiView<GuiLogDialog>(parent, docstring())
 {}
 
 
index 3d834017bcb638638394b269d96b120afd699c3b..430c1e3f3615959177bd80b12f050bb89a2bcd28 100644 (file)
 #define GUILOG_H
 
 #include "GuiDialogView.h"
-
-
+#include "ControlLog.h"
 #include "ui_LogUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 #include <QSyntaxHighlighter>
 
 namespace lyx {
@@ -43,14 +41,19 @@ class ControlLog;
 class LogHighlighter;
 
 ///
-class GuiLog
-       : public QController<ControlLog, GuiView<GuiLogDialog> >
+class GuiLog : public GuiView<GuiLogDialog>
 {
 public:
        ///
        friend class GuiLogDialog;
        ///
        GuiLog(Dialog &);
+       /// parent controller
+       ControlLog & controller()
+       { return static_cast<ControlLog &>(this->getController()); }
+       /// parent controller
+       ControlLog const & controller() const
+       { return static_cast<ControlLog const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply() {}
index 8978fd112bb689e6bdd3eb0bb53c98ad8aa1e4bf..ba88f541a62678626255d00d7846913d3418881c 100644 (file)
 
 #include "EmptyTable.h"
 #include "qt_helpers.h"
-
-#include "controllers/ControlMath.h"
+#include "gettext.h"
 
 #include <sstream>
 
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-
-#include "gettext.h"
+#include <QLineEdit>
+#include <QPushButton>
+#include <QSpinBox>
 
 using std::ostringstream;
 using std::string;
@@ -31,19 +28,8 @@ using std::string;
 namespace lyx {
 namespace frontend {
 
-namespace {
-
-char h_align_str[80] = "c";
-char v_align_c[] = "tcb";
-
-} // namespace anon
-
-
-typedef QController<ControlMath, GuiView<GuiMathMatrixDialog> > matrix_base;
-
-
 GuiMathMatrix::GuiMathMatrix(Dialog & parent)
-       : matrix_base(parent, _("Math Matrix"))
+       : GuiView<GuiMathMatrixDialog>(parent, _("Math Matrix"))
 {}
 
 
@@ -89,6 +75,7 @@ GuiMathMatrixDialog::GuiMathMatrixDialog(GuiMathMatrix * form)
 
 void GuiMathMatrixDialog::columnsChanged(int)
 {
+       char h_align_str[80] = "c";
        int const nx = int(columnsSB->value());
        for (int i = 0; i < nx; ++i)
                h_align_str[i] = 'c';
@@ -111,6 +98,7 @@ void GuiMathMatrixDialog::change_adaptor()
 
 void GuiMathMatrixDialog::slotOK()
 {
+       char v_align_c[] = "tcb";
        char const c = v_align_c[valignCO->currentIndex()];
        string const sh = fromqstr(halignED->text());
        int const nx = int(columnsSB->value());
index ef3b3814ef78e31724431a0611e79f2deab633c2..050f20fc530ed793a3232fb8717a2e7098b0ad13 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QMATHMATRIXDIALOG_H
-#define QMATHMATRIXDIALOG_H
+#ifndef GUIMATHMATRIXDIALOG_H
+#define GUIMATHMATRIXDIALOG_H
 
 #include "GuiDialogView.h"
-
+#include "ControlMath.h"
 #include "ui_MathMatrixUi.h"
 
 #include <QDialog>
@@ -43,12 +43,17 @@ private:
 };
 
 
-class GuiMathMatrix : public QController<ControlMath, GuiView<GuiMathMatrixDialog> > {
+class GuiMathMatrix : public GuiView<GuiMathMatrixDialog> {
 public:
        friend class GuiMathMatrixDialog;
 
        GuiMathMatrix(Dialog &);
-
+       /// parent controller
+       ControlMath & controller()
+       { return static_cast<ControlMath &>(this->getController()); }
+       /// parent controller
+       ControlMath const & controller() const
+       { return static_cast<ControlMath const &>(this->getController()); }
 private:
        virtual void apply() {}
        virtual void update_contents() {}
@@ -60,4 +65,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QMATHMATRIXDIALOG_H
+#endif // GUIMATHMATRIXDIALOG_H
index a28ada3d2e6056c7a4359e8cdf9fc4ee94956903..b0c4b256f8f2fd7d08d97e36eed369464b9e1ba0 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 /**
- * \file qt4/GuiMenubar.h
+ * \file GuiMenubar.h
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
@@ -10,8 +10,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLMENUBAR_H
-#define QLMENUBAR_H
+#ifndef GUIMENUBAR_H
+#define GUIMENUBAR_H
 
 #include "GuiPopupMenu.h"
 
@@ -74,4 +74,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QLMENUBAR_H
+#endif // GUIMENUBAR_H
index 01606ceb3cbc5b228f4da20ca7e7ca712e7ff91d..48dd5e4e8bbb784594992a7f738bec597aa589c4 100644 (file)
@@ -18,6 +18,7 @@
 #include "GuiNomencl.h"
 #include "Qt2BC.h"
 #include "ButtonController.h"
+
 #include <QLabel>
 #include <QLineEdit>
 #include <QPushButton>
@@ -84,11 +85,8 @@ void GuiNomenclDialog::closeEvent(QCloseEvent * e)
 /////////////////////////////////////////////////////////////////////
 
 
-typedef QController<ControlCommand, GuiView<GuiNomenclDialog> > NomenBase;
-
-
 GuiNomencl::GuiNomencl(Dialog & parent, docstring const & title)
-       : NomenBase(parent, title)
+       : GuiView<GuiNomenclDialog>(parent, title)
 {
 }
 
index 9fcad8bd7bf2e874959cf6bc57402b7846a7e6e2..2d9536ed570f4a497e33f2968ac035765eb8adf9 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QNOMENCL_H
-#define QNOMENCL_H
+#ifndef GUINOMENCL_H
+#define GUINOMENCL_H
 
 #include "GuiDialogView.h"
+#include "ControlCommand.h"
 #include "ui_NomenclUi.h"
 
 #include <QDialog>
 
-class QCloseEvent;
-
 
 namespace lyx {
 namespace frontend {
@@ -42,15 +41,18 @@ private:
 };
 
 
-class ControlCommand;
-
-class GuiNomencl :
-       public QController<ControlCommand, GuiView<GuiNomenclDialog> >
+class GuiNomencl : public GuiView<GuiNomenclDialog>
 {
 public:
        friend class GuiNomenclDialog;
 
        GuiNomencl(Dialog &, docstring const & title);
+       /// parent controller
+       ControlCommand & controller()
+       { return static_cast<ControlCommand &>(this->getController()); }
+       /// parent controller
+       ControlCommand const & controller() const
+       { return static_cast<ControlCommand const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
@@ -65,4 +67,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QNOMENCL_H
+#endif // GUINOMENCL_H
index 03e7c714c8fb93db69fa38ad93ddf1c24d3c0097..250d2d34b615cf544ccd7a51e1897be8096bbc9c 100644 (file)
@@ -13,8 +13,6 @@
 #include "GuiNote.h"
 #include "Qt2BC.h"
 
-#include "controllers/ControlNote.h"
-
 #include "insets/InsetNote.h"
 
 #include <QCloseEvent>
@@ -63,11 +61,9 @@ void GuiNoteDialog::change_adaptor()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlNote, GuiView<GuiNoteDialog> > NoteBase;
-
 
 GuiNote::GuiNote(Dialog & parent)
-       : NoteBase(parent, _("Note Settings"))
+       : GuiView<GuiNoteDialog>(parent, _("Note Settings"))
 {}
 
 
index 6032daff2ae91cff39c0dd6ed9e24c3c4f5e9dc2..1d71caebfb1d547b132018e190e03c8ffb24dcae 100644 (file)
@@ -9,14 +9,15 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QNOTE_H
-#define QNOTE_H
+#ifndef GUINOTE_H
+#define GUINOTE_H
 
 #include "GuiDialogView.h"
+#include "ControlNote.h"
 #include "ui_NoteUi.h"
 
 #include <QDialog>
-class QCloseEvent;
+
 
 namespace lyx {
 namespace frontend {
@@ -36,17 +37,21 @@ private:
 };
 
 
-class ControlNote;
-
 /** This class provides a QT implementation of the Note Dialog.
  */
-class GuiNote : public QController<ControlNote, GuiView<GuiNoteDialog> >
+class GuiNote : public GuiView<GuiNoteDialog>
 {
 public:
        friend class GuiNoteDialog;
 
        /// Constructor
        GuiNote(Dialog &);
+       /// parent controller
+       ControlNote & controller()
+       { return static_cast<ControlNote &>(this->getController()); }
+       /// parent controller
+       ControlNote const & controller() const
+       { return static_cast<ControlNote const &>(this->getController()); }
 private:
        ///  Apply changes
        virtual void apply();
@@ -59,4 +64,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QNOTE_H
+#endif // GUINOTE_H
index a3bc70cf7186281b18c5d08f3339eb709ba032a6..a3fad0e7b1223dff989dde0654991f7314fce33b 100644 (file)
@@ -60,7 +60,7 @@ QString generateStringSignature(QString const & str, Font const & f)
 
 } // anon namespace
 
-QLPainter::QLPainter(QPaintDevice * device)
+GuiPainter::GuiPainter(QPaintDevice * device)
        : QPainter(device), Painter()
 {
        // new QPainter has default QPen:
@@ -70,14 +70,14 @@ QLPainter::QLPainter(QPaintDevice * device)
 }
 
 
-QLPainter::~QLPainter()
+GuiPainter::~GuiPainter()
 {
        QPainter::end();
-       //lyxerr << "QLPainter::end()" << endl;
+       //lyxerr << "GuiPainter::end()" << endl;
 }
 
 
-void QLPainter::setQPainterPen(Color_color col,
+void GuiPainter::setQPainterPen(Color_color col,
        Painter::line_style ls, Painter::line_width lw)
 {
        if (col == current_color_ && ls == current_ls_ && lw == current_lw_)
@@ -105,7 +105,7 @@ void QLPainter::setQPainterPen(Color_color col,
 }
 
 
-void QLPainter::point(int x, int y, Color_color col)
+void GuiPainter::point(int x, int y, Color_color col)
 {
        if (!isDrawingEnabled())
                return;
@@ -115,7 +115,7 @@ void QLPainter::point(int x, int y, Color_color col)
 }
 
 
-void QLPainter::line(int x1, int y1, int x2, int y2,
+void GuiPainter::line(int x1, int y1, int x2, int y2,
        Color_color col,
        line_style ls,
        line_width lw)
@@ -132,7 +132,7 @@ void QLPainter::line(int x1, int y1, int x2, int y2,
 }
 
 
-void QLPainter::lines(int const * xp, int const * yp, int np,
+void GuiPainter::lines(int const * xp, int const * yp, int np,
        Color_color col,
        line_style ls,
        line_width lw)
@@ -160,7 +160,7 @@ void QLPainter::lines(int const * xp, int const * yp, int np,
 }
 
 
-void QLPainter::rectangle(int x, int y, int w, int h,
+void GuiPainter::rectangle(int x, int y, int w, int h,
        Color_color col,
        line_style ls,
        line_width lw)
@@ -173,13 +173,13 @@ void QLPainter::rectangle(int x, int y, int w, int h,
 }
 
 
-void QLPainter::fillRectangle(int x, int y, int w, int h, Color_color col)
+void GuiPainter::fillRectangle(int x, int y, int w, int h, Color_color col)
 {
        fillRect(x, y, w, h, guiApp->colorCache().get(col));
 }
 
 
-void QLPainter::arc(int x, int y, unsigned int w, unsigned int h,
+void GuiPainter::arc(int x, int y, unsigned int w, unsigned int h,
        int a1, int a2, Color_color col)
 {
        if (!isDrawingEnabled())
@@ -194,10 +194,10 @@ void QLPainter::arc(int x, int y, unsigned int w, unsigned int h,
 }
 
 
-void QLPainter::image(int x, int y, int w, int h, graphics::Image const & i)
+void GuiPainter::image(int x, int y, int w, int h, graphics::Image const & i)
 {
-       graphics::QLImage const & qlimage =
-               static_cast<graphics::QLImage const &>(i);
+       graphics::GuiImage const & qlimage =
+               static_cast<graphics::GuiImage const &>(i);
 
        fillRectangle(x, y, w, h, Color::graphicsbg);
 
@@ -208,14 +208,14 @@ void QLPainter::image(int x, int y, int w, int h, graphics::Image const & i)
 }
 
 
-int QLPainter::text(int x, int y, char_type c, Font const & f)
+int GuiPainter::text(int x, int y, char_type c, Font const & f)
 {
        docstring s(1, c);
        return text(x, y, s, f);
 }
 
 
-int QLPainter::smallCapsText(int x, int y,
+int GuiPainter::smallCapsText(int x, int y,
        QString const & s, Font const & f)
 {
        Font smallfont(f);
@@ -242,7 +242,7 @@ int QLPainter::smallCapsText(int x, int y,
 }
 
 
-int QLPainter::text(int x, int y, docstring const & s,
+int GuiPainter::text(int x, int y, docstring const & s,
                Font const & f)
 {
        /* Caution: The following ucs4 to QString conversions work for symbol fonts
@@ -339,7 +339,7 @@ int QLPainter::text(int x, int y, docstring const & s,
                int const h = mA + mD;
                pm = QPixmap(w, h);
                pm.fill(Qt::transparent);
-               QLPainter p(&pm);
+               GuiPainter p(&pm);
                p.setQPainterPen(f.realColor());
                if (p.font() != fi.font)
                        p.setFont(fi.font);
index 39c50a27246e827d294773c3efa3acb358fe5cd9..2f47d616af07411e0bd4e41332d797e729d53753 100644 (file)
@@ -10,8 +10,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLPAINTER_H
-#define QLPAINTER_H
+#ifndef GUIPAINTER_H
+#define GUIPAINTER_H
 
 #include "frontends/Painter.h"
 
@@ -28,12 +28,12 @@ class Font;
 namespace frontend {
 
 /**
- * QLPainter - a painter implementation for Qt4
+ * GuiPainter - a painter implementation for Qt4
  */
-class QLPainter : public QPainter, public Painter {
+class GuiPainter : public QPainter, public Painter {
 public:
-       QLPainter(QPaintDevice *);
-       virtual ~QLPainter();
+       GuiPainter(QPaintDevice *);
+       virtual ~GuiPainter();
 
        /// draw a line from point to point
        virtual void line(
@@ -116,4 +116,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QLPAINTER_H
+#endif // GUIPAINTER_H
index e7f750981e447ea328dc009e63d9789d34bf4d5a..4a6c3d3bc30d223ffe6d2e859a3e65ba75f3189b 100644 (file)
 #include "debug.h"
 #include "ParagraphParameters.h"
 #include "Spacing.h"
-
-#include "controllers/ControlParagraph.h"
-#include "controllers/frontend_helpers.h"
+#include "frontend_helpers.h"
 
 #include <QCheckBox>
+#include <QCloseEvent>
 #include <QLineEdit>
 #include <QPushButton>
 
@@ -163,12 +162,9 @@ LyXAlignment GuiParagraphDialog::getAlignmentFromDialog()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlParagraph, GuiView<GuiParagraphDialog> >
-       ParagraphBase;
-
 
 GuiParagraph::GuiParagraph(Dialog & parent)
-       : ParagraphBase(parent, _("Paragraph Settings"))
+       : GuiView<GuiParagraphDialog>(parent, _("Paragraph Settings"))
 {}
 
 
index 133437d4ed051d0e09f4d237b7d170ccdaddf58a..746f7cc276f883aecbcb285da436439cdd5cd498 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QPARAGRAPH_H
-#define QPARAGRAPH_H
+#ifndef GUIPARAGRAPH_H
+#define GUIPARAGRAPH_H
 
 #include "GuiDialogView.h"
-
+#include "ControlParagraph.h"
 #include "Layout.h"
 #include "ui_ParagraphUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 #include <map>
 
@@ -55,15 +54,18 @@ protected Q_SLOTS:
 };
 
 
-class ControlParagraph;
-
-class GuiParagraph
-       : public QController<ControlParagraph, GuiView<GuiParagraphDialog> >
+class GuiParagraph : public GuiView<GuiParagraphDialog>
 {
 public:
        friend class GuiParagraphDialog;
 
        GuiParagraph(Dialog &);
+       /// parent controller
+       ControlParagraph & controller()
+       { return static_cast<ControlParagraph &>(this->getController()); }
+       /// parent controller
+       ControlParagraph const & controller() const
+       { return static_cast<ControlParagraph const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
index 903e3c4628e6762b152ebc916c606ea5a3bc9348..a454b105d7c251b54d0ca7a86e82a1b5e9c490d4 100644 (file)
@@ -9,8 +9,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLPOPUPMENU_H
-#define QLPOPUPMENU_H
+#ifndef GUIPOPUPMENU_H
+#define GUIPOPUPMENU_H
 
 #include <QMenu>
 
@@ -23,11 +23,13 @@ namespace frontend {
 class GuiMenubar;
 
 /// a submenu
-class GuiPopupMenu : public QMenu {
+class GuiPopupMenu : public QMenu
+{
        Q_OBJECT
 public:
-
-       GuiPopupMenu(GuiMenubar * owner, MenuItem const & mi, bool topLevelMenu=false);
+       ///
+       GuiPopupMenu(GuiMenubar * owner, MenuItem const & mi,
+               bool topLevelMenu = false);
 
        /// populates the menu or one of its submenu
        /// This is used as a recursive function
@@ -37,21 +39,16 @@ public Q_SLOTS:
        /// populate the toplevel menu and all children
        void update();
 
-private:
-
-       /// our owning menubar
-       GuiMenubar * owner_;
-
-       /// the name of this menu
-       docstring name_;
-
 private:
        /// Get a Menu item label from the menu backend
        docstring const getLabel(MenuItem const & mi);
-
        /// add binding keys a the menu item label.
        void addBinding(docstring & label, MenuItem const & mi);
 
+       /// our owning menubar
+       GuiMenubar * owner_;
+       /// the name of this menu
+       docstring name_;
        /// Top Level Menu
        Menu topLevelMenu_;
 };
@@ -59,4 +56,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QLPOPUPMENU_H
+#endif // GUIPOPUPMENU_H
index 54f4ba400c964ecea276a11e7e3903aabe4a8113..78dc1c64af37f6da788b73e499c9accfd9560af7 100644 (file)
@@ -2015,10 +2015,9 @@ void GuiPrefsDialog::updateRc(LyXRC const & rc)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlPrefs, GuiView<GuiPrefsDialog> > PrefsBase;
 
 GuiPrefs::GuiPrefs(Dialog & parent)
-       : PrefsBase(parent, _("Preferences"))
+       : GuiView<GuiPrefsDialog>(parent, _("Preferences"))
 {
 }
 
index cdb41155c88a5502f915a581208a8447db6585ff..00dd244292e323831ff85f23e5cf34f0c5fa6c42 100644 (file)
@@ -9,21 +9,16 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QPREFS_H
-#define QPREFS_H
+#ifndef GUIPREFS_H
+#define GUIPREFS_H
 
 #include "GuiDialogView.h"
-
+#include "ControlPrefs.h"
 #include "Color.h"
 #include "LyXRC.h"
 
 #include "ui_PrefsUi.h"
 
-#include <vector>
-
-#include <QDialog>
-#include <QCloseEvent>
-
 #include "ui_PrefPlaintextUi.h"
 #include "ui_PrefDateUi.h"
 #include "ui_PrefKeyboardUi.h"
 #include "ui_PrefUi.h"
 #include "ui_PrefIdentityUi.h"
 
+#include <QDialog>
+
+#include <vector>
+
 namespace lyx {
 
 class Converters;
@@ -371,10 +370,7 @@ private:
 };
 
 
-class ControlPrefs;
-
-class GuiPrefs
-       : public QController<ControlPrefs, GuiView<GuiPrefsDialog> >
+class GuiPrefs : public GuiView<GuiPrefsDialog>
 {
 public:
        GuiPrefs(Dialog &);
@@ -382,7 +378,12 @@ public:
        Converters & converters();
        Formats & formats();
        Movers & movers();
-
+       /// parent controller
+       ControlPrefs & controller()
+       { return static_cast<ControlPrefs &>(this->getController()); }
+       /// parent controller
+       ControlPrefs const & controller() const
+       { return static_cast<ControlPrefs const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -398,4 +399,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QPREFS_H
+#endif // GUIPREFS_H
index 302b0b73a0178c1861110536cd858abaede72cd2..7aea586cce9d7bd51342a5be215f7157347bf2bc 100644 (file)
 #include <config.h>
 
 #include "GuiPrint.h"
-#include "GuiPrintDialog.h"
 #include "Qt2BC.h"
 #include "qt_helpers.h"
 
 #include "PrinterParams.h"
 
-#include "controllers/ControlPrint.h"
-
 #include "support/os.h"
 
 #include <QLineEdit>
 #include <QSpinBox>
 #include <QPushButton>
 
-using lyx::support::os::internal_path;
-
 namespace lyx {
 namespace frontend {
 
-typedef QController<ControlPrint, GuiView<GuiPrintDialog> > print_base_class;
+GuiPrintDialog::GuiPrintDialog(GuiPrint * f)
+       : form_(f)
+{
+       setupUi(this);
+
+       connect(printPB, SIGNAL(clicked()), form_, SLOT(slotOK()));
+       connect(closePB, SIGNAL(clicked()), form_, SLOT(slotClose()));
+
+       connect(copiesSB, SIGNAL(valueChanged(int)), this, SLOT(copiesChanged(int)));
+       connect(printerED, SIGNAL(textChanged(const QString&)),
+               this, SLOT(printerChanged()));
+       connect(fileED, SIGNAL(textChanged(const QString&)),
+               this, SLOT(fileChanged() ));
+       connect(browsePB, SIGNAL(clicked()), this, SLOT(browseClicked()));
+       connect(allRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+       connect(reverseCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+       connect(collateCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+       connect(fromED, SIGNAL(textChanged(const QString&)),
+               this, SLOT(pagerangeChanged()));
+       connect(fromED, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_adaptor()));
+       connect(toED, SIGNAL(textChanged(const QString&)),
+               this, SLOT(pagerangeChanged()));
+       connect(toED, SIGNAL(textChanged(const QString&)),
+               this, SLOT(change_adaptor()));
+       connect(fileRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+       connect(printerRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
+       connect(rangeRB, SIGNAL(toggled(bool)), fromED, SLOT(setEnabled(bool)));
+       connect(rangeRB, SIGNAL(toggled(bool)), toED, SLOT(setEnabled(bool)));
+}
+
+
+void GuiPrintDialog::change_adaptor()
+{
+       form_->changed();
+}
+
+
+void GuiPrintDialog::browseClicked()
+{
+       QString file = toqstr(form_->controller().browse(docstring()));
+       if (!file.isNull()) {
+               fileED->setText(file);
+               form_->changed();
+       }
+}
+
+
+void GuiPrintDialog::fileChanged()
+{
+       if (!fileED->text().isEmpty())
+               fileRB->setChecked(true);
+       form_->changed();
+}
+
+
+void GuiPrintDialog::copiesChanged(int i)
+{
+       collateCB->setEnabled(i != 1);
+       form_->changed();
+}
+
+
+void GuiPrintDialog::printerChanged()
+{
+       printerRB->setChecked(true);
+       form_->changed();
+}
+
+
+void GuiPrintDialog::pagerangeChanged()
+{
+       form_->changed();
+}
 
 
 GuiPrint::GuiPrint(Dialog & parent)
-       : print_base_class(parent, _("Print Document"))
+       : GuiView<GuiPrintDialog>(parent, _("Print Document"))
 {
 }
 
@@ -98,7 +166,7 @@ void GuiPrint::apply()
 
        PrinterParams const pp(t,
                fromqstr(dialog_->printerED->text()),
-               internal_path(fromqstr(dialog_->fileED->text())),
+               support::os::internal_path(fromqstr(dialog_->fileED->text())),
                dialog_->allRB->isChecked(),
                dialog_->fromED->text().toUInt(),
                dialog_->toED->text().toUInt(),
@@ -113,3 +181,5 @@ void GuiPrint::apply()
 
 } // namespace frontend
 } // namespace lyx
+
+#include "GuiPrint_moc.cpp"
index dc1a87d814768d87f26f7ed14bfd3c9e7ebe7423..b8f8c15d8b552775ecaf771d21eb0d5c7bdd96dd 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QPRINT_H
-#define QPRINT_H
+#ifndef GUIPRINT_H
+#define GUIPRINT_H
 
 #include "GuiDialogView.h"
-#include "GuiPrintDialog.h"
+#include "ControlPrint.h"
+#include "ui_PrintUi.h"
+
+#include <QDialog>
 
 namespace lyx {
 namespace frontend {
 
-class ControlPrint;
+class GuiPrint;
+
+class GuiPrintDialog : public QDialog, public Ui::PrintUi {
+       Q_OBJECT
+public:
+       GuiPrintDialog(GuiPrint * f);
+protected Q_SLOTS:
+       virtual void change_adaptor();
+       virtual void browseClicked();
+       virtual void fileChanged();
+       virtual void copiesChanged(int);
+       virtual void printerChanged();
+       virtual void pagerangeChanged();
+private:
+       GuiPrint * form_;
+};
+
 
-///
-class GuiPrint
-       : public QController<ControlPrint, GuiView<GuiPrintDialog> >
+class GuiPrint : public GuiView<GuiPrintDialog>
 {
 public:
        ///
        friend class GuiPrintDialog;
        ///
        GuiPrint(Dialog &);
+       /// parent controller
+       ControlPrint & controller()
+       { return static_cast<ControlPrint &>(this->getController()); }
+       /// parent controller
+       ControlPrint const & controller() const
+       { return static_cast<ControlPrint const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -42,4 +65,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QPRINT_H
+#endif // GUIPRINT_H
diff --git a/src/frontends/qt4/GuiPrintDialog.cpp b/src/frontends/qt4/GuiPrintDialog.cpp
deleted file mode 100644 (file)
index c14867a..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * \file GuiPrintDialog.cpp
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "controllers/ControlPrint.h"
-#include "GuiPrintDialog.h"
-#include "GuiPrint.h"
-#include "qt_helpers.h"
-
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-
-namespace lyx {
-namespace frontend {
-
-GuiPrintDialog::GuiPrintDialog(GuiPrint * f)
-       : form_(f)
-{
-       setupUi(this);
-
-       connect(printPB, SIGNAL(clicked()), form_, SLOT(slotOK()));
-       connect(closePB, SIGNAL(clicked()), form_, SLOT(slotClose()));
-
-       connect(copiesSB, SIGNAL(valueChanged(int)), this, SLOT(copiesChanged(int)));
-       connect(printerED, SIGNAL(textChanged(const QString&)),
-               this, SLOT(printerChanged()));
-       connect(fileED, SIGNAL(textChanged(const QString&)),
-               this, SLOT(fileChanged() ));
-       connect(browsePB, SIGNAL(clicked()), this, SLOT(browseClicked()));
-       connect(allRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(reverseCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(collateCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(fromED, SIGNAL(textChanged(const QString&)),
-               this, SLOT(pagerangeChanged()));
-       connect(fromED, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_adaptor()));
-       connect(toED, SIGNAL(textChanged(const QString&)),
-               this, SLOT(pagerangeChanged()));
-       connect(toED, SIGNAL(textChanged(const QString&)),
-               this, SLOT(change_adaptor()));
-       connect(fileRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(printerRB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
-       connect(rangeRB, SIGNAL(toggled(bool)), fromED, SLOT(setEnabled(bool)));
-       connect(rangeRB, SIGNAL(toggled(bool)), toED, SLOT(setEnabled(bool)));
-}
-
-
-void GuiPrintDialog::change_adaptor()
-{
-       form_->changed();
-}
-
-
-void GuiPrintDialog::browseClicked()
-{
-       QString file = toqstr(form_->controller().browse(docstring()));
-       if (!file.isNull()) {
-               fileED->setText(file);
-               form_->changed();
-       }
-}
-
-
-void GuiPrintDialog::fileChanged()
-{
-       if (!fileED->text().isEmpty())
-               fileRB->setChecked(true);
-       form_->changed();
-}
-
-
-void GuiPrintDialog::copiesChanged(int i)
-{
-       collateCB->setEnabled(i != 1);
-       form_->changed();
-}
-
-
-void GuiPrintDialog::printerChanged()
-{
-       printerRB->setChecked(true);
-       form_->changed();
-}
-
-
-void GuiPrintDialog::pagerangeChanged()
-{
-       form_->changed();
-}
-
-} // namespace frontend
-} // namespace lyx
-
-#include "GuiPrintDialog_moc.cpp"
diff --git a/src/frontends/qt4/GuiPrintDialog.h b/src/frontends/qt4/GuiPrintDialog.h
deleted file mode 100644 (file)
index aef630b..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// -*- C++ -*-
-/**
- * \file GuiPrintDialog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Edwin Leuven
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QLPRINTDIALOG_H
-#define QLPRINTDIALOG_H
-
-#include "ui_PrintUi.h"
-
-#include <QDialog>
-
-namespace lyx {
-namespace frontend {
-
-class GuiPrint;
-
-class GuiPrintDialog : public QDialog, public Ui::PrintUi {
-       Q_OBJECT
-public:
-       GuiPrintDialog(GuiPrint * f);
-protected Q_SLOTS:
-       virtual void change_adaptor();
-       virtual void browseClicked();
-       virtual void fileChanged();
-       virtual void copiesChanged(int);
-       virtual void printerChanged();
-       virtual void pagerangeChanged();
-private:
-       GuiPrint * form_;
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // QLPRINTDIALOG_H
index 011e28f39e670bdfdfd8663c4773eddf60b0a730..b268a3f478c71d1573bf5893a0609bc0bb3fa428 100644 (file)
@@ -15,8 +15,7 @@
 #include "Qt2BC.h"
 #include "qt_helpers.h"
 
-#include "controllers/ButtonController.h"
-#include "controllers/ControlRef.h"
+#include "ButtonController.h"
 
 #include "insets/InsetRef.h"
 
@@ -181,12 +180,9 @@ void GuiRefDialog::closeEvent(QCloseEvent * e)
 //
 /////////////////////////////////////////////////////////////////////
 
-// full qualification because qt4 has also a ControlRef type
-typedef QController<lyx::frontend::ControlRef, GuiView<GuiRefDialog> > RefBase;
-
 
 GuiRef::GuiRef(Dialog & parent)
-       : RefBase(parent, _("Cross-reference")),
+       : GuiView<GuiRefDialog>(parent, _("Cross-reference")),
        sort_(false), at_ref_(false)
 {
 }
index 63773beadab5c0f144792f1e84b413f5711b6eb3..81288a9cb32b9831f94a6cdce4e0646092765e7f 100644 (file)
@@ -9,11 +9,11 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QREF_H
-#define QREF_H
+#ifndef GUIREF_H
+#define GUIREF_H
 
 #include "GuiDialogView.h"
-
+#include "ControlRef.h"
 #include "ui_RefUi.h"
 
 #include <QDialog>
@@ -21,7 +21,6 @@
 #include <vector>
 
 class QListWidgetItem;
-class QCloseEvent;
 
 namespace lyx {
 namespace frontend {
@@ -53,17 +52,19 @@ private:
 };
 
 
-class ControlRef;
-
-// full qualification because qt4 has also a ControlRef type
-class GuiRef
-       : public QController<lyx::frontend::ControlRef, GuiView<GuiRefDialog> >
+class GuiRef : public GuiView<GuiRefDialog>
 {
 public:
        friend class GuiRefDialog;
 
        GuiRef(Dialog &);
 
+       /// parent controller
+       ControlRef & controller()
+       { return static_cast<ControlRef &>(this->getController()); }
+       /// parent controller
+       ControlRef const & controller() const
+       { return static_cast<ControlRef const &>(this->getController()); }
 protected:
        virtual bool isValid();
 
@@ -77,37 +78,27 @@ private:
 
        /// is name allowed for this ?
        bool nameAllowed();
-
        /// is type allowed for this ?
        bool typeAllowed();
-
        /// go to current reference
        void gotoRef();
-
        /// set go back button
        void setGoBack();
-
        /// set goto ref button
        void setGotoRef();
-
        /// re-enter references
        void redoRefs();
-
        /// update references
        void updateRefs();
 
        /// sort or not persistent state
        bool sort_;
-
        /// went to a reference ?
        bool at_ref_;
-
        /// the last reference entered or examined
        QString last_reference_;
-
        /// store the buffer settings
        int restored_buffer_;
-
        /// the references
        std::vector<docstring> refs_;
 };
@@ -115,4 +106,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QREF_H
+#endif // GUIREF_H
index 0c711d923cfd711db2d4f27b00d55216277a4231..f936472384709a40ca61d560a098945ea20376a4 100644 (file)
@@ -15,8 +15,6 @@
 #include "qt_helpers.h"
 #include "Qt2BC.h"
 
-#include "controllers/ControlSearch.h"
-
 #include <QLineEdit>
 #include <QCloseEvent>
 
@@ -132,11 +130,8 @@ void GuiSearchDialog::replaceallClicked()
 /////////////////////////////////////////////////////////////////////
 
 
-typedef QController<ControlSearch, GuiView<GuiSearchDialog> > SearchBase;
-
-
 GuiSearch::GuiSearch(Dialog & parent)
-       : SearchBase(parent, _("Find and Replace"))
+       : GuiView<GuiSearchDialog>(parent, _("Find and Replace"))
 {
 }
 
index c3267345a93ec9e73300bf26eb291e28ad60ab43..a022a66bba611e5c90c1b898a0acac7e7f4c4dca 100644 (file)
@@ -9,11 +9,13 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QSEARCH_H
-#define QSEARCH_H
+#ifndef GUISEARCH_H
+#define GUISEARCH_H
 
 #include "GuiDialogView.h"
+#include "ControlSearch.h"
 #include "ui_SearchUi.h"
+
 #include <string>
 
 #include <QDialog>
@@ -21,8 +23,6 @@
 namespace lyx {
 namespace frontend {
 
-class ControlSearch;
-
 class GuiSearch;
 
 class GuiSearchDialog : public QDialog, public Ui::SearchUi {
@@ -40,21 +40,23 @@ protected:
        virtual void closeEvent(QCloseEvent * e);
 
 private:
-       // add a string to the combo if needed
-       void remember(std::string const & find, QComboBox & combo);
-
        GuiSearch * form_;
 };
 
 
-class GuiSearch
-       : public QController<ControlSearch, GuiView<GuiSearchDialog> >
+class GuiSearch : public GuiView<GuiSearchDialog>
 {
 public:
        ///
        friend class GuiSearchDialog;
        ///
        GuiSearch(Dialog &);
+       /// parent controller
+       ControlSearch & controller()
+       { return static_cast<ControlSearch &>(this->getController()); }
+       /// parent controller
+       ControlSearch const & controller() const
+       { return static_cast<ControlSearch const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply() {}
@@ -74,4 +76,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QSEARCH_H
+#endif // GUISEARCH_H
index 72de66bb7f1988ab72de207dcb9b23eaaad0ffa7..3015fd8a0095a5d06a7af28d76286bcec2798352 100644 (file)
@@ -16,8 +16,6 @@
 
 #include "Format.h"
 
-#include "controllers/ControlSendto.h"
-
 #include <QListWidget>
 #include <QPushButton>
 #include <QCloseEvent>
@@ -77,11 +75,9 @@ void GuiSendtoDialog::closeEvent(QCloseEvent * e)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlSendto, GuiView<GuiSendtoDialog> > SendtoBase;
-
 
 GuiSendto::GuiSendto(Dialog & parent)
-       : SendtoBase(parent, _("Send Document to Command"))
+       : GuiView<GuiSendtoDialog>(parent, _("Send Document to Command"))
 {
 }
 
index 4e4f3ba670a1f01375846b20544abf356b4bceda..efdd78b41f25f4929b83b5baff1d88910635395c 100644 (file)
@@ -9,17 +9,17 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QSENDTO_H
-#define QSENDTO_H
+#ifndef GUISENDTO_H
+#define GUISENDTO_H
 
 #include "GuiDialogView.h"
+#include "ControlSendto.h"
 #include "ui_SendtoUi.h"
 
 #include <QDialog>
 
 #include <vector>
 
-class QCloseEvent;
 class QListWidgetItem;
 
 namespace lyx {
@@ -45,18 +45,21 @@ private:
 };
 
 
-class ControlSendto;
-
 /** This class provides a Qt implementation of the Custom Export Dialog.
  */
-class GuiSendto
-       : public QController<ControlSendto, GuiView<GuiSendtoDialog> >
+class GuiSendto : public GuiView<GuiSendtoDialog>
 {
 public:
        ///
        friend class GuiSendtoDialog;
        ///
        GuiSendto(Dialog &);
+       /// parent controller
+       ControlSendto & controller()
+       { return static_cast<ControlSendto &>(this->getController()); }
+       /// parent controller
+       ControlSendto const & controller() const
+       { return static_cast<ControlSendto const &>(this->getController()); }
 protected:
        virtual bool isValid();
 private:
@@ -73,4 +76,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QSENDTO_H
+#endif // GUISENDTO_H
index 4de8c4e732d7393cad79bf7c3e8e3714c04430f7..306b3efd5fe8513c3dda44a6cfc3fbadc2c541eb 100644 (file)
 #include "Qt2BC.h"
 #include "qt_helpers.h"
 
-#include "controllers/ControlShowFile.h"
-
 #include <QTextBrowser>
 #include <QPushButton>
+#include <QCloseEvent>
 
 namespace lyx {
 namespace frontend {
@@ -49,12 +48,9 @@ void GuiShowFileDialog::closeEvent(QCloseEvent * e)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlShowFile, GuiView<GuiShowFileDialog> >
-       ShowFileBase;
-
 
 GuiShowFile::GuiShowFile(Dialog & parent)
-       : ShowFileBase(parent, _("Show File"))
+       : GuiView<GuiShowFileDialog>(parent, _("Show File"))
 {
 }
 
index 3c43cd99139664f5e2f62354f4954c4f45eb72a4..0c72c164288ec8924b50a97b3f789b2110cc5374 100644 (file)
 #define QSHOWFILE_H
 
 #include "GuiDialogView.h"
-
+#include "ControlShowFile.h"
 #include "ui_ShowFileUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
+
 
 namespace lyx {
 namespace frontend {
 
 class GuiShowFile;
 
-class GuiShowFileDialog : public QDialog, public Ui::ShowFileUi {
+class GuiShowFileDialog : public QDialog, public Ui::ShowFileUi
+{
        Q_OBJECT
 public:
        GuiShowFileDialog(GuiShowFile * form);
@@ -35,15 +36,18 @@ private:
 };
 
 
-class ControlShowFile;
-
-class GuiShowFile
-       : public QController<ControlShowFile, GuiView<GuiShowFileDialog> >
+class GuiShowFile : public GuiView<GuiShowFileDialog>
 {
 public:
        friend class GuiShowFileDialog;
 
        GuiShowFile(Dialog &);
+       /// parent controller
+       ControlShowFile & controller()
+       { return static_cast<ControlShowFile &>(this->getController()); }
+       /// parent controller
+       ControlShowFile const & controller() const
+       { return static_cast<ControlShowFile const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply() {}
index 356b0becb4e624e28dd787b2471c96981fc230b9..15756d51c7a6de18dc372d578b0b29a13812207f 100644 (file)
@@ -14,8 +14,6 @@
 #include "Qt2BC.h"
 #include "qt_helpers.h"
 
-#include "controllers/ControlSpellchecker.h"
-
 #include <QProgressBar>
 #include <QLineEdit>
 #include <QPushButton>
@@ -128,11 +126,9 @@ void GuiSpellcheckerDialog::reject()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlSpellchecker, GuiView<GuiSpellcheckerDialog> >
-       SpellcheckerBase;
 
 GuiSpellchecker::GuiSpellchecker(Dialog & parent)
-       : SpellcheckerBase(parent, _("Spellchecker"))
+       : GuiView<GuiSpellcheckerDialog>(parent, _("Spellchecker"))
 {}
 
 
index d7c8023a300e7a1fab4e608902cc4ec55ab04ce4..9c4a9258b5e55c65c0f1e2f10baebef32da0ac51 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QSPELLCHECKER_H
-#define QSPELLCHECKER_H
+#ifndef GUISPELLCHECKER_H
+#define GUISPELLCHECKER_H
 
 #include "GuiDialogView.h"
+#include "ControlSpellchecker.h"
 #include "ui_SpellcheckerUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 class QListWidgetItem;
 
+
 namespace lyx {
 namespace frontend {
 
@@ -49,10 +50,7 @@ private:
 };
 
 
-class ControlSpellchecker;
-
-class GuiSpellchecker
-       : public QController<ControlSpellchecker, GuiView<GuiSpellcheckerDialog> >
+class GuiSpellchecker : public GuiView<GuiSpellcheckerDialog>
 {
 public:
        friend class GuiSpellcheckerDialog;
@@ -61,6 +59,12 @@ public:
 
        /// update from controller
        void partialUpdate(int id);
+       /// parent controller
+       ControlSpellchecker & controller()
+       { return static_cast<ControlSpellchecker &>(this->getController()); }
+       /// parent controller
+       ControlSpellchecker const & controller() const
+       { return static_cast<ControlSpellchecker const &>(this->getController()); }
 private:
        void accept();
        void add();
@@ -78,4 +82,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QSPELLCHECKER_H
+#endif // GUISPELLCHECKER_H
index 3f48f43dca648337fef0d663cb0f73b1e75ab00e..bb15b3a1a0eba19bf8c2627af85eab9bef31572a 100644 (file)
 
 #include <config.h>
 
-#include "CheckedLineEdit.h"
 #include "GuiTabular.h"
+
+#include "CheckedLineEdit.h"
+#include "GuiSetBorder.h"
 #include "Qt2BC.h"
 
 #include "LengthCombo.h"
@@ -21,7 +23,6 @@
 #include "qt_helpers.h"
 
 #include "controllers/ButtonController.h"
-#include "controllers/ControlTabular.h"
 
 #include "support/convert.h"
 
@@ -31,8 +32,6 @@
 #include <QRadioButton>
 #include <QLineEdit>
 
-#include "GuiSetBorder.h"
-
 using std::string;
 
 namespace lyx {
@@ -517,10 +516,9 @@ void GuiTabularDialog::ltLastFooterEmpty_clicked()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlTabular, GuiView<GuiTabularDialog> > tabular_base_class;
 
 GuiTabular::GuiTabular(Dialog & parent)
-       : tabular_base_class(parent, _("Table Settings"))
+       : GuiView<GuiTabularDialog>(parent, _("Table Settings"))
 {
 }
 
index 79913f07acff98facbb4df9a30e25eab416fb6ad..d9bcc9abe25d429ce51be56e4a4e14135f6f875c 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QTABULAR_H
-#define QTABULAR_H
+#ifndef GUITABULAR_H
+#define GUITABULAR_H
 
 #include "GuiDialogView.h"
-
+#include "ControlTabular.h"
 #include "ui_TabularUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 namespace lyx {
 namespace frontend {
 
 class GuiTabular;
 
-class GuiTabularDialog : public QDialog, public Ui::TabularUi {
+class GuiTabularDialog : public QDialog, public Ui::TabularUi
+{
        Q_OBJECT
 public:
        GuiTabularDialog(GuiTabular * form);
@@ -78,16 +78,19 @@ private:
 };
 
 
-class ControlTabular;
-
-class GuiTabular :
-       public QController<ControlTabular, GuiView<GuiTabularDialog> >
+class GuiTabular : public GuiView<GuiTabularDialog> 
 {
 public:
        friend class GuiTabularDialog;
 
        GuiTabular(Dialog &);
 
+       /// parent controller
+       ControlTabular & controller()
+       { return static_cast<ControlTabular &>(this->getController()); }
+       /// parent controller
+       ControlTabular const & controller() const
+       { return static_cast<ControlTabular const &>(this->getController()); }
 protected:
        virtual bool isValid();
 
@@ -107,4 +110,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QTABULAR_H
+#endif // GUITABULAR_H
index c521063e6ba262b96a48935cf70a1842ded81683..e98ab486fb878976b66826035d20d38e83c770d2 100644 (file)
@@ -14,8 +14,7 @@
 #include "Qt2BC.h"
 #include "EmptyTable.h"
 
-#include "controllers/ControlTabularCreate.h"
-
+#include <QCloseEvent>
 #include <QSpinBox>
 #include <QPushButton>
 
@@ -64,12 +63,9 @@ void GuiTabularCreateDialog::rowsChanged(int)
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlTabularCreate, GuiView<GuiTabularCreateDialog> >
-       TabularCreateBase;
-
 
 GuiTabularCreate::GuiTabularCreate(Dialog & parent)
-       : TabularCreateBase(parent, _("Insert Table"))
+       : GuiView<GuiTabularCreateDialog>(parent, _("Insert Table"))
 {
 }
 
index cfb761b99dfc284139764f7997c3a04b97ec05ab..474f4e42e9c7cab643cafa526fd1da90c85bcfa1 100644 (file)
@@ -9,10 +9,11 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QTABULARCREATE_H
-#define QTABULARCREATE_H
+#ifndef GUITABULARCREATE_H
+#define GUITABULARCREATE_H
 
 #include "GuiDialogView.h"
+#include "ControlTabularCreate.h"
 #include "ui_TabularCreateUi.h"
 
 #include <QDialog>
@@ -22,7 +23,8 @@ namespace frontend {
 
 class GuiTabularCreate;
 
-class GuiTabularCreateDialog : public QDialog, public Ui::TabularCreateUi {
+class GuiTabularCreateDialog : public QDialog, public Ui::TabularCreateUi
+{
        Q_OBJECT
 public:
        GuiTabularCreateDialog(GuiTabularCreate * form);
@@ -34,16 +36,19 @@ private:
 };
 
 
-class ControlTabularCreate;
-
-class GuiTabularCreate
-       : public QController<ControlTabularCreate, GuiView<GuiTabularCreateDialog> >
+class GuiTabularCreate : public GuiView<GuiTabularCreateDialog>
 {
 public:
        ///
        friend class GuiTabularCreateDialog;
        ///
        GuiTabularCreate(Dialog &);
+       /// parent controller
+       ControlTabularCreate & controller()
+       { return static_cast<ControlTabularCreate &>(this->getController()); }
+       /// parent controller
+       ControlTabularCreate const & controller() const
+       { return static_cast<ControlTabularCreate const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -56,4 +61,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QTABULARCREATE_H
+#endif // GUITABULARCREATE_H
index 8070013bd2483d13623658891687c74cdfdd8582..c9eea0043480eb000f7aa41e36c638dfe7d1ccae 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "support/filetools.h"
 
+#include <QCloseEvent>
 #include <QCheckBox>
 #include <QListWidget>
 #include <QPushButton>
@@ -114,18 +115,15 @@ void GuiTexinfoDialog::enableViewPB()
 }
 
 
-
 /////////////////////////////////////////////////////////////////////
 //
 // GuiTexinfo
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlTexinfo, GuiView<GuiTexinfoDialog> >
-       texinfo_base_class;
 
 GuiTexinfo::GuiTexinfo(Dialog & parent)
-       : texinfo_base_class(parent, _("TeX Information")),
+       : GuiView<GuiTexinfoDialog>(parent, _("TeX Information")),
          warningPosted(false), activeStyle(ControlTexinfo::cls)
 {
 }
index a021d108c0c92e40585c85e356984866813575a5..6e840d1f4455d557a4b8c6d57087e72ace813a7e 100644 (file)
 #define QTEXINFO_H
 
 #include "GuiDialogView.h"
-
 #include "ControlTexinfo.h"
 #include "ui_TexinfoUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 #include <map>
 #include <vector>
@@ -28,7 +26,8 @@ namespace frontend {
 
 class GuiTexinfo;
 
-class GuiTexinfoDialog : public QDialog, public Ui::TexinfoUi {
+class GuiTexinfoDialog : public QDialog, public Ui::TexinfoUi
+{
        Q_OBJECT
 public:
        GuiTexinfoDialog(GuiTexinfo * form);
@@ -47,13 +46,19 @@ private:
 
 
 ///
-class GuiTexinfo
-        : public QController<ControlTexinfo, GuiView<GuiTexinfoDialog> > {
+class GuiTexinfo : public GuiView<GuiTexinfoDialog>
+{
 public:
        ///
        friend class GuiTexinfoDialog;
        ///
        GuiTexinfo(Dialog &);
+       /// parent controller
+       ControlTexinfo & controller()
+       { return static_cast<ControlTexinfo &>(this->getController()); }
+       /// parent controller
+       ControlTexinfo const & controller() const
+       { return static_cast<ControlTexinfo const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply() {}
index e706fa79750e2553088c3d73120554b8446a0597..dc076319f051a042e4e43bb5ff156b02128e3de9 100644 (file)
@@ -15,8 +15,7 @@
 #include "qt_helpers.h"
 #include "debug.h"
 
-#include "controllers/ControlThesaurus.h"
-
+#include <QCloseEvent>
 #include <QHeaderView>
 #include <QLineEdit>
 #include <QPushButton>
@@ -138,14 +137,12 @@ void GuiThesaurusDialog::updateLists()
 
 /////////////////////////////////////////////////////////////////////
 //
-// GuiThesuarus
+// GuiThesaurus
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlThesaurus, GuiView<GuiThesaurusDialog> > ThesaurusBase;
-
 GuiThesaurus::GuiThesaurus(Dialog & parent)
-       : ThesaurusBase(parent, _("Thesaurus"))
+       : GuiView<GuiThesaurusDialog>(parent, _("Thesaurus"))
 {
 }
 
index 57b6cadd7d3c66a0a2a5582de1ee4f2b09a08e51..cb8f48ce1b67e4b82fe0c971c866afc94d2d3b4c 100644 (file)
@@ -9,14 +9,14 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QTHESAURUS_H
-#define QTHESAURUS_H
+#ifndef GUITHESAURUS_H
+#define GUITHESAURUS_H
 
 #include "GuiDialogView.h"
+#include "ControlThesaurus.h"
 #include "ui_ThesaurusUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 
 class QTreeWidgetItem;
@@ -28,7 +28,8 @@ class ControlThesaurus;
 
 class GuiThesaurus;
 
-class GuiThesaurusDialog : public QDialog, public Ui::ThesaurusUi {
+class GuiThesaurusDialog : public QDialog, public Ui::ThesaurusUi
+{
        Q_OBJECT
 public:
        GuiThesaurusDialog(GuiThesaurus * form);
@@ -49,14 +50,19 @@ private:
 
 
 ///
-class GuiThesaurus
-       : public QController<ControlThesaurus, GuiView<GuiThesaurusDialog> >
+class GuiThesaurus : public GuiView<GuiThesaurusDialog>
 {
 public:
        ///
        friend class GuiThesaurusDialog;
        ///
        GuiThesaurus(Dialog &);
+       /// parent controller
+       ControlThesaurus & controller()
+       { return static_cast<ControlThesaurus &>(this->getController()); }
+       /// parent controller
+       ControlThesaurus const & controller() const
+       { return static_cast<ControlThesaurus const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply() {}
@@ -72,4 +78,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QTHESAURUS_H
+#endif // GUITHESAURUS_H
index 60d2cb5a649021b18c7e85510ee8e5be061c3929..7f0599bd9a9ce59839eca645e7d10665c275fdad 100644 (file)
@@ -11,8 +11,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QTOC_H
-#define QTOC_H
+#ifndef GUITOC_H
+#define GUITOC_H
 
 #include "ControlToc.h"
 
@@ -63,4 +63,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QTOC_H
+#endif // GUITOC_H
index 43fc238abb92cfbbd1b519fd31a601c08eb467cf..22fa09301414935f83e0eb58adbcdc866e4fb48f 100644 (file)
@@ -13,8 +13,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QLTOOLBAR_H
-#define QLTOOLBAR_H
+#ifndef GUITOOLBAR_H
+#define GUITOOLBAR_H
 
 #include "frontends/Toolbars.h"
 #include "Session.h"
@@ -99,4 +99,4 @@ std::string const getIcon(FuncRequest const & f, bool unknown = true);
 } // namespace frontend
 } // namespace lyx
 
-#endif // NOT QLTOOLBAR_H
+#endif // GUITOOLBAR_H
index ceb273f1f41e5e6dde372396d50783ecc1a26609..2728fa2a58e08b3610146ccfe1846e9fdb9cb180 100644 (file)
 #include <config.h>
 
 #include "GuiURLDialog.h"
-#include "UrlView.h"
+#include "Qt2BC.h"
+#include "qt_helpers.h"
+#include "ButtonController.h"
 
+#include <QCheckBox>
+#include <QCloseEvent>
 #include <QLineEdit>
 #include <QPushButton>
-#include <QCloseEvent>
+
 
 namespace lyx {
 namespace frontend {
@@ -50,6 +54,60 @@ void GuiURLDialog::closeEvent(QCloseEvent * e)
        e->accept();
 }
 
+
+
+UrlView::UrlView(Dialog & parent)
+       : GuiView<GuiURLDialog>(parent, _("URL"))
+{
+}
+
+
+void UrlView::build_dialog()
+{
+       dialog_.reset(new GuiURLDialog(this));
+
+       bcview().setOK(dialog_->okPB);
+       bcview().setCancel(dialog_->closePB);
+       bcview().addReadOnly(dialog_->urlED);
+       bcview().addReadOnly(dialog_->nameED);
+       bcview().addReadOnly(dialog_->hyperlinkCB);
+}
+
+
+void UrlView::update_contents()
+{
+       InsetCommandParams const & params = controller().params();
+
+       dialog_->urlED->setText(toqstr(params["target"]));
+       dialog_->nameED->setText(toqstr(params["name"]));
+       dialog_->hyperlinkCB->setChecked(params.getCmdName() != "url");
+
+       bc().valid(isValid());
+}
+
+
+void UrlView::apply()
+{
+       InsetCommandParams & params = controller().params();
+
+       params["target"] = qstring_to_ucs4(dialog_->urlED->text());
+       params["name"] = qstring_to_ucs4(dialog_->nameED->text());
+
+       if (dialog_->hyperlinkCB->isChecked())
+               params.setCmdName("htmlurl");
+       else
+               params.setCmdName("url");
+}
+
+
+bool UrlView::isValid()
+{
+       QString const u = dialog_->urlED->text();
+       QString const n = dialog_->nameED->text();
+
+       return !u.isEmpty() || !n.isEmpty();
+}
+
 } // namespace frontend
 } // namespace lyx
 
index 84c7cf33d0a693b3cd02d02832118f30506a010a..6c9c5ffee9963c69b3cf9263788a39de47e6ea51 100644 (file)
 #ifndef GUIURLDIALOG_H
 #define GUIURLDIALOG_H
 
+#include "GuiDialogView.h"
+#include "ControlCommand.h"
 #include "ui_URLUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 namespace lyx {
 namespace frontend {
 
 class UrlView;
 
-class GuiURLDialog : public QDialog, public Ui::URLUi {
+class GuiURLDialog : public QDialog, public Ui::URLUi
+{
        Q_OBJECT
 public:
        GuiURLDialog(UrlView * form);
@@ -34,6 +36,29 @@ private:
        UrlView * form_;
 };
 
+
+class UrlView : public GuiView<GuiURLDialog> 
+{
+public:
+       friend class QURLDialog;
+       UrlView(Dialog &);
+       /// parent controller
+       ControlCommand & controller()
+       { return static_cast<ControlCommand &>(this->getController()); }
+       /// parent controller
+       ControlCommand const & controller() const
+       { return static_cast<ControlCommand const &>(this->getController()); }
+protected:
+       virtual bool isValid();
+private:
+       /// apply dialog
+       virtual void apply();
+       /// build dialog
+       virtual void build_dialog();
+       /// update dialog
+       virtual void update_contents();
+};
+
 } // namespace frontend
 } // namespace lyx
 
index 7901590c0bd184c1f431635c2d5324f585522469..8828accd77c0aadffd8dfb63bbe03b9eb544b47a 100644 (file)
@@ -182,10 +182,8 @@ static VSpace setVSpaceFromWidgets(int spacing,
 }
 
 
-typedef QController<ControlVSpace, GuiView<GuiVSpaceDialog> > VSpaceBase;
-
 GuiVSpace::GuiVSpace(Dialog & parent)
-       : VSpaceBase(parent, _("Vertical Space Settings"))
+       : GuiView<GuiVSpaceDialog>(parent, _("Vertical Space Settings"))
 {}
 
 
index 755758a1dfb4815a4f380f156bf277eadb9ff482..9cc1f74a7a86364ff9be78faf8dda10fe0c3c0b9 100644 (file)
 #define QVSPACE_H
 
 #include "GuiDialogView.h"
-
+#include "ControlVSpace.h"
 #include "ui_VSpaceUi.h"
 
 #include <QDialog>
 
-class QCloseEvent;
-
 namespace lyx {
 namespace frontend {
 
-class ControlVSpace;
-
 class GuiVSpace;
 
-
-class GuiVSpaceDialog : public QDialog, public Ui::VSpaceUi {
+class GuiVSpaceDialog : public QDialog, public Ui::VSpaceUi
+{
        Q_OBJECT
 
 public:
@@ -48,15 +44,19 @@ private:
 };
 
 
-
-class GuiVSpace
-       : public QController<ControlVSpace, GuiView<GuiVSpaceDialog> >
+class GuiVSpace : public GuiView<GuiVSpaceDialog>
 {
 public:
        ///
        friend class GuiVSpaceDialog;
        ///
        GuiVSpace(Dialog &);
+       /// parent controller
+       ControlVSpace & controller()
+       { return static_cast<ControlVSpace &>(this->getController()); }
+       /// parent controller
+       ControlVSpace const & controller() const
+       { return static_cast<ControlVSpace const &>(this->getController()); }
 private:
        /// Build the dialog
        virtual void build_dialog();
index 10145f7e258a7cb6a0f53f20cc54fa48ad018c1e..1f3e56e76973f22bddd73dba9d8e231dd2618944 100644 (file)
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QVIEWSOURCE_H
-#define QVIEWSOURCE_H
+#ifndef GUIVIEWSOURCE_H
+#define GUIVIEWSOURCE_H
 
-#include "frontends/controllers/ControlViewSource.h"
-#include "frontends/Application.h"
+#include "ControlViewSource.h"
+#include "Application.h"
 #include "ui_ViewSourceUi.h"
 
 #include <QWidget>
@@ -43,7 +43,6 @@ private:
 };
 
 
-
 class GuiViewSource;
 
 class GuiViewSourceDialog : public QWidget, public Ui::ViewSourceUi {
@@ -81,4 +80,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QVIEWSOURCE_H
+#endif // GUIVIEWSOURCE_H
index c91362a3dd2ced3e0ae2eff0be6ef7fdc58347e2..99f0b4b712baeefea5d32d60665a148c43dfc648 100644 (file)
@@ -490,7 +490,7 @@ void GuiWorkArea::expose(int x, int y, int w, int h)
 
 void GuiWorkArea::updateScreen()
 {
-       QLPainter pain(&screen_);
+       GuiPainter pain(&screen_);
        verticalScrollBar()->show();
        buffer_view_->draw(pain);
 }
@@ -559,7 +559,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
                return;
        }
 
-       QLPainter pain(&screen_);
+       GuiPainter pain(&screen_);
        buffer_view_->updateMetrics(false);
        buffer_view_->draw(pain);
        Font font = buffer_view_->cursor().getFont();
index 88a85a25072c6b246f278f00f09eb110c9cfb155..af19e66503bc33c86f7d49b07332ecf93fb0cb01 100644 (file)
@@ -16,8 +16,6 @@
 #include "LengthCombo.h"
 #include "qt_helpers.h"
 
-#include "controllers/ControlWrap.h"
-
 #include "insets/InsetWrap.h"
 
 #include "support/convert.h"
@@ -77,10 +75,8 @@ void GuiWrapDialog::change_adaptor()
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef QController<ControlWrap, GuiView<GuiWrapDialog> > wrap_base_class;
-
 GuiWrap::GuiWrap(Dialog & parent)
-       : wrap_base_class(parent, _("Text Wrap Settings"))
+       : GuiView<GuiWrapDialog>(parent, _("Text Wrap Settings"))
 {
 }
 
index 293b26e5bfc6cb03192668a1b0a697901fcc4da5..8bdf588c86d53599508e767586720778c07aa114 100644 (file)
@@ -9,21 +9,22 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QWRAP_H
-#define QWRAP_H
+#ifndef GUIWRAP_H
+#define GUIWRAP_H
 
 #include "GuiDialogView.h"
+#include "ControlWrap.h"
 #include "ui_WrapUi.h"
 
 #include <QDialog>
-#include <QCloseEvent>
 
 namespace lyx {
 namespace frontend {
 
 class GuiWrap;
 
-class GuiWrapDialog : public QDialog, public Ui::WrapUi {
+class GuiWrapDialog : public QDialog, public Ui::WrapUi
+{
        Q_OBJECT
 public:
        GuiWrapDialog(GuiWrap * form);
@@ -36,13 +37,18 @@ private:
 };
 
 
-class ControlWrap;
-
-class GuiWrap : public QController<ControlWrap, GuiView<GuiWrapDialog> > {
+class GuiWrap : public GuiView<GuiWrapDialog>
+{
 public:
        friend class GuiWrapDialog;
 
        GuiWrap(Dialog &);
+       /// parent controller
+       ControlWrap & controller()
+       { return static_cast<ControlWrap &>(this->getController()); }
+       /// parent controller
+       ControlWrap const & controller() const
+       { return static_cast<ControlWrap const &>(this->getController()); }
 private:
        /// Apply changes
        virtual void apply();
@@ -55,4 +61,4 @@ private:
 } // namespace frontend
 } // namespace lyx
 
-#endif // QWRAP_H
+#endif // GUIWRAP_H
index 998d2eea1c3042608a73ee34e7fb815734063205..c331f7f0b862c345179c11b44a3ecdd91a46fd85 100644 (file)
@@ -66,12 +66,10 @@ SOURCEFILES = \
        GuiERT.cpp \
        GuiExternal.cpp \
        GuiFloat.cpp \
-       GuiFloatDialog.cpp \
        GuiFontExample.cpp \
        GuiFontLoader.cpp \
        GuiFontMetrics.cpp \
        GuiGraphics.cpp \
-       GuiGraphicsDialog.cpp \
        GuiImage.cpp \
        GuiImplementation.cpp \
        GuiInclude.cpp \
@@ -89,7 +87,6 @@ SOURCEFILES = \
        GuiPopupMenu.cpp \
        GuiPrefs.cpp \
        GuiPrint.cpp \
-       GuiPrintDialog.cpp \
        GuiRef.cpp \
        GuiSearch.cpp \
        GuiSelection.cpp \
@@ -120,7 +117,6 @@ SOURCEFILES = \
        socket_callback.cpp \
        TocModel.cpp \
        TocWidget.cpp \
-       UrlView.cpp \
        Validator.cpp 
 
 NOMOCHEADER = \
@@ -129,10 +125,8 @@ NOMOCHEADER = \
        GuiFontLoader.h \
        GuiFontMetrics.h \
        GuiSelection.h \
-       GuiGraphics.h \
        GuiImage.h \
        GuiPainter.h \
-       GuiPrint.h \
        Qt2BC.h \
        qt_helpers.h
 
@@ -163,10 +157,9 @@ MOCHEADER = \
        GuiErrorList.h \
        GuiERT.h \
        GuiExternal.h \
-       GuiFloatDialog.h \
        GuiFloat.h \
        GuiFontExample.h \
-       GuiGraphicsDialog.h \
+       GuiGraphics.h \
        GuiImplementation.h \
        GuiInclude.h \
        GuiIndex.h \
@@ -180,7 +173,7 @@ MOCHEADER = \
        GuiParagraph.h \
        GuiPopupMenu.h \
        GuiPrefs.h \
-       GuiPrintDialog.h \
+       GuiPrint.h \
        GuiRef.h \
        GuiSearch.h \
        GuiSelectionManager.h \
diff --git a/src/frontends/qt4/UrlView.cpp b/src/frontends/qt4/UrlView.cpp
deleted file mode 100644 (file)
index c1cab90..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * \file UrlView.cpp
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "UrlView.h"
-#include "GuiURLDialog.h"
-#include "Qt2BC.h"
-#include "qt_helpers.h"
-
-#include "controllers/ButtonController.h"
-#include "controllers/ControlCommand.h"
-
-#include <QCheckBox>
-#include <QLineEdit>
-#include <QPushButton>
-
-using std::string;
-
-namespace lyx {
-namespace frontend {
-
-typedef QController< ControlCommand, GuiView<GuiURLDialog> > urlview_base_class;
-
-UrlView::UrlView(Dialog & parent)
-       : urlview_base_class(parent, _("URL"))
-{
-}
-
-
-void UrlView::build_dialog()
-{
-       dialog_.reset(new GuiURLDialog(this));
-
-       bcview().setOK(dialog_->okPB);
-       bcview().setCancel(dialog_->closePB);
-       bcview().addReadOnly(dialog_->urlED);
-       bcview().addReadOnly(dialog_->nameED);
-       bcview().addReadOnly(dialog_->hyperlinkCB);
-}
-
-
-void UrlView::update_contents()
-{
-       InsetCommandParams const & params = controller().params();
-
-       dialog_->urlED->setText(toqstr(params["target"]));
-       dialog_->nameED->setText(toqstr(params["name"]));
-       dialog_->hyperlinkCB->setChecked(params.getCmdName() != "url");
-
-       bc().valid(isValid());
-}
-
-
-void UrlView::apply()
-{
-       InsetCommandParams & params = controller().params();
-
-       params["target"] = qstring_to_ucs4(dialog_->urlED->text());
-       params["name"] = qstring_to_ucs4(dialog_->nameED->text());
-
-       if (dialog_->hyperlinkCB->isChecked())
-               params.setCmdName("htmlurl");
-       else
-               params.setCmdName("url");
-}
-
-
-bool UrlView::isValid()
-{
-       string const u(fromqstr(dialog_->urlED->text()));
-       string const n(fromqstr(dialog_->nameED->text()));
-
-       return !u.empty() || !n.empty();
-}
-
-} // namespace frontend
-} // namespace lyx
diff --git a/src/frontends/qt4/UrlView.h b/src/frontends/qt4/UrlView.h
deleted file mode 100644 (file)
index a46ed93..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// -*- C++ -*-
-/**
- * \file UrlView.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QT4_URL_VIEW_H
-#define QT4_URL_VIEW_H
-
-#include "GuiDialogView.h"
-#include "GuiURLDialog.h"
-
-namespace lyx {
-namespace frontend {
-
-class ControlCommand;
-
-class UrlView :
-       public QController<ControlCommand, GuiView<GuiURLDialog> >
-{
-public:
-       friend class QURLDialog;
-       UrlView(Dialog &);
-protected:
-       virtual bool isValid();
-private:
-       /// apply dialog
-       virtual void apply();
-       /// build dialog
-       virtual void build_dialog();
-       /// update dialog
-       virtual void update_contents();
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // QT4_URL_VIEW_H