mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
Merge QController into individual dialogs. Also various cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19961 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e4e09c4b0b
commit
fc36725282
@ -41,14 +41,11 @@ HPP += GuiDocument.h
|
|||||||
HPP += GuiErrorList.h
|
HPP += GuiErrorList.h
|
||||||
HPP += GuiERT.h
|
HPP += GuiERT.h
|
||||||
HPP += GuiExternal.h
|
HPP += GuiExternal.h
|
||||||
HPP += GuiFloatDialog.h
|
|
||||||
HPP += GuiFloat.h
|
HPP += GuiFloat.h
|
||||||
HPP += GuiFontExample.h
|
HPP += GuiFontExample.h
|
||||||
HPP += GuiFontLoader.h
|
HPP += GuiFontLoader.h
|
||||||
HPP += GuiFontMetrics.h
|
HPP += GuiFontMetrics.h
|
||||||
HPP += GuiGraphicsDialog.h
|
|
||||||
HPP += GuiGraphics.h
|
HPP += GuiGraphics.h
|
||||||
HPP += GuiGraphicsUi.h
|
|
||||||
HPP += GuiImage.h
|
HPP += GuiImage.h
|
||||||
HPP += GuiImplementation.h
|
HPP += GuiImplementation.h
|
||||||
HPP += GuiInclude.h
|
HPP += GuiInclude.h
|
||||||
@ -97,7 +94,6 @@ HPP += qt_helpers.h
|
|||||||
HPP += socket_callback.h
|
HPP += socket_callback.h
|
||||||
HPP += TocModel.h
|
HPP += TocModel.h
|
||||||
HPP += TocWidget.h
|
HPP += TocWidget.h
|
||||||
HPP += UrlView.h
|
|
||||||
HPP += Validator.h
|
HPP += Validator.h
|
||||||
|
|
||||||
CPP += Action.cpp
|
CPP += Action.cpp
|
||||||
@ -130,12 +126,10 @@ CPP += GuiErrorList.cpp
|
|||||||
CPP += GuiERT.cpp
|
CPP += GuiERT.cpp
|
||||||
CPP += GuiExternal.cpp
|
CPP += GuiExternal.cpp
|
||||||
CPP += GuiFloat.cpp
|
CPP += GuiFloat.cpp
|
||||||
CPP += GuiFloatDialog.cpp
|
|
||||||
CPP += GuiFontExample.cpp
|
CPP += GuiFontExample.cpp
|
||||||
CPP += GuiFontLoader.cpp
|
CPP += GuiFontLoader.cpp
|
||||||
CPP += GuiFontMetrics.cpp
|
CPP += GuiFontMetrics.cpp
|
||||||
CPP += GuiGraphics.cpp
|
CPP += GuiGraphics.cpp
|
||||||
CPP += GuiGraphicsDialog.cpp
|
|
||||||
CPP += GuiImage.cpp
|
CPP += GuiImage.cpp
|
||||||
CPP += GuiImplementation.cpp
|
CPP += GuiImplementation.cpp
|
||||||
CPP += GuiInclude.cpp
|
CPP += GuiInclude.cpp
|
||||||
@ -183,7 +177,6 @@ CPP += qt_helpers.cpp
|
|||||||
CPP += socket_callback.cpp
|
CPP += socket_callback.cpp
|
||||||
CPP += TocModel.cpp
|
CPP += TocModel.cpp
|
||||||
CPP += TocWidget.cpp
|
CPP += TocWidget.cpp
|
||||||
CPP += UrlView.cpp
|
|
||||||
CPP += Validator.cpp
|
CPP += Validator.cpp
|
||||||
|
|
||||||
UI += AboutUi.ui
|
UI += AboutUi.ui
|
||||||
|
@ -871,11 +871,9 @@ src_frontends_qt4_header_files = Split('''
|
|||||||
GuiErrorList.h
|
GuiErrorList.h
|
||||||
GuiERT.h
|
GuiERT.h
|
||||||
GuiExternal.h
|
GuiExternal.h
|
||||||
GuiFloatDialog.h
|
|
||||||
GuiFloat.h
|
GuiFloat.h
|
||||||
GuiFontExample.h
|
GuiFontExample.h
|
||||||
GuiFontLoader.h
|
GuiFontLoader.h
|
||||||
GuiGraphicsDialog.h
|
|
||||||
GuiGraphics.h
|
GuiGraphics.h
|
||||||
GuiGraphicsUi.h
|
GuiGraphicsUi.h
|
||||||
GuiImage.h
|
GuiImage.h
|
||||||
@ -923,7 +921,6 @@ src_frontends_qt4_header_files = Split('''
|
|||||||
Qt2BC.h
|
Qt2BC.h
|
||||||
TocModel.h
|
TocModel.h
|
||||||
TocWidget.h
|
TocWidget.h
|
||||||
UrlView.h
|
|
||||||
Validator.h
|
Validator.h
|
||||||
qlkey.h
|
qlkey.h
|
||||||
qt_helpers.h
|
qt_helpers.h
|
||||||
@ -962,12 +959,10 @@ src_frontends_qt4_files = Split('''
|
|||||||
GuiERT.cpp
|
GuiERT.cpp
|
||||||
GuiExternal.cpp
|
GuiExternal.cpp
|
||||||
GuiFloat.cpp
|
GuiFloat.cpp
|
||||||
GuiFloatDialog.cpp
|
|
||||||
GuiFontExample.cpp
|
GuiFontExample.cpp
|
||||||
GuiFontLoader.cpp
|
GuiFontLoader.cpp
|
||||||
GuiFontMetrics.cpp
|
GuiFontMetrics.cpp
|
||||||
GuiGraphics.cpp
|
GuiGraphics.cpp
|
||||||
GuiGraphicsDialog.cpp
|
|
||||||
GuiImage.cpp
|
GuiImage.cpp
|
||||||
GuiImplementation.cpp
|
GuiImplementation.cpp
|
||||||
GuiInclude.cpp
|
GuiInclude.cpp
|
||||||
@ -1013,7 +1008,6 @@ src_frontends_qt4_files = Split('''
|
|||||||
Qt2BC.cpp
|
Qt2BC.cpp
|
||||||
TocModel.cpp
|
TocModel.cpp
|
||||||
TocWidget.cpp
|
TocWidget.cpp
|
||||||
UrlView.cpp
|
|
||||||
Validator.cpp
|
Validator.cpp
|
||||||
alert_pimpl.cpp
|
alert_pimpl.cpp
|
||||||
qt_helpers.cpp
|
qt_helpers.cpp
|
||||||
|
@ -50,10 +50,8 @@ src/frontends/controllers/frontend_helpers.cpp
|
|||||||
src/frontends/qt4/BulletsModule.cpp
|
src/frontends/qt4/BulletsModule.cpp
|
||||||
src/frontends/qt4/Dialogs.cpp
|
src/frontends/qt4/Dialogs.cpp
|
||||||
src/frontends/qt4/FileDialog.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/GuiAbout.cpp
|
||||||
|
src/frontends/qt4/GuiApplication.cpp
|
||||||
src/frontends/qt4/GuiBibitem.cpp
|
src/frontends/qt4/GuiBibitem.cpp
|
||||||
src/frontends/qt4/GuiBibtex.cpp
|
src/frontends/qt4/GuiBibtex.cpp
|
||||||
src/frontends/qt4/GuiBox.cpp
|
src/frontends/qt4/GuiBox.cpp
|
||||||
@ -86,7 +84,9 @@ src/frontends/qt4/GuiTabularCreate.cpp
|
|||||||
src/frontends/qt4/GuiTexinfo.cpp
|
src/frontends/qt4/GuiTexinfo.cpp
|
||||||
src/frontends/qt4/GuiThesaurus.cpp
|
src/frontends/qt4/GuiThesaurus.cpp
|
||||||
src/frontends/qt4/GuiVSpace.cpp
|
src/frontends/qt4/GuiVSpace.cpp
|
||||||
|
src/frontends/qt4/GuiView.cpp
|
||||||
src/frontends/qt4/GuiWrap.cpp
|
src/frontends/qt4/GuiWrap.cpp
|
||||||
|
src/frontends/qt4/IconPalette.cpp
|
||||||
src/frontends/qt4/Qt2BC.h
|
src/frontends/qt4/Qt2BC.h
|
||||||
src/frontends/qt4/UrlView.cpp
|
src/frontends/qt4/UrlView.cpp
|
||||||
src/frontends/qt4/Validator.cpp
|
src/frontends/qt4/Validator.cpp
|
||||||
|
50
po/ca.po
50
po/ca.po
@ -18,7 +18,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ca\n"
|
"Project-Id-Version: ca\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-06-01 18:19+0200\n"
|
||||||
"Last-Translator: Joan Montané <jmontane@gmail.com>\n"
|
"Last-Translator: Joan Montané <jmontane@gmail.com>\n"
|
||||||
"Language-Team: catalan <ca@li.org>\n"
|
"Language-Team: catalan <ca@li.org>\n"
|
||||||
@ -14812,30 +14812,6 @@ msgstr "Reconfigura|R"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Surt del LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -15404,10 +15380,34 @@ msgstr "Informaci
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr ""
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "espai"
|
msgstr "espai"
|
||||||
|
50
po/cs.po
50
po/cs.po
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Lyx 1.5.0svn\n"
|
"Project-Id-Version: Lyx 1.5.0svn\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-07-09 04:42+0200\n"
|
||||||
"Last-Translator: Pavel Sanda <ps@ucw.cz>\n"
|
"Last-Translator: Pavel Sanda <ps@ucw.cz>\n"
|
||||||
"Language-Team: Czech <LL@li.org>\n"
|
"Language-Team: Czech <LL@li.org>\n"
|
||||||
@ -14759,30 +14759,6 @@ msgstr "Rekonfigurovat|R"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Ukonèit LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Nastavení hesla bibliografie"
|
msgstr "Nastavení hesla bibliografie"
|
||||||
@ -15347,10 +15323,34 @@ msgstr "Informace TeX-u"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Nastavení vertikální mezery"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Nastavení obtékání textu"
|
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
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "mezera"
|
msgstr "mezera"
|
||||||
|
52
po/es.po
52
po/es.po
@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: es\n"
|
"Project-Id-Version: es\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2006-11-07 18:46+0100\n"
|
||||||
"Last-Translator: Eulogio Serradilla <eulogio.sr@terra.es>\n"
|
"Last-Translator: Eulogio Serradilla <eulogio.sr@terra.es>\n"
|
||||||
"Language-Team: <es@li.org>\n"
|
"Language-Team: <es@li.org>\n"
|
||||||
@ -15264,31 +15264,6 @@ msgstr "Reconfigurar|R"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Salir de LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Configuración de entrada bibliográfica"
|
msgstr "Configuración de entrada bibliográfica"
|
||||||
@ -15853,10 +15828,35 @@ msgstr "Informaci
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Configuración del espacio vertical"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Configuración del ajuste de línea"
|
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
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "espacio"
|
msgstr "espacio"
|
||||||
|
52
po/eu.po
52
po/eu.po
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: lyx_1.5.0_eu\n"
|
"Project-Id-Version: lyx_1.5.0_eu\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2006-11-08 11:47+0000\n"
|
||||||
"Last-Translator: Iñaki Larrañaga Murgoitio <dooteo@euskalgnu.org>\n"
|
"Last-Translator: Iñaki Larrañaga Murgoitio <dooteo@euskalgnu.org>\n"
|
||||||
"Language-Team: Basque <itzulpena@euskalgnu.org>\n"
|
"Language-Team: Basque <itzulpena@euskalgnu.org>\n"
|
||||||
@ -15243,31 +15243,6 @@ msgstr "Birkonfiguratu|B"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Irten LyX-etik"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Bibliografia-sarreren ezarpenak"
|
msgstr "Bibliografia-sarreren ezarpenak"
|
||||||
@ -15832,10 +15807,35 @@ msgstr "TeX informazioa"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Tarte bertikalaren ezarpenak"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Testua doitzeko ezarpenak"
|
msgstr "Testua doitzeko ezarpenak"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "tartea"
|
msgstr "tartea"
|
||||||
|
52
po/fr.po
52
po/fr.po
@ -170,7 +170,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: LyX 1.4.3\n"
|
"Project-Id-Version: LyX 1.4.3\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-07-18 08:48+0200\n"
|
||||||
"Last-Translator: Adrien Rebollo <adrien.rebollo@gmx.fr>\n"
|
"Last-Translator: Adrien Rebollo <adrien.rebollo@gmx.fr>\n"
|
||||||
"Language-Team: lyxfr \n"
|
"Language-Team: lyxfr \n"
|
||||||
@ -15464,31 +15464,6 @@ msgstr "Reconfigurer|R"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Quitter %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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Paramètres d'Entrée de Bibliographie"
|
msgstr "Paramètres d'Entrée de Bibliographie"
|
||||||
@ -16063,10 +16038,35 @@ msgstr "Informations TeX"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Paramètres d'espacement vertical"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Paramètres d'enrobage"
|
msgstr "Paramètres d'enrobage"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "espace"
|
msgstr "espace"
|
||||||
|
50
po/gl.po
50
po/gl.po
@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: gl-1.5.0rc2\n"
|
"Project-Id-Version: gl-1.5.0rc2\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-07-11 18:48+0200\n"
|
||||||
"Last-Translator: Ramon Flores <fa2ramon@usc.es>\n"
|
"Last-Translator: Ramon Flores <fa2ramon@usc.es>\n"
|
||||||
"Language-Team: Galician <gl@li.org>\n"
|
"Language-Team: Galician <gl@li.org>\n"
|
||||||
@ -14790,30 +14790,6 @@ msgstr "Reconfigurar|R"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Sair de LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Configuración de entrada bibliográfica"
|
msgstr "Configuración de entrada bibliográfica"
|
||||||
@ -15383,10 +15359,34 @@ msgstr "Informaci
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Configuración do espazo vertical"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Configuración do axuste de liña"
|
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
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "espazo"
|
msgstr "espazo"
|
||||||
|
50
po/hu.po
50
po/hu.po
@ -5,7 +5,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: hu\n"
|
"Project-Id-Version: hu\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-07-24 18:18+0100\n"
|
||||||
"Last-Translator: Alex <alex@lyx.hu>\n"
|
"Last-Translator: Alex <alex@lyx.hu>\n"
|
||||||
"Language-Team: LyX <alex@lyx.org>\n"
|
"Language-Team: LyX <alex@lyx.org>\n"
|
||||||
@ -14773,30 +14773,6 @@ msgstr "
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Kilépés LyX-bõl"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Irodalomjegyzék elem beállítások"
|
msgstr "Irodalomjegyzék elem beállítások"
|
||||||
@ -15366,10 +15342,34 @@ msgstr "TeX inform
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Függõleges kitöltés beállításai"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Körbefuttatás beállításai"
|
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
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "szóköz"
|
msgstr "szóköz"
|
||||||
|
52
po/it.po
52
po/it.po
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: it\n"
|
"Project-Id-Version: it\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2006-09-18 16:03+0200\n"
|
||||||
"Last-Translator: Kostantino <ciclope10ATalice.it>\n"
|
"Last-Translator: Kostantino <ciclope10ATalice.it>\n"
|
||||||
"Language-Team: italiano <it@li.org>\n"
|
"Language-Team: italiano <it@li.org>\n"
|
||||||
@ -15285,31 +15285,6 @@ msgstr "Riconfigura|g"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Chiudi LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Impostazioni voce bibliografica"
|
msgstr "Impostazioni voce bibliografica"
|
||||||
@ -15884,10 +15859,35 @@ msgstr "Informazione di TeX"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Impostazioni spazio verticale"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Impostazioni testo a capo"
|
msgstr "Impostazioni testo a capo"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "spazio"
|
msgstr "spazio"
|
||||||
|
50
po/ko.po
50
po/ko.po
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: LyX 1.4.4\n"
|
"Project-Id-Version: LyX 1.4.4\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-05-15 16:13+0900\n"
|
||||||
"Last-Translator: cghan <cghan@pusan.ac.kr>\n"
|
"Last-Translator: cghan <cghan@pusan.ac.kr>\n"
|
||||||
"Language-Team: hangul <ko@li.org>\n"
|
"Language-Team: hangul <ko@li.org>\n"
|
||||||
@ -14566,30 +14566,6 @@ msgstr "
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr ""
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "참고 문헌 목록 기재 사항 구성(Bibliography Entry Settings)"
|
msgstr "참고 문헌 목록 기재 사항 구성(Bibliography Entry Settings)"
|
||||||
@ -15146,10 +15122,34 @@ msgstr "TeX
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr ""
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "본문 감싸기 구성(Text Wrap Settings)"
|
msgstr "본문 감싸기 구성(Text Wrap Settings)"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "공간(space)"
|
msgstr "공간(space)"
|
||||||
|
50
po/nn.po
50
po/nn.po
@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: nn\n"
|
"Project-Id-Version: nn\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-06-26 21:34+0200\n"
|
||||||
"Last-Translator: Ingar Pareliussen <ingarp_ved_samfundet.no>\n"
|
"Last-Translator: Ingar Pareliussen <ingarp_ved_samfundet.no>\n"
|
||||||
"Language-Team: Nynorsk <nn@li.org>\n"
|
"Language-Team: Nynorsk <nn@li.org>\n"
|
||||||
@ -14772,30 +14772,6 @@ msgstr "Set opp p
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Skru av LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Val for litteraturnøkkel"
|
msgstr "Val for litteraturnøkkel"
|
||||||
@ -15362,10 +15338,34 @@ msgstr "TeX informasjon"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Val for loddrettmellomrom"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Tekst brekkingval"
|
msgstr "Tekst brekkingval"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "mellomrom"
|
msgstr "mellomrom"
|
||||||
|
52
po/pl.po
52
po/pl.po
@ -12,7 +12,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: pl\n"
|
"Project-Id-Version: pl\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2006-07-04 00:28+0200\n"
|
||||||
"Last-Translator: Andrzej Tomaszewski <tomaszewski@wne.uw.edu.pl>\n"
|
"Last-Translator: Andrzej Tomaszewski <tomaszewski@wne.uw.edu.pl>\n"
|
||||||
"Language-Team: Polski <pl@li.org>\n"
|
"Language-Team: Polski <pl@li.org>\n"
|
||||||
@ -15263,31 +15263,6 @@ msgstr "Rekonfiguruj|R"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Zamknij LyX-a"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Ustawienia pozycji bibliografii"
|
msgstr "Ustawienia pozycji bibliografii"
|
||||||
@ -15863,10 +15838,35 @@ msgstr "Konfiguracja TeX-a"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Ustawienia odstępów pionowych"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Ustawienia oblewania tekstem"
|
msgstr "Ustawienia oblewania tekstem"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "odstęp"
|
msgstr "odstęp"
|
||||||
|
50
po/pt.po
50
po/pt.po
@ -10,7 +10,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: pt\n"
|
"Project-Id-Version: pt\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-08-13 22:59+0100\n"
|
||||||
"Last-Translator: Susana Barbosa <susana.barbosa@fc.up.pt>\n"
|
"Last-Translator: Susana Barbosa <susana.barbosa@fc.up.pt>\n"
|
||||||
"Language-Team: <en@li.org>\n"
|
"Language-Team: <en@li.org>\n"
|
||||||
@ -15208,30 +15208,6 @@ msgstr "Reconfigurar"
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Sair do LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Configurações de Ítem Bibliográfico"
|
msgstr "Configurações de Ítem Bibliográfico"
|
||||||
@ -15810,10 +15786,34 @@ msgstr "Informa
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Configurações de Espaço Vertical"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Configurações de Repartição de Texto"
|
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
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "Espaço"
|
msgstr "Espaço"
|
||||||
|
52
po/ro.po
52
po/ro.po
@ -9,7 +9,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: ro\n"
|
"Project-Id-Version: ro\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2007-02-20 21:33-0500\n"
|
||||||
"Last-Translator: Marius Ionescu <felijohn@gmail.com>\n"
|
"Last-Translator: Marius Ionescu <felijohn@gmail.com>\n"
|
||||||
"Language-Team: Romanian <ro-kde@yahoogroups.com>\n"
|
"Language-Team: Romanian <ro-kde@yahoogroups.com>\n"
|
||||||
@ -15361,31 +15361,6 @@ msgstr "Reconfigureaz
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Despre LyX"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
@ -16017,11 +15992,36 @@ msgstr "Informa
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Spaþiere verticalã:|#e"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Setãri tabel"
|
msgstr "Setãri tabel"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "space"
|
msgid "space"
|
||||||
|
52
po/tr.po
52
po/tr.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: LyX 1.3.6\n"
|
"Project-Id-Version: LyX 1.3.6\n"
|
||||||
"Report-Msgid-Bugs-To: lyx-devel@lists.lyx.org\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"
|
"PO-Revision-Date: 2006-07-01 11:06+0200\n"
|
||||||
"Last-Translator: Gürer Özen <gurer@pardus.org.tr>\n"
|
"Last-Translator: Gürer Özen <gurer@pardus.org.tr>\n"
|
||||||
"Language-Team: Turkish <tr@li.org>\n"
|
"Language-Team: Turkish <tr@li.org>\n"
|
||||||
@ -15157,31 +15157,6 @@ msgstr "Yeniden yap
|
|||||||
msgid "Quit %1"
|
msgid "Quit %1"
|
||||||
msgstr "Çýk"
|
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
|
#: src/frontends/qt4/GuiBibitem.cpp:69
|
||||||
msgid "Bibliography Entry Settings"
|
msgid "Bibliography Entry Settings"
|
||||||
msgstr "Kaynakça Giriþ Ayarlarý"
|
msgstr "Kaynakça Giriþ Ayarlarý"
|
||||||
@ -15755,10 +15730,35 @@ msgstr "TeX Bilgisi"
|
|||||||
msgid "Vertical Space Settings"
|
msgid "Vertical Space Settings"
|
||||||
msgstr "Düþey Boþluk Ayarlarý"
|
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
|
#: src/frontends/qt4/GuiWrap.cpp:83
|
||||||
msgid "Text Wrap Settings"
|
msgid "Text Wrap Settings"
|
||||||
msgstr "Tablo Dönüþ Ayarlarý"
|
msgstr "Tablo Dönüþ Ayarlarý"
|
||||||
|
|
||||||
|
#: src/frontends/qt4/IconPalette.cpp:39
|
||||||
|
msgid "Click to detach"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/frontends/qt4/Validator.cpp:153
|
#: src/frontends/qt4/Validator.cpp:153
|
||||||
msgid "space"
|
msgid "space"
|
||||||
msgstr "boþluk"
|
msgstr "boþluk"
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
#include "GuiTexinfo.h"
|
#include "GuiTexinfo.h"
|
||||||
#include "GuiToc.h"
|
#include "GuiToc.h"
|
||||||
#include "TocWidget.h"
|
#include "TocWidget.h"
|
||||||
#include "UrlView.h"
|
#include "GuiURLDialog.h"
|
||||||
#include "GuiVSpace.h"
|
#include "GuiVSpace.h"
|
||||||
#include "GuiWrap.h"
|
#include "GuiWrap.h"
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ Dialogs::DialogPtr Dialogs::build(string const & name)
|
|||||||
dialog->bc().bp(new OkCancelPolicy);
|
dialog->bc().bp(new OkCancelPolicy);
|
||||||
} else if (name == "mathdelimiter") {
|
} else if (name == "mathdelimiter") {
|
||||||
dialog->setController(new ControlMath(*dialog));
|
dialog->setController(new ControlMath(*dialog));
|
||||||
dialog->setView(new GuiMathDelimiter(*dialog));
|
dialog->setView(new GuiDelimiter(*dialog));
|
||||||
dialog->bc().bp(new IgnorantPolicy);
|
dialog->bc().bp(new IgnorantPolicy);
|
||||||
} else if (name == "mathmatrix") {
|
} else if (name == "mathmatrix") {
|
||||||
dialog->setController(new ControlMath(*dialog));
|
dialog->setController(new ControlMath(*dialog));
|
||||||
|
@ -38,10 +38,8 @@ namespace lyx {
|
|||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlAboutlyx, GuiView<GuiAboutDialog> > AboutBase;
|
|
||||||
|
|
||||||
GuiAbout::GuiAbout(Dialog & parent)
|
GuiAbout::GuiAbout(Dialog & parent)
|
||||||
: AboutBase(parent, _("About LyX"))
|
: GuiView<GuiAboutDialog>(parent, _("About LyX"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,18 +9,18 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef FORMABOUT_H
|
#ifndef GUIABOUT_H
|
||||||
#define FORMABOUT_H
|
#define GUIABOUT_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlAboutlyx.h"
|
||||||
#include "ui_AboutUi.h"
|
#include "ui_AboutUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlAboutlyx;
|
|
||||||
|
|
||||||
class GuiAboutDialog : public QDialog, public Ui::AboutUi {
|
class GuiAboutDialog : public QDialog, public Ui::AboutUi {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@ -33,11 +33,16 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class GuiAbout
|
class GuiAbout : public GuiView<GuiAboutDialog>
|
||||||
: public QController<ControlAboutlyx, GuiView<GuiAboutDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GuiAbout(Dialog &);
|
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:
|
private:
|
||||||
/// not needed
|
/// not needed
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
@ -50,4 +55,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // FORMABOUT_H
|
#endif // GUIABOUT_H
|
||||||
|
@ -141,8 +141,8 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
|
|||||||
|
|
||||||
using namespace lyx::graphics;
|
using namespace lyx::graphics;
|
||||||
|
|
||||||
Image::newImage = boost::bind(&QLImage::newImage);
|
Image::newImage = boost::bind(&GuiImage::newImage);
|
||||||
Image::loadableFormats = boost::bind(&QLImage::loadableFormats);
|
Image::loadableFormats = boost::bind(&GuiImage::loadableFormats);
|
||||||
|
|
||||||
// needs to be done before reading lyxrc
|
// needs to be done before reading lyxrc
|
||||||
lyxrc.dpi = getDPI();
|
lyxrc.dpi = getDPI();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* \file qt4/GuiApplication.h
|
* \file GuiApplication.h
|
||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
@ -10,8 +10,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QT4_APPLICATION_H
|
#ifndef GUIAPPLICATION_H
|
||||||
#define QT4_APPLICATION_H
|
#define GUIAPPLICATION_H
|
||||||
|
|
||||||
#include "ColorCache.h"
|
#include "ColorCache.h"
|
||||||
#include "GuiFontLoader.h"
|
#include "GuiFontLoader.h"
|
||||||
@ -127,4 +127,4 @@ extern GuiApplication * guiApp;
|
|||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
|
||||||
#endif // QT4_APPLICATION_H
|
#endif // GUIAPPLICATION_H
|
||||||
|
@ -14,8 +14,7 @@
|
|||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "controllers/ControlCommand.h"
|
#include <QCloseEvent>
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QPushButton>
|
#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)
|
GuiBibitem::GuiBibitem(Dialog & parent)
|
||||||
: BibItemBase(parent, _("Bibliography Entry Settings"))
|
: GuiView<GuiBibitemDialog>(parent, _("Bibliography Entry Settings"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,15 +9,14 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QBIBITEM_CONTROLLER_H
|
#ifndef GUIBIBITEM_H
|
||||||
#define QBIBITEM_CONTROLLER_H
|
#define GUIBIBITEM_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlCommand.h"
|
||||||
#include "ui_BibitemUi.h"
|
#include "ui_BibitemUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCloseEvent>
|
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -39,19 +38,21 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlCommand;
|
class GuiBibitem : public GuiView<GuiBibitemDialog>
|
||||||
|
|
||||||
class GuiBibitem
|
|
||||||
: public QController<ControlCommand, GuiView<GuiBibitemDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiBibitemDialog;
|
///
|
||||||
|
|
||||||
GuiBibitem(Dialog &);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
|
friend class GuiBibitemDialog;
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
/// update
|
/// update
|
||||||
@ -63,4 +64,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QBIBITEM_H
|
#endif // GUIBIBITEM_H
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
#include "controllers/ControlBibtex.h"
|
#include "controllers/ControlBibtex.h"
|
||||||
#include "controllers/ButtonPolicy.h"
|
#include "controllers/ButtonPolicy.h"
|
||||||
|
|
||||||
#include "controllers/ControlBibtex.h"
|
|
||||||
|
|
||||||
#include "support/filetools.h" // changeExtension
|
#include "support/filetools.h" // changeExtension
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
@ -35,21 +33,21 @@
|
|||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
|
||||||
using lyx::support::changeExtension;
|
|
||||||
using lyx::support::split;
|
|
||||||
using lyx::support::trim;
|
|
||||||
|
|
||||||
using std::vector;
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "support/filetools.h"
|
#include "support/filetools.h"
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
|
using std::vector;
|
||||||
|
using std::string;
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
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)
|
GuiBibtex::GuiBibtex(Dialog & parent)
|
||||||
: BibtexBase(parent, _("BibTeX Bibliography"))
|
: GuiView<GuiBibtexDialog>(parent, _("BibTeX Bibliography"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,17 +9,15 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QBIBTEX_H
|
#ifndef GUIBIBTEX_H
|
||||||
#define QBIBTEX_H
|
#define GUIBIBTEX_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ButtonController.h"
|
||||||
|
#include "ControlBibtex.h"
|
||||||
#include "ui_BibtexUi.h"
|
#include "ui_BibtexUi.h"
|
||||||
#include "ui_BibtexAddUi.h"
|
#include "ui_BibtexAddUi.h"
|
||||||
|
|
||||||
#include "ButtonController.h"
|
|
||||||
|
|
||||||
#include <QCloseEvent>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -68,15 +66,18 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlBibtex;
|
class GuiBibtex : public GuiView<GuiBibtexDialog>
|
||||||
|
|
||||||
class GuiBibtex
|
|
||||||
: public QController<ControlBibtex, GuiView<GuiBibtexDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiBibtexDialog;
|
friend class GuiBibtexDialog;
|
||||||
|
|
||||||
GuiBibtex(Dialog &);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
@ -91,4 +92,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QBIBTEX_H
|
#endif // GUIBIBTEX_H
|
||||||
|
@ -142,10 +142,9 @@ void GuiBoxDialog::restoreClicked()
|
|||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlBox, GuiView<GuiBoxDialog> > box_base_class;
|
|
||||||
|
|
||||||
GuiBox::GuiBox(Dialog & parent)
|
GuiBox::GuiBox(Dialog & parent)
|
||||||
: box_base_class(parent, _("Box Settings"))
|
: GuiView<GuiBoxDialog>(parent, _("Box Settings"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,14 +10,13 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QBOX_H
|
#ifndef GUIBOX_H
|
||||||
#define QBOX_H
|
#define GUIBOX_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlBox.h"
|
||||||
#include "ui_BoxUi.h"
|
#include "ui_BoxUi.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -26,7 +25,6 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlBox;
|
|
||||||
class GuiBox;
|
class GuiBox;
|
||||||
|
|
||||||
class GuiBoxDialog : public QDialog, public Ui::BoxUi {
|
class GuiBoxDialog : public QDialog, public Ui::BoxUi {
|
||||||
@ -45,20 +43,24 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
///
|
class GuiBox : public GuiView<GuiBoxDialog>
|
||||||
class GuiBox
|
|
||||||
: public QController<ControlBox, GuiView<GuiBoxDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
|
||||||
friend class GuiBoxDialog;
|
|
||||||
///
|
///
|
||||||
GuiBox(Dialog &);
|
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
|
/// add and remove special lengths
|
||||||
void setSpecial(bool ibox);
|
void setSpecial(bool ibox);
|
||||||
/// only show valid inner box items
|
/// only show valid inner box items
|
||||||
void setInnerType(bool frameless, int i);
|
void setInnerType(bool frameless, int i);
|
||||||
private:
|
private:
|
||||||
|
///
|
||||||
|
friend class GuiBoxDialog;
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
/// update
|
/// update
|
||||||
@ -78,4 +80,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QBOX_H
|
#endif // GUIBOX_H
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
#include "BranchList.h"
|
#include "BranchList.h"
|
||||||
|
|
||||||
#include "controllers/ControlBranch.h"
|
|
||||||
|
|
||||||
#include "insets/InsetBranch.h"
|
#include "insets/InsetBranch.h"
|
||||||
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
@ -64,11 +62,9 @@ void GuiBranchDialog::change_adaptor()
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlBranch, GuiView<GuiBranchDialog> > branch_base_class;
|
|
||||||
|
|
||||||
|
|
||||||
GuiBranch::GuiBranch(Dialog & parent)
|
GuiBranch::GuiBranch(Dialog & parent)
|
||||||
: branch_base_class(parent, _("Branch Settings"))
|
: GuiView<GuiBranchDialog>(parent, _("Branch Settings"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QBRANCH_H
|
#ifndef GUIBRANCH_H
|
||||||
#define QBRANCH_H
|
#define GUIBRANCH_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlBranch.h"
|
||||||
#include "ui_BranchUi.h"
|
#include "ui_BranchUi.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -35,18 +35,23 @@ private:
|
|||||||
GuiBranch * form_;
|
GuiBranch * form_;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ControlBranch;
|
|
||||||
|
|
||||||
/** This class provides a QT implementation of the Branch Dialog.
|
/** This class provides a QT implementation of the Branch Dialog.
|
||||||
*/
|
*/
|
||||||
class GuiBranch : public QController<ControlBranch, GuiView<GuiBranchDialog> >
|
class GuiBranch : public GuiView<GuiBranchDialog>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiBranchDialog;
|
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
GuiBranch(Dialog &);
|
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:
|
private:
|
||||||
|
friend class GuiBranchDialog;
|
||||||
|
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
/// Build the dialog
|
/// Build the dialog
|
||||||
@ -58,4 +63,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QBRANCH_H
|
#endif // GUIBRANCH_H
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QBRANCHES_H
|
#ifndef GUIBRANCHES_H
|
||||||
#define QBRANCHES_H
|
#define GUIBRANCHES_H
|
||||||
|
|
||||||
#include "ui_BranchesUi.h"
|
#include "ui_BranchesUi.h"
|
||||||
#include "GuiDocument.h"
|
#include "GuiDocument.h"
|
||||||
@ -30,7 +30,6 @@ class BufferParams;
|
|||||||
|
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
|
|
||||||
class GuiBranches: public QWidget, public Ui::BranchesUi
|
class GuiBranches: public QWidget, public Ui::BranchesUi
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -56,13 +55,11 @@ protected Q_SLOTS:
|
|||||||
void on_colorPB_clicked();
|
void on_colorPB_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/// Contains all legal branches for this doc
|
/// Contains all legal branches for this doc
|
||||||
BranchList branchlist_;
|
BranchList branchlist_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // DOCUMENTDIALOG_H
|
#endif // GUIBRANCHES
|
||||||
|
@ -17,9 +17,6 @@
|
|||||||
|
|
||||||
#include "support/lstrings.h"
|
#include "support/lstrings.h"
|
||||||
|
|
||||||
#include "controllers/ControlChanges.h"
|
|
||||||
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
|
|
||||||
@ -78,11 +75,9 @@ void GuiChangesDialog::closeEvent(QCloseEvent *e)
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlChanges, GuiView<GuiChangesDialog> > ChangesBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiChanges::GuiChanges(Dialog & parent)
|
GuiChanges::GuiChanges(Dialog & parent)
|
||||||
: ChangesBase(parent, _("Merge Changes"))
|
: GuiView<GuiChangesDialog>(parent, _("Merge Changes"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,12 +9,13 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QCHANGES_H
|
#ifndef GUICHANGES_H
|
||||||
#define QCHANGES_H
|
#define GUICHANGES_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlChanges.h"
|
||||||
#include "ui_ChangesUi.h"
|
#include "ui_ChangesUi.h"
|
||||||
#include <QCloseEvent>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -41,15 +42,18 @@ private:
|
|||||||
GuiChanges * form_;
|
GuiChanges * form_;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ControlChanges;
|
|
||||||
|
|
||||||
class GuiChanges
|
class GuiChanges : public GuiView<GuiChangesDialog>
|
||||||
: public QController<ControlChanges, GuiView<GuiChangesDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiChangesDialog;
|
///
|
||||||
|
|
||||||
GuiChanges(Dialog &);
|
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();
|
void accept();
|
||||||
|
|
||||||
@ -58,6 +62,7 @@ public:
|
|||||||
void next();
|
void next();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
friend class GuiChangesDialog;
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply() {};
|
virtual void apply() {};
|
||||||
/// update
|
/// update
|
||||||
@ -69,4 +74,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QCHANGES_H
|
#endif // GUICHANGES_H
|
||||||
|
@ -12,13 +12,11 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "GuiCharacter.h"
|
#include "GuiCharacter.h"
|
||||||
#include "ControlCharacter.h"
|
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
#include "frontend_helpers.h"
|
||||||
#include "Color.h"
|
#include "Color.h"
|
||||||
|
|
||||||
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
|
|
||||||
using std::vector;
|
using std::vector;
|
||||||
@ -86,10 +84,9 @@ void GuiCharacterDialog::closeEvent(QCloseEvent * e)
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlCharacter, GuiView<GuiCharacterDialog> > CharacterBase;
|
|
||||||
|
|
||||||
GuiCharacter::GuiCharacter(Dialog & parent)
|
GuiCharacter::GuiCharacter(Dialog & parent)
|
||||||
: CharacterBase(parent, _("Text Style"))
|
: GuiView<GuiCharacterDialog>(parent, _("Text Style"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,21 +10,18 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QCHARACTER_H_CONTROLLER
|
#ifndef GUICHARACTER_H
|
||||||
#define QCHARACTER_H_CONTROLLER
|
#define GUICHARACTER_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlCharacter.h"
|
||||||
#include "ui_CharacterUi.h"
|
#include "ui_CharacterUi.h"
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "controllers/frontend_helpers.h"
|
#include <QDialog>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Font;
|
|
||||||
|
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class GuiCharacter;
|
class GuiCharacter;
|
||||||
@ -42,15 +39,18 @@ protected Q_SLOTS:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlCharacter;
|
class GuiCharacter : public GuiView<GuiCharacterDialog>
|
||||||
|
|
||||||
class GuiCharacter
|
|
||||||
: public QController<ControlCharacter, GuiView<GuiCharacterDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiCharacterDialog;
|
friend class GuiCharacterDialog;
|
||||||
|
|
||||||
GuiCharacter(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -71,4 +71,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QCHARACTER_H
|
#endif // GUICHARACTER_H
|
||||||
|
@ -7,15 +7,15 @@
|
|||||||
* \author Angus Leeming
|
* \author Angus Leeming
|
||||||
* \author Kalle Dalheimer
|
* \author Kalle Dalheimer
|
||||||
* \author Abdelrazak Younes
|
* \author Abdelrazak Younes
|
||||||
* \author Richard Heck (adapted to QSelectionManager)
|
* \author Richard Heck
|
||||||
*
|
*
|
||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QCITATION_H
|
#ifndef GUICITATION_H
|
||||||
#define QCITATION_H
|
#define GUICITATION_H
|
||||||
|
|
||||||
#include "frontends/controllers/ControlCitation.h"
|
#include "ControlCitation.h"
|
||||||
#include "support/docstring.h"
|
#include "support/docstring.h"
|
||||||
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
@ -82,13 +82,10 @@ public:
|
|||||||
private:
|
private:
|
||||||
/// available keys.
|
/// available keys.
|
||||||
QStringListModel available_model_;
|
QStringListModel available_model_;
|
||||||
|
|
||||||
/// selected keys.
|
/// selected keys.
|
||||||
QStringListModel selected_model_;
|
QStringListModel selected_model_;
|
||||||
|
|
||||||
/// All keys.
|
/// All keys.
|
||||||
QStringList all_keys_;
|
QStringList all_keys_;
|
||||||
|
|
||||||
/// Cited keys.
|
/// Cited keys.
|
||||||
QStringList cited_keys_;
|
QStringList cited_keys_;
|
||||||
};
|
};
|
||||||
@ -97,4 +94,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QCITATION_H
|
#endif // GUICITATION_H
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QCITATIONDIALOG_H
|
#ifndef GUICITATIONDIALOG_H
|
||||||
#define QCITATIONDIALOG_H
|
#define GUICITATIONDIALOG_H
|
||||||
|
|
||||||
#include "Dialog.h"
|
#include "Dialog.h"
|
||||||
#include "GuiSelectionManager.h"
|
#include "GuiSelectionManager.h"
|
||||||
@ -105,4 +105,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QCITATIOINDIALOG_H
|
#endif // GUICITATIOINDIALOG_H
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// -*- C++ -*-
|
// -*- C++ -*-
|
||||||
/**
|
/**
|
||||||
* \file qt4/GuiClipboard.h
|
* \file GuiClipboard.h
|
||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
@ -11,8 +11,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CLIPBOARD_H
|
#ifndef GUICLIPBOARD_H
|
||||||
#define CLIPBOARD_H
|
#define GUICLIPBOARD_H
|
||||||
|
|
||||||
#include "frontends/Clipboard.h"
|
#include "frontends/Clipboard.h"
|
||||||
|
|
||||||
@ -42,4 +42,4 @@ public:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // CLIPBOARD_H
|
#endif // GUICLIPBOARD_H
|
||||||
|
@ -9,10 +9,10 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QCOMMANDBUFFER_H
|
#ifndef GUICOMMANDBUFFER_H
|
||||||
#define QCOMMANDBUFFER_H
|
#define GUICOMMANDBUFFER_H
|
||||||
|
|
||||||
#include "controllers/ControlCommandBuffer.h"
|
#include "ControlCommandBuffer.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
@ -47,10 +47,8 @@ public Q_SLOTS:
|
|||||||
private:
|
private:
|
||||||
/// owning view
|
/// owning view
|
||||||
GuiViewBase * view_;
|
GuiViewBase * view_;
|
||||||
|
|
||||||
/// controller
|
/// controller
|
||||||
ControlCommandBuffer controller_;
|
ControlCommandBuffer controller_;
|
||||||
|
|
||||||
/// command widget
|
/// command widget
|
||||||
GuiCommandEdit * edit_;
|
GuiCommandEdit * edit_;
|
||||||
};
|
};
|
||||||
@ -58,4 +56,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QCOMMANDBUFFER_H
|
#endif // GUICOMMANDBUFFER_H
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QCOMMANDEDIT_H
|
#ifndef GUICOMMANDEDIT_H
|
||||||
#define QCOMMANDEDIT_H
|
#define GUICOMMANDEDIT_H
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
@ -21,8 +21,10 @@ namespace frontend {
|
|||||||
|
|
||||||
class GuiCommandEdit : public QLineEdit {
|
class GuiCommandEdit : public QLineEdit {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
GuiCommandEdit(QWidget * parent);
|
GuiCommandEdit(QWidget * parent);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
/// cancel
|
/// cancel
|
||||||
void escapePressed();
|
void escapePressed();
|
||||||
@ -45,4 +47,4 @@ protected:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QCOMMANDEDIT_H
|
#endif // GUICOMMANDEDIT_H
|
||||||
|
@ -15,10 +15,7 @@
|
|||||||
#include "GuiApplication.h"
|
#include "GuiApplication.h"
|
||||||
#include "GuiView.h"
|
#include "GuiView.h"
|
||||||
|
|
||||||
|
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
#include "controllers/ControlMath.h"
|
|
||||||
|
|
||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
|
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
@ -63,14 +60,12 @@ QString fix_name(QString const & str, bool big)
|
|||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlMath, GuiView<GuiDelimiterDialog> > delimiter_base;
|
GuiDelimiter::GuiDelimiter(Dialog & parent)
|
||||||
|
: GuiView<GuiDelimiterDialog>(parent, _("Math Delimiter"))
|
||||||
GuiMathDelimiter::GuiMathDelimiter(Dialog & parent)
|
|
||||||
: delimiter_base(parent, _("Math Delimiter"))
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
void GuiMathDelimiter::build_dialog()
|
void GuiDelimiter::build_dialog()
|
||||||
{
|
{
|
||||||
dialog_.reset(new GuiDelimiterDialog(this,
|
dialog_.reset(new GuiDelimiterDialog(this,
|
||||||
static_cast<GuiViewBase *>(controller().view())));
|
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)
|
: QDialog(parent), form_(form)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
@ -9,27 +9,26 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QDELIMITERDIALOG_H
|
#ifndef GUIDELIMITERDIALOG_H
|
||||||
#define QDELIMITERDIALOG_H
|
#define GUIDELIMITERDIALOG_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlMath.h"
|
||||||
#include "ui_DelimiterUi.h"
|
#include "ui_DelimiterUi.h"
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class QListWidgetItem;
|
class QListWidgetItem;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlMath;
|
class ControlMath;
|
||||||
class GuiMathDelimiter;
|
class GuiDelimiter;
|
||||||
|
|
||||||
class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi {
|
class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GuiDelimiterDialog(GuiMathDelimiter * form, QWidget * parent);
|
GuiDelimiterDialog(GuiDelimiter * form, QWidget * parent);
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void on_leftLW_itemActivated(QListWidgetItem *);
|
void on_leftLW_itemActivated(QListWidgetItem *);
|
||||||
void on_rightLW_itemActivated(QListWidgetItem *);
|
void on_rightLW_itemActivated(QListWidgetItem *);
|
||||||
@ -44,18 +43,24 @@ private:
|
|||||||
///
|
///
|
||||||
void updateTeXCode(int size);
|
void updateTeXCode(int size);
|
||||||
/// owning form
|
/// owning form
|
||||||
GuiMathDelimiter * form_;
|
GuiDelimiter * form_;
|
||||||
/// TeX code that will be inserted.
|
/// TeX code that will be inserted.
|
||||||
QString tex_code_;
|
QString tex_code_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class GuiMathDelimiter : public QController<ControlMath, GuiView<GuiDelimiterDialog> > {
|
class GuiDelimiter : public GuiView<GuiDelimiterDialog>
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiDelimiterDialog;
|
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:
|
private:
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
virtual void update_contents() {}
|
virtual void update_contents() {}
|
||||||
@ -67,4 +72,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QDELIMITERDIALOG_H
|
#endif // GUIDELIMITERDIALOG_H
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QDIALOGVIEW_H
|
#ifndef GUIDIALOGVIEW_H
|
||||||
#define QDIALOGVIEW_H
|
#define GUIDIALOGVIEW_H
|
||||||
|
|
||||||
#include "Dialog.h"
|
#include "Dialog.h"
|
||||||
|
|
||||||
@ -121,25 +121,7 @@ protected:
|
|||||||
boost::scoped_ptr<GUIDialog> dialog_;
|
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 frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QDIALOGVIEW_H
|
#endif // GUIDIALOGVIEW_H
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
#include "GuiViewSource.h" // For latexHighlighter use in the preamble.
|
#include "GuiViewSource.h" // For latexHighlighter use in the preamble.
|
||||||
|
|
||||||
#include "controllers/ControlDocument.h"
|
|
||||||
|
|
||||||
#include "BufferParams.h"
|
#include "BufferParams.h"
|
||||||
#include "Encoding.h"
|
#include "Encoding.h"
|
||||||
#include "gettext.h"
|
#include "gettext.h"
|
||||||
@ -37,7 +35,6 @@
|
|||||||
#include "Spacing.h"
|
#include "Spacing.h"
|
||||||
|
|
||||||
#include "insets/InsetListingsParams.h"
|
#include "insets/InsetListingsParams.h"
|
||||||
#include "controllers/ControlDocument.h"
|
|
||||||
|
|
||||||
#include "support/lstrings.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)
|
GuiDocument::GuiDocument(Dialog & parent)
|
||||||
: DocumentBase(parent, _("Document Settings"))
|
: GuiView<GuiDocumentDialog>(parent, _("Document Settings"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,11 +9,12 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QDOCUMENT_H
|
#ifndef GUIDOCUMENT_H
|
||||||
#define QDOCUMENT_H
|
#define GUIDOCUMENT_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
#include "BulletsModule.h"
|
#include "BulletsModule.h"
|
||||||
|
#include "ControlDocument.h"
|
||||||
|
|
||||||
#include "ui_DocumentUi.h"
|
#include "ui_DocumentUi.h"
|
||||||
#include "ui_FontUi.h"
|
#include "ui_FontUi.h"
|
||||||
@ -25,11 +26,8 @@
|
|||||||
#include "ui_BiblioUi.h"
|
#include "ui_BiblioUi.h"
|
||||||
#include "ui_NumberingUi.h"
|
#include "ui_NumberingUi.h"
|
||||||
#include "ui_MarginsUi.h"
|
#include "ui_MarginsUi.h"
|
||||||
|
|
||||||
// For the Preamble module
|
|
||||||
#include "ui_PreambleUi.h"
|
#include "ui_PreambleUi.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -119,10 +117,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlDocument;
|
class GuiDocument : public GuiView<GuiDocumentDialog>
|
||||||
|
|
||||||
class GuiDocument
|
|
||||||
: public QController<ControlDocument, GuiView<GuiDocumentDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -131,7 +126,12 @@ public:
|
|||||||
GuiDocument(Dialog &);
|
GuiDocument(Dialog &);
|
||||||
|
|
||||||
void showPreamble();
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
void apply();
|
void apply();
|
||||||
@ -175,8 +175,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QDOCUMENT_H
|
#endif // GUIDOCUMENT_H
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
#include "GuiERT.h"
|
#include "GuiERT.h"
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
|
|
||||||
#include "controllers/ControlERT.h"
|
|
||||||
|
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
@ -60,11 +58,8 @@ void GuiERTDialog::change_adaptor()
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlERT, GuiView<GuiERTDialog> > ERTBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiERT::GuiERT(Dialog & parent)
|
GuiERT::GuiERT(Dialog & parent)
|
||||||
: ERTBase(parent, _("TeX Code Settings"))
|
: GuiView<GuiERTDialog>(parent, _("TeX Code Settings"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,10 +9,11 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GuiERT_H
|
#ifndef GUIERT_H
|
||||||
#define GuiERT_H
|
#define GUIERT_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlERT.h"
|
||||||
#include "ui_ERTUi.h"
|
#include "ui_ERTUi.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
@ -23,7 +24,8 @@ namespace frontend {
|
|||||||
|
|
||||||
class GuiERT;
|
class GuiERT;
|
||||||
|
|
||||||
class GuiERTDialog : public QDialog, public Ui::ERTUi {
|
class GuiERTDialog : public QDialog, public Ui::ERTUi
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GuiERTDialog(GuiERT * form);
|
GuiERTDialog(GuiERT * form);
|
||||||
@ -36,16 +38,19 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
class GuiERT : public GuiView<GuiERTDialog>
|
||||||
class ControlERT;
|
|
||||||
|
|
||||||
class GuiERT : public QController<ControlERT, GuiView<GuiERTDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiERTDialog;
|
/// constructor
|
||||||
|
|
||||||
GuiERT(Dialog &);
|
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:
|
private:
|
||||||
|
friend class GuiERTDialog;
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
/// update
|
/// update
|
||||||
@ -57,4 +62,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // GuiERT_H
|
#endif // GUIERT_H
|
||||||
|
@ -10,14 +10,11 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
|
||||||
#include "GuiEmbeddedFiles.h"
|
#include "GuiEmbeddedFiles.h"
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
using std::string;
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
@ -27,10 +24,11 @@ namespace frontend {
|
|||||||
// GuiEmbeddedFilesDialog
|
// GuiEmbeddedFilesDialog
|
||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
#define INVALID_COLOR "gray"
|
|
||||||
#define AUTO_COLOR "green"
|
static QString const INVALID_COLOR = "gray";
|
||||||
#define EMBEDDED_COLOR "black"
|
static QString const AUTO_COLOR = "green";
|
||||||
#define EXTERNAL_COLOR "blue"
|
static QString const EMBEDDED_COLOR = "black";
|
||||||
|
static QString const EXTERNAL_COLOR = "blue";
|
||||||
|
|
||||||
GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog(GuiEmbeddedFiles * form)
|
GuiEmbeddedFilesDialog::GuiEmbeddedFilesDialog(GuiEmbeddedFiles * form)
|
||||||
: form_(form)
|
: form_(form)
|
||||||
@ -127,7 +125,7 @@ void GuiEmbeddedFilesDialog::on_actionPB_clicked()
|
|||||||
// FIXME.
|
// FIXME.
|
||||||
|
|
||||||
// ACTION
|
// ACTION
|
||||||
string action = fromqstr(actionCB->currentText());
|
QString action = actionCB->currentText();
|
||||||
if (action == "Add file") {
|
if (action == "Add file") {
|
||||||
} else if (action == "Extract file") {
|
} else if (action == "Extract file") {
|
||||||
} else if (action == "Extract all") {
|
} else if (action == "Extract all") {
|
||||||
|
@ -14,8 +14,6 @@
|
|||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "controllers/ControlErrorList.h"
|
|
||||||
|
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
@ -71,11 +69,8 @@ void GuiErrorListDialog::showEvent(QShowEvent *e)
|
|||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlErrorList, GuiView<GuiErrorListDialog> >
|
|
||||||
ErrorListBase;
|
|
||||||
|
|
||||||
GuiErrorList::GuiErrorList(Dialog & parent)
|
GuiErrorList::GuiErrorList(Dialog & parent)
|
||||||
: ErrorListBase(parent, docstring())
|
: GuiView<GuiErrorListDialog>(parent, docstring())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,17 +9,16 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QERRORLIST_H
|
#ifndef GUIERRORLIST_H
|
||||||
#define QERRORLIST_H
|
#define GUIERRORLIST_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlErrorList.h"
|
||||||
#include "ui_ErrorListUi.h"
|
#include "ui_ErrorListUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
class QListWidgetItem;
|
class QListWidgetItem;
|
||||||
class QCloseEvent;
|
|
||||||
class QShowEvent;
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -41,15 +40,18 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlErrorList;
|
class GuiErrorList : public GuiView<GuiErrorListDialog>
|
||||||
|
|
||||||
class GuiErrorList :
|
|
||||||
public QController<ControlErrorList, GuiView<GuiErrorListDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiErrorListDialog;
|
friend class GuiErrorListDialog;
|
||||||
|
|
||||||
GuiErrorList(Dialog &);
|
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:
|
private:
|
||||||
/// select an entry
|
/// select an entry
|
||||||
void select(QListWidgetItem *);
|
void select(QListWidgetItem *);
|
||||||
@ -64,4 +66,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QERRORLIST_H
|
#endif // GUIERRORLIST_H
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#include "lengthcommon.h"
|
#include "lengthcommon.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
|
||||||
#include "controllers/ControlExternal.h"
|
|
||||||
#include "controllers/ButtonController.h"
|
#include "controllers/ButtonController.h"
|
||||||
|
|
||||||
#include "insets/ExternalTemplate.h"
|
#include "insets/ExternalTemplate.h"
|
||||||
@ -489,11 +488,8 @@ void getExtra(external::ExtraData & data,
|
|||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlExternal, GuiView<GuiExternalDialog> >
|
|
||||||
ExternalBase;
|
|
||||||
|
|
||||||
GuiExternal::GuiExternal(Dialog & parent)
|
GuiExternal::GuiExternal(Dialog & parent)
|
||||||
: ExternalBase(parent, _("External Material"))
|
: GuiView<GuiExternalDialog>(parent, _("External Material"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QEXTERNAL_H
|
#ifndef GUIEXTERNAL_H
|
||||||
#define QEXTERNAL_H
|
#define GUIEXTERNAL_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlExternal.h"
|
||||||
#include "ui_ExternalUi.h"
|
#include "ui_ExternalUi.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
@ -26,7 +26,8 @@ namespace frontend {
|
|||||||
|
|
||||||
class GuiExternal;
|
class GuiExternal;
|
||||||
|
|
||||||
class GuiExternalDialog : public QDialog, public Ui::ExternalUi {
|
class GuiExternalDialog : public QDialog, public Ui::ExternalUi
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GuiExternalDialog(GuiExternal * form);
|
GuiExternalDialog(GuiExternal * form);
|
||||||
@ -52,18 +53,20 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlExternal;
|
class GuiExternal : public GuiView<GuiExternalDialog>
|
||||||
|
|
||||||
class GuiExternal
|
|
||||||
: public QController<ControlExternal, GuiView<GuiExternalDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiExternalDialog;
|
friend class GuiExternalDialog;
|
||||||
|
|
||||||
GuiExternal(Dialog &);
|
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;
|
typedef std::map<std::string, QString> MapType;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -83,4 +86,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QEXTERNAL_H
|
#endif // GUIEXTERNAL_H
|
||||||
|
@ -11,24 +11,56 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "GuiFloat.h"
|
#include "GuiFloat.h"
|
||||||
#include "GuiFloatDialog.h"
|
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "FloatPlacement.h"
|
#include "FloatPlacement.h"
|
||||||
|
|
||||||
#include "controllers/ControlFloat.h"
|
|
||||||
|
|
||||||
#include "insets/InsetFloat.h"
|
#include "insets/InsetFloat.h"
|
||||||
|
|
||||||
|
#include <QCloseEvent>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
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)
|
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 frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
#include "GuiFloat_moc.cpp"
|
||||||
|
@ -9,25 +9,49 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QFLOAT_H
|
#ifndef GUIFLOAT_H
|
||||||
#define QFLOAT_H
|
#define GUIFLOAT_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
#include "GuiFloatDialog.h"
|
#include "ui_FloatUi.h"
|
||||||
|
#include "ControlFloat.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
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:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiFloatDialog;
|
friend class GuiFloatDialog;
|
||||||
///
|
///
|
||||||
GuiFloat(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -40,4 +64,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QFLOAT_H
|
#endif // GUIFLOAT_H
|
||||||
|
@ -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"
|
|
@ -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
|
|
@ -9,8 +9,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QT_QFONTEXAMPLE_H
|
#ifndef GUIFONTEXAMPLE_H
|
||||||
#define QT_QFONTEXAMPLE_H
|
#define GUIFONTEXAMPLE_H
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
@ -42,4 +42,4 @@ private:
|
|||||||
|
|
||||||
//} // namespace lyx
|
//} // namespace lyx
|
||||||
|
|
||||||
#endif
|
#endif // GUIFONTEXAMPLE_H
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// -*- C++ -*-
|
// -*- C++ -*-
|
||||||
/**
|
/**
|
||||||
* \file FontMetrics.h
|
* \file GuiFontMetrics.h
|
||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
@ -9,8 +9,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QT4_FONT_METRICS_H
|
#ifndef GUI_FONT_METRICS_H
|
||||||
#define QT4_FONT_METRICS_H
|
#define GUI_FONT_METRICS_H
|
||||||
|
|
||||||
#include "frontends/FontMetrics.h"
|
#include "frontends/FontMetrics.h"
|
||||||
|
|
||||||
@ -26,7 +26,6 @@ namespace frontend {
|
|||||||
class GuiFontMetrics : public FontMetrics
|
class GuiFontMetrics : public FontMetrics
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
GuiFontMetrics(QFont const & font);
|
GuiFontMetrics(QFont const & font);
|
||||||
GuiFontMetrics(QFont const & font, QFont const & smallcaps_font);
|
GuiFontMetrics(QFont const & font, QFont const & smallcaps_font);
|
||||||
|
|
||||||
@ -83,4 +82,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QT4_FONT_METRICS_H
|
#endif // GUI_FONT_METRICS_H
|
||||||
|
@ -16,15 +16,14 @@
|
|||||||
#include "GuiGraphics.h"
|
#include "GuiGraphics.h"
|
||||||
|
|
||||||
#include "CheckedLineEdit.h"
|
#include "CheckedLineEdit.h"
|
||||||
|
#include "debug.h"
|
||||||
#include "LengthCombo.h"
|
#include "LengthCombo.h"
|
||||||
#include "GuiGraphicsDialog.h"
|
|
||||||
#include "Qt2BC.h"
|
|
||||||
#include "qt_helpers.h"
|
|
||||||
|
|
||||||
#include "lengthcommon.h"
|
#include "lengthcommon.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
#include "Qt2BC.h"
|
||||||
|
#include "qt_helpers.h"
|
||||||
|
#include "Validator.h"
|
||||||
|
|
||||||
#include "controllers/ControlGraphics.h"
|
|
||||||
#include "controllers/frontend_helpers.h"
|
#include "controllers/frontend_helpers.h"
|
||||||
|
|
||||||
#include "insets/InsetGraphicsParams.h"
|
#include "insets/InsetGraphicsParams.h"
|
||||||
@ -34,12 +33,17 @@
|
|||||||
#include "support/lyxlib.h"
|
#include "support/lyxlib.h"
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
|
#include "insets/InsetGraphicsParams.h"
|
||||||
|
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QCloseEvent>
|
||||||
|
#include <QLabel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QCheckBox>
|
#include <QValidator>
|
||||||
#include <QLabel>
|
|
||||||
|
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
using lyx::support::float_equal;
|
using lyx::support::float_equal;
|
||||||
using lyx::support::token;
|
using lyx::support::token;
|
||||||
@ -53,13 +57,280 @@ using std::floor;
|
|||||||
using std::vector;
|
using std::vector;
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
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)
|
GuiGraphics::GuiGraphics(Dialog & parent)
|
||||||
: graphics_base_class(parent, _("Graphics"))
|
: GuiView<GuiGraphicsDialog>(parent, _("Graphics"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -420,3 +691,7 @@ bool GuiGraphics::isValid()
|
|||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
|
||||||
|
#include "GuiGraphics_moc.cpp"
|
||||||
|
|
||||||
|
@ -10,28 +10,62 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QGRAPHICS_H
|
#ifndef GUIGRAPHICS_H
|
||||||
#define QGRAPHICS_H
|
#define GUIGRAPHICS_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
#include "GuiGraphicsDialog.h"
|
#include "ui_GraphicsUi.h"
|
||||||
|
#include "ControlGraphics.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
class QString;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlGraphics;
|
class GuiGraphics;
|
||||||
|
|
||||||
///
|
class GuiGraphicsDialog : public QDialog, public Ui::GraphicsUi
|
||||||
class GuiGraphics
|
{
|
||||||
: public QController<ControlGraphics, GuiView<GuiGraphicsDialog> >
|
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 GuiView<GuiGraphicsDialog>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiGraphicsDialog;
|
friend class GuiGraphicsDialog;
|
||||||
///
|
///
|
||||||
GuiGraphics(Dialog &);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
@ -52,4 +86,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QGRAPHICS_H
|
#endif // GUIGRAPHICS_H
|
||||||
|
@ -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"
|
|
@ -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
|
|
@ -46,16 +46,16 @@ namespace lyx {
|
|||||||
namespace graphics {
|
namespace graphics {
|
||||||
|
|
||||||
/// Access to this class is through this static method.
|
/// Access to this class is through this static method.
|
||||||
Image::ImagePtr QLImage::newImage()
|
Image::ImagePtr GuiImage::newImage()
|
||||||
{
|
{
|
||||||
ImagePtr ptr;
|
ImagePtr ptr;
|
||||||
ptr.reset(new QLImage);
|
ptr.reset(new GuiImage);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Return the list of loadable formats.
|
/// Return the list of loadable formats.
|
||||||
Image::FormatList QLImage::loadableFormats()
|
Image::FormatList GuiImage::loadableFormats()
|
||||||
{
|
{
|
||||||
static FormatList fmts;
|
static FormatList fmts;
|
||||||
|
|
||||||
@ -122,38 +122,32 @@ Image::FormatList QLImage::loadableFormats()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QLImage::QLImage()
|
GuiImage::GuiImage(GuiImage const & other)
|
||||||
: Image()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
QLImage::QLImage(QLImage const & other)
|
|
||||||
: Image(other), original_(other.original_),
|
: Image(other), original_(other.original_),
|
||||||
transformed_(other.transformed_),
|
transformed_(other.transformed_),
|
||||||
transformed_pixmap_(other.transformed_pixmap_)
|
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();
|
return transformed_.width();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned int QLImage::getHeight_impl() const
|
unsigned int GuiImage::getHeight_impl() const
|
||||||
{
|
{
|
||||||
return transformed_.height();
|
return transformed_.height();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void QLImage::load_impl(support::FileName const & filename)
|
void GuiImage::load_impl(support::FileName const & filename)
|
||||||
{
|
{
|
||||||
if (!original_.isNull()) {
|
if (!original_.isNull()) {
|
||||||
LYXERR(Debug::GRAPHICS)
|
LYXERR(Debug::GRAPHICS)
|
||||||
@ -198,7 +192,7 @@ QImage & toGray(QImage & img)
|
|||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
|
||||||
bool QLImage::setPixmap_impl(Params const & params)
|
bool GuiImage::setPixmap_impl(Params const & params)
|
||||||
{
|
{
|
||||||
if (original_.isNull() || params.display == NoDisplay)
|
if (original_.isNull() || params.display == NoDisplay)
|
||||||
return false;
|
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())
|
if (transformed_.isNull())
|
||||||
return;
|
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())
|
if (transformed_.isNull())
|
||||||
return;
|
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())
|
if (transformed_.isNull())
|
||||||
return;
|
return;
|
||||||
|
@ -10,20 +10,18 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QLIMAGE_H
|
#ifndef GUIIMAGE_H
|
||||||
#define QLIMAGE_H
|
#define GUIIMAGE_H
|
||||||
|
|
||||||
|
|
||||||
#include "graphics/GraphicsImage.h"
|
#include "graphics/GraphicsImage.h"
|
||||||
|
|
||||||
#include <qimage.h>
|
#include <QImage>
|
||||||
//Added by qt3to4:
|
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace graphics {
|
namespace graphics {
|
||||||
|
|
||||||
class QLImage : public Image {
|
class GuiImage : public Image {
|
||||||
public:
|
public:
|
||||||
/// Access to this class is through this static method.
|
/// Access to this class is through this static method.
|
||||||
static ImagePtr newImage();
|
static ImagePtr newImage();
|
||||||
@ -66,9 +64,9 @@ private:
|
|||||||
virtual void scale_impl(Params const & params);
|
virtual void scale_impl(Params const & params);
|
||||||
|
|
||||||
/// Access to the class is through newImage() and clone.
|
/// Access to the class is through newImage() and clone.
|
||||||
QLImage();
|
GuiImage() {}
|
||||||
///
|
///
|
||||||
QLImage(QLImage const &);
|
GuiImage(GuiImage const &);
|
||||||
|
|
||||||
/// The original loaded image.
|
/// The original loaded image.
|
||||||
QImage original_;
|
QImage original_;
|
||||||
@ -82,4 +80,4 @@ private:
|
|||||||
} // namespace graphics
|
} // namespace graphics
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QLIMAGE_H
|
#endif // GUIIMAGE_H
|
||||||
|
@ -36,7 +36,6 @@ public:
|
|||||||
GuiImplementation();
|
GuiImplementation();
|
||||||
virtual ~GuiImplementation() {}
|
virtual ~GuiImplementation() {}
|
||||||
|
|
||||||
|
|
||||||
virtual LyXView& createRegisteredView();
|
virtual LyXView& createRegisteredView();
|
||||||
virtual bool closeAllViews();
|
virtual bool closeAllViews();
|
||||||
virtual bool unregisterView(int id);
|
virtual bool unregisterView(int id);
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
|
||||||
#include "insets/InsetListingsParams.h"
|
#include "insets/InsetListingsParams.h"
|
||||||
#include "controllers/ControlInclude.h"
|
|
||||||
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
@ -187,11 +186,8 @@ void GuiIncludeDialog::browseClicked()
|
|||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlInclude, GuiView<GuiIncludeDialog> > IncludeBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiInclude::GuiInclude(Dialog & parent)
|
GuiInclude::GuiInclude(Dialog & parent)
|
||||||
: IncludeBase(parent, _("Child Document"))
|
: GuiView<GuiIncludeDialog>(parent, _("Child Document"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QINCLUDE_H
|
#ifndef GUIINCLUDE_H
|
||||||
#define QINCLUDE_H
|
#define GUIINCLUDE_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlInclude.h"
|
||||||
#include "ui_IncludeUi.h"
|
#include "ui_IncludeUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@ -50,16 +50,19 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlInclude;
|
class GuiInclude : public GuiView<GuiIncludeDialog>
|
||||||
|
|
||||||
///
|
|
||||||
class GuiInclude : public QController<ControlInclude, GuiView<GuiIncludeDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiIncludeDialog;
|
friend class GuiIncludeDialog;
|
||||||
///
|
///
|
||||||
GuiInclude(Dialog &);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
@ -81,4 +84,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QINCLUDE_H
|
#endif // GUIINCLUDE_H
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "ControlCommand.h"
|
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "GuiIndex.h"
|
#include "GuiIndex.h"
|
||||||
@ -21,7 +20,6 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QWhatsThis>
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
|
|
||||||
|
|
||||||
@ -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)
|
GuiIndex::GuiIndex(Dialog & parent, docstring const & title, QString const & label)
|
||||||
: IndexBase(parent, title), label_(label)
|
: GuiView<GuiIndexDialog>(parent, title), label_(label)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QINDEX_H
|
#ifndef GUIINDEX_H
|
||||||
#define QINDEX_H
|
#define GUIINDEX_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlCommand.h"
|
||||||
#include "ui_IndexUi.h"
|
#include "ui_IndexUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCloseEvent>
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -39,15 +39,18 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlCommand;
|
class GuiIndex : public GuiView<GuiIndexDialog>
|
||||||
|
|
||||||
class GuiIndex :
|
|
||||||
public QController<ControlCommand, GuiView<GuiIndexDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiIndexDialog;
|
friend class GuiIndexDialog;
|
||||||
|
|
||||||
GuiIndex(Dialog &, docstring const & title, QString const & label);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
@ -65,4 +68,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QINDEX_H
|
#endif // GUIINDEX_H
|
||||||
|
@ -10,14 +10,12 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QLYXKEYSYM_H
|
#ifndef GUIKEYSYM_H
|
||||||
#define QLYXKEYSYM_H
|
#define GUIKEYSYM_H
|
||||||
|
|
||||||
#include "frontends/KeySymbol.h"
|
#include "frontends/KeySymbol.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QKeyEvent>
|
|
||||||
|
|
||||||
|
|
||||||
class QKeyEvent;
|
class QKeyEvent;
|
||||||
|
|
||||||
@ -85,4 +83,4 @@ key_modifier::state q_key_state(Qt::KeyboardModifiers state);
|
|||||||
|
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QLYXKEYSYM_H
|
#endif // GUIKEYSYM_H
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#include "GuiListings.h"
|
#include "GuiListings.h"
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
#include "controllers/ControlListings.h"
|
|
||||||
#include "insets/InsetListingsParams.h"
|
#include "insets/InsetListingsParams.h"
|
||||||
#include "debug.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)
|
GuiListings::GuiListings(Dialog & parent)
|
||||||
: listings_wrap_base_class(parent, _("Program Listing Settings"))
|
: GuiView<GuiListingsDialog>(parent, _("Program Listing Settings"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// -*- C++ -*-
|
// -*- C++ -*-
|
||||||
/**
|
/**
|
||||||
* \file QListings.h
|
* \file GuiListings.h
|
||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
@ -9,14 +9,14 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QLISTINGS_H
|
#ifndef GUILISTINGS_H
|
||||||
#define QLISTINGS_H
|
#define GUILISTINGS_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlListings.h"
|
||||||
#include "ui_ListingsUi.h"
|
#include "ui_ListingsUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCloseEvent>
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -53,13 +53,17 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlListings;
|
class GuiListings : public GuiView<GuiListingsDialog> {
|
||||||
|
|
||||||
class GuiListings : public QController<ControlListings, GuiView<GuiListingsDialog> > {
|
|
||||||
public:
|
public:
|
||||||
friend class GuiListingsDialog;
|
friend class GuiListingsDialog;
|
||||||
|
|
||||||
GuiListings(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -75,4 +79,4 @@ protected:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QLISTINGS_H
|
#endif // GUILISTINGS_H
|
||||||
|
@ -15,12 +15,9 @@
|
|||||||
|
|
||||||
#include "frontends/Application.h"
|
#include "frontends/Application.h"
|
||||||
|
|
||||||
#include "controllers/ControlLog.h"
|
#include <QCloseEvent>
|
||||||
|
#include <QTextBrowser>
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
#include <QPushButton>
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -107,10 +104,9 @@ void LogHighlighter::highlightBlock(QString const & text)
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlLog, GuiView<GuiLogDialog> > LogBase;
|
|
||||||
|
|
||||||
GuiLog::GuiLog(Dialog & parent)
|
GuiLog::GuiLog(Dialog & parent)
|
||||||
: LogBase(parent, docstring())
|
: GuiView<GuiLogDialog>(parent, docstring())
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,12 +13,10 @@
|
|||||||
#define GUILOG_H
|
#define GUILOG_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlLog.h"
|
||||||
|
|
||||||
#include "ui_LogUi.h"
|
#include "ui_LogUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCloseEvent>
|
|
||||||
#include <QSyntaxHighlighter>
|
#include <QSyntaxHighlighter>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -43,14 +41,19 @@ class ControlLog;
|
|||||||
class LogHighlighter;
|
class LogHighlighter;
|
||||||
|
|
||||||
///
|
///
|
||||||
class GuiLog
|
class GuiLog : public GuiView<GuiLogDialog>
|
||||||
: public QController<ControlLog, GuiView<GuiLogDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiLogDialog;
|
friend class GuiLogDialog;
|
||||||
///
|
///
|
||||||
GuiLog(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
|
@ -14,16 +14,13 @@
|
|||||||
|
|
||||||
#include "EmptyTable.h"
|
#include "EmptyTable.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
#include "gettext.h"
|
||||||
#include "controllers/ControlMath.h"
|
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#include <qlineedit.h>
|
#include <QLineEdit>
|
||||||
#include <qpushbutton.h>
|
#include <QPushButton>
|
||||||
#include <qspinbox.h>
|
#include <QSpinBox>
|
||||||
|
|
||||||
#include "gettext.h"
|
|
||||||
|
|
||||||
using std::ostringstream;
|
using std::ostringstream;
|
||||||
using std::string;
|
using std::string;
|
||||||
@ -31,19 +28,8 @@ using std::string;
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
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)
|
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)
|
void GuiMathMatrixDialog::columnsChanged(int)
|
||||||
{
|
{
|
||||||
|
char h_align_str[80] = "c";
|
||||||
int const nx = int(columnsSB->value());
|
int const nx = int(columnsSB->value());
|
||||||
for (int i = 0; i < nx; ++i)
|
for (int i = 0; i < nx; ++i)
|
||||||
h_align_str[i] = 'c';
|
h_align_str[i] = 'c';
|
||||||
@ -111,6 +98,7 @@ void GuiMathMatrixDialog::change_adaptor()
|
|||||||
|
|
||||||
void GuiMathMatrixDialog::slotOK()
|
void GuiMathMatrixDialog::slotOK()
|
||||||
{
|
{
|
||||||
|
char v_align_c[] = "tcb";
|
||||||
char const c = v_align_c[valignCO->currentIndex()];
|
char const c = v_align_c[valignCO->currentIndex()];
|
||||||
string const sh = fromqstr(halignED->text());
|
string const sh = fromqstr(halignED->text());
|
||||||
int const nx = int(columnsSB->value());
|
int const nx = int(columnsSB->value());
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QMATHMATRIXDIALOG_H
|
#ifndef GUIMATHMATRIXDIALOG_H
|
||||||
#define QMATHMATRIXDIALOG_H
|
#define GUIMATHMATRIXDIALOG_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlMath.h"
|
||||||
#include "ui_MathMatrixUi.h"
|
#include "ui_MathMatrixUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@ -43,12 +43,17 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class GuiMathMatrix : public QController<ControlMath, GuiView<GuiMathMatrixDialog> > {
|
class GuiMathMatrix : public GuiView<GuiMathMatrixDialog> {
|
||||||
public:
|
public:
|
||||||
friend class GuiMathMatrixDialog;
|
friend class GuiMathMatrixDialog;
|
||||||
|
|
||||||
GuiMathMatrix(Dialog &);
|
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:
|
private:
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
virtual void update_contents() {}
|
virtual void update_contents() {}
|
||||||
@ -60,4 +65,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QMATHMATRIXDIALOG_H
|
#endif // GUIMATHMATRIXDIALOG_H
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// -*- C++ -*-
|
// -*- C++ -*-
|
||||||
/**
|
/**
|
||||||
* \file qt4/GuiMenubar.h
|
* \file GuiMenubar.h
|
||||||
* This file is part of LyX, the document processor.
|
* This file is part of LyX, the document processor.
|
||||||
* Licence details can be found in the file COPYING.
|
* Licence details can be found in the file COPYING.
|
||||||
*
|
*
|
||||||
@ -10,8 +10,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QLMENUBAR_H
|
#ifndef GUIMENUBAR_H
|
||||||
#define QLMENUBAR_H
|
#define GUIMENUBAR_H
|
||||||
|
|
||||||
#include "GuiPopupMenu.h"
|
#include "GuiPopupMenu.h"
|
||||||
|
|
||||||
@ -74,4 +74,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QLMENUBAR_H
|
#endif // GUIMENUBAR_H
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "GuiNomencl.h"
|
#include "GuiNomencl.h"
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "ButtonController.h"
|
#include "ButtonController.h"
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
@ -84,11 +85,8 @@ void GuiNomenclDialog::closeEvent(QCloseEvent * e)
|
|||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlCommand, GuiView<GuiNomenclDialog> > NomenBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiNomencl::GuiNomencl(Dialog & parent, docstring const & title)
|
GuiNomencl::GuiNomencl(Dialog & parent, docstring const & title)
|
||||||
: NomenBase(parent, title)
|
: GuiView<GuiNomenclDialog>(parent, title)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,16 +11,15 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QNOMENCL_H
|
#ifndef GUINOMENCL_H
|
||||||
#define QNOMENCL_H
|
#define GUINOMENCL_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlCommand.h"
|
||||||
#include "ui_NomenclUi.h"
|
#include "ui_NomenclUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
class QCloseEvent;
|
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -42,15 +41,18 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlCommand;
|
class GuiNomencl : public GuiView<GuiNomenclDialog>
|
||||||
|
|
||||||
class GuiNomencl :
|
|
||||||
public QController<ControlCommand, GuiView<GuiNomenclDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiNomenclDialog;
|
friend class GuiNomenclDialog;
|
||||||
|
|
||||||
GuiNomencl(Dialog &, docstring const & title);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
@ -65,4 +67,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QNOMENCL_H
|
#endif // GUINOMENCL_H
|
||||||
|
@ -13,8 +13,6 @@
|
|||||||
#include "GuiNote.h"
|
#include "GuiNote.h"
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
|
|
||||||
#include "controllers/ControlNote.h"
|
|
||||||
|
|
||||||
#include "insets/InsetNote.h"
|
#include "insets/InsetNote.h"
|
||||||
|
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
@ -63,11 +61,9 @@ void GuiNoteDialog::change_adaptor()
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlNote, GuiView<GuiNoteDialog> > NoteBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiNote::GuiNote(Dialog & parent)
|
GuiNote::GuiNote(Dialog & parent)
|
||||||
: NoteBase(parent, _("Note Settings"))
|
: GuiView<GuiNoteDialog>(parent, _("Note Settings"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,14 +9,15 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QNOTE_H
|
#ifndef GUINOTE_H
|
||||||
#define QNOTE_H
|
#define GUINOTE_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlNote.h"
|
||||||
#include "ui_NoteUi.h"
|
#include "ui_NoteUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
class QCloseEvent;
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -36,17 +37,21 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlNote;
|
|
||||||
|
|
||||||
/** This class provides a QT implementation of the Note Dialog.
|
/** This class provides a QT implementation of the Note Dialog.
|
||||||
*/
|
*/
|
||||||
class GuiNote : public QController<ControlNote, GuiView<GuiNoteDialog> >
|
class GuiNote : public GuiView<GuiNoteDialog>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiNoteDialog;
|
friend class GuiNoteDialog;
|
||||||
|
|
||||||
/// Constructor
|
/// Constructor
|
||||||
GuiNote(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -59,4 +64,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QNOTE_H
|
#endif // GUINOTE_H
|
||||||
|
@ -60,7 +60,7 @@ QString generateStringSignature(QString const & str, Font const & f)
|
|||||||
|
|
||||||
} // anon namespace
|
} // anon namespace
|
||||||
|
|
||||||
QLPainter::QLPainter(QPaintDevice * device)
|
GuiPainter::GuiPainter(QPaintDevice * device)
|
||||||
: QPainter(device), Painter()
|
: QPainter(device), Painter()
|
||||||
{
|
{
|
||||||
// new QPainter has default QPen:
|
// new QPainter has default QPen:
|
||||||
@ -70,14 +70,14 @@ QLPainter::QLPainter(QPaintDevice * device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QLPainter::~QLPainter()
|
GuiPainter::~GuiPainter()
|
||||||
{
|
{
|
||||||
QPainter::end();
|
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)
|
Painter::line_style ls, Painter::line_width lw)
|
||||||
{
|
{
|
||||||
if (col == current_color_ && ls == current_ls_ && lw == current_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())
|
if (!isDrawingEnabled())
|
||||||
return;
|
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,
|
Color_color col,
|
||||||
line_style ls,
|
line_style ls,
|
||||||
line_width lw)
|
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,
|
Color_color col,
|
||||||
line_style ls,
|
line_style ls,
|
||||||
line_width lw)
|
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,
|
Color_color col,
|
||||||
line_style ls,
|
line_style ls,
|
||||||
line_width lw)
|
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));
|
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)
|
int a1, int a2, Color_color col)
|
||||||
{
|
{
|
||||||
if (!isDrawingEnabled())
|
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 =
|
graphics::GuiImage const & qlimage =
|
||||||
static_cast<graphics::QLImage const &>(i);
|
static_cast<graphics::GuiImage const &>(i);
|
||||||
|
|
||||||
fillRectangle(x, y, w, h, Color::graphicsbg);
|
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);
|
docstring s(1, c);
|
||||||
return text(x, y, s, f);
|
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)
|
QString const & s, Font const & f)
|
||||||
{
|
{
|
||||||
Font smallfont(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)
|
Font const & f)
|
||||||
{
|
{
|
||||||
/* Caution: The following ucs4 to QString conversions work for symbol fonts
|
/* 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;
|
int const h = mA + mD;
|
||||||
pm = QPixmap(w, h);
|
pm = QPixmap(w, h);
|
||||||
pm.fill(Qt::transparent);
|
pm.fill(Qt::transparent);
|
||||||
QLPainter p(&pm);
|
GuiPainter p(&pm);
|
||||||
p.setQPainterPen(f.realColor());
|
p.setQPainterPen(f.realColor());
|
||||||
if (p.font() != fi.font)
|
if (p.font() != fi.font)
|
||||||
p.setFont(fi.font);
|
p.setFont(fi.font);
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QLPAINTER_H
|
#ifndef GUIPAINTER_H
|
||||||
#define QLPAINTER_H
|
#define GUIPAINTER_H
|
||||||
|
|
||||||
#include "frontends/Painter.h"
|
#include "frontends/Painter.h"
|
||||||
|
|
||||||
@ -28,12 +28,12 @@ class Font;
|
|||||||
namespace frontend {
|
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:
|
public:
|
||||||
QLPainter(QPaintDevice *);
|
GuiPainter(QPaintDevice *);
|
||||||
virtual ~QLPainter();
|
virtual ~GuiPainter();
|
||||||
|
|
||||||
/// draw a line from point to point
|
/// draw a line from point to point
|
||||||
virtual void line(
|
virtual void line(
|
||||||
@ -116,4 +116,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QLPAINTER_H
|
#endif // GUIPAINTER_H
|
||||||
|
@ -18,11 +18,10 @@
|
|||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "ParagraphParameters.h"
|
#include "ParagraphParameters.h"
|
||||||
#include "Spacing.h"
|
#include "Spacing.h"
|
||||||
|
#include "frontend_helpers.h"
|
||||||
#include "controllers/ControlParagraph.h"
|
|
||||||
#include "controllers/frontend_helpers.h"
|
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
|
#include <QCloseEvent>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
@ -163,12 +162,9 @@ LyXAlignment GuiParagraphDialog::getAlignmentFromDialog()
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlParagraph, GuiView<GuiParagraphDialog> >
|
|
||||||
ParagraphBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiParagraph::GuiParagraph(Dialog & parent)
|
GuiParagraph::GuiParagraph(Dialog & parent)
|
||||||
: ParagraphBase(parent, _("Paragraph Settings"))
|
: GuiView<GuiParagraphDialog>(parent, _("Paragraph Settings"))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -10,16 +10,15 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QPARAGRAPH_H
|
#ifndef GUIPARAGRAPH_H
|
||||||
#define QPARAGRAPH_H
|
#define GUIPARAGRAPH_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlParagraph.h"
|
||||||
#include "Layout.h"
|
#include "Layout.h"
|
||||||
#include "ui_ParagraphUi.h"
|
#include "ui_ParagraphUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCloseEvent>
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
@ -55,15 +54,18 @@ protected Q_SLOTS:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlParagraph;
|
class GuiParagraph : public GuiView<GuiParagraphDialog>
|
||||||
|
|
||||||
class GuiParagraph
|
|
||||||
: public QController<ControlParagraph, GuiView<GuiParagraphDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiParagraphDialog;
|
friend class GuiParagraphDialog;
|
||||||
|
|
||||||
GuiParagraph(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QLPOPUPMENU_H
|
#ifndef GUIPOPUPMENU_H
|
||||||
#define QLPOPUPMENU_H
|
#define GUIPOPUPMENU_H
|
||||||
|
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
@ -23,11 +23,13 @@ namespace frontend {
|
|||||||
class GuiMenubar;
|
class GuiMenubar;
|
||||||
|
|
||||||
/// a submenu
|
/// a submenu
|
||||||
class GuiPopupMenu : public QMenu {
|
class GuiPopupMenu : public QMenu
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
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
|
/// populates the menu or one of its submenu
|
||||||
/// This is used as a recursive function
|
/// This is used as a recursive function
|
||||||
@ -37,21 +39,16 @@ public Q_SLOTS:
|
|||||||
/// populate the toplevel menu and all children
|
/// populate the toplevel menu and all children
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
/// our owning menubar
|
|
||||||
GuiMenubar * owner_;
|
|
||||||
|
|
||||||
/// the name of this menu
|
|
||||||
docstring name_;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Get a Menu item label from the menu backend
|
/// Get a Menu item label from the menu backend
|
||||||
docstring const getLabel(MenuItem const & mi);
|
docstring const getLabel(MenuItem const & mi);
|
||||||
|
|
||||||
/// add binding keys a the menu item label.
|
/// add binding keys a the menu item label.
|
||||||
void addBinding(docstring & label, MenuItem const & mi);
|
void addBinding(docstring & label, MenuItem const & mi);
|
||||||
|
|
||||||
|
/// our owning menubar
|
||||||
|
GuiMenubar * owner_;
|
||||||
|
/// the name of this menu
|
||||||
|
docstring name_;
|
||||||
/// Top Level Menu
|
/// Top Level Menu
|
||||||
Menu topLevelMenu_;
|
Menu topLevelMenu_;
|
||||||
};
|
};
|
||||||
@ -59,4 +56,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QLPOPUPMENU_H
|
#endif // GUIPOPUPMENU_H
|
||||||
|
@ -2015,10 +2015,9 @@ void GuiPrefsDialog::updateRc(LyXRC const & rc)
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlPrefs, GuiView<GuiPrefsDialog> > PrefsBase;
|
|
||||||
|
|
||||||
GuiPrefs::GuiPrefs(Dialog & parent)
|
GuiPrefs::GuiPrefs(Dialog & parent)
|
||||||
: PrefsBase(parent, _("Preferences"))
|
: GuiView<GuiPrefsDialog>(parent, _("Preferences"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,21 +9,16 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QPREFS_H
|
#ifndef GUIPREFS_H
|
||||||
#define QPREFS_H
|
#define GUIPREFS_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlPrefs.h"
|
||||||
#include "Color.h"
|
#include "Color.h"
|
||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
|
|
||||||
#include "ui_PrefsUi.h"
|
#include "ui_PrefsUi.h"
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include <QCloseEvent>
|
|
||||||
|
|
||||||
#include "ui_PrefPlaintextUi.h"
|
#include "ui_PrefPlaintextUi.h"
|
||||||
#include "ui_PrefDateUi.h"
|
#include "ui_PrefDateUi.h"
|
||||||
#include "ui_PrefKeyboardUi.h"
|
#include "ui_PrefKeyboardUi.h"
|
||||||
@ -42,6 +37,10 @@
|
|||||||
#include "ui_PrefUi.h"
|
#include "ui_PrefUi.h"
|
||||||
#include "ui_PrefIdentityUi.h"
|
#include "ui_PrefIdentityUi.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
|
|
||||||
class Converters;
|
class Converters;
|
||||||
@ -371,10 +370,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlPrefs;
|
class GuiPrefs : public GuiView<GuiPrefsDialog>
|
||||||
|
|
||||||
class GuiPrefs
|
|
||||||
: public QController<ControlPrefs, GuiView<GuiPrefsDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GuiPrefs(Dialog &);
|
GuiPrefs(Dialog &);
|
||||||
@ -382,7 +378,12 @@ public:
|
|||||||
Converters & converters();
|
Converters & converters();
|
||||||
Formats & formats();
|
Formats & formats();
|
||||||
Movers & movers();
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -398,4 +399,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QPREFS_H
|
#endif // GUIPREFS_H
|
||||||
|
@ -12,14 +12,11 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include "GuiPrint.h"
|
#include "GuiPrint.h"
|
||||||
#include "GuiPrintDialog.h"
|
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "PrinterParams.h"
|
#include "PrinterParams.h"
|
||||||
|
|
||||||
#include "controllers/ControlPrint.h"
|
|
||||||
|
|
||||||
#include "support/os.h"
|
#include "support/os.h"
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
@ -28,16 +25,87 @@
|
|||||||
#include <QSpinBox>
|
#include <QSpinBox>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
using lyx::support::os::internal_path;
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
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)
|
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,
|
PrinterParams const pp(t,
|
||||||
fromqstr(dialog_->printerED->text()),
|
fromqstr(dialog_->printerED->text()),
|
||||||
internal_path(fromqstr(dialog_->fileED->text())),
|
support::os::internal_path(fromqstr(dialog_->fileED->text())),
|
||||||
dialog_->allRB->isChecked(),
|
dialog_->allRB->isChecked(),
|
||||||
dialog_->fromED->text().toUInt(),
|
dialog_->fromED->text().toUInt(),
|
||||||
dialog_->toED->text().toUInt(),
|
dialog_->toED->text().toUInt(),
|
||||||
@ -113,3 +181,5 @@ void GuiPrint::apply()
|
|||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
|
#include "GuiPrint_moc.cpp"
|
||||||
|
@ -10,26 +10,49 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QPRINT_H
|
#ifndef GUIPRINT_H
|
||||||
#define QPRINT_H
|
#define GUIPRINT_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
#include "GuiPrintDialog.h"
|
#include "ControlPrint.h"
|
||||||
|
#include "ui_PrintUi.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlPrint;
|
class GuiPrint;
|
||||||
|
|
||||||
///
|
class GuiPrintDialog : public QDialog, public Ui::PrintUi {
|
||||||
class GuiPrint
|
Q_OBJECT
|
||||||
: public QController<ControlPrint, GuiView<GuiPrintDialog> >
|
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 GuiView<GuiPrintDialog>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiPrintDialog;
|
friend class GuiPrintDialog;
|
||||||
///
|
///
|
||||||
GuiPrint(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply();
|
virtual void apply();
|
||||||
@ -42,4 +65,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QPRINT_H
|
#endif // GUIPRINT_H
|
||||||
|
@ -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"
|
|
@ -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
|
|
@ -15,8 +15,7 @@
|
|||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "controllers/ButtonController.h"
|
#include "ButtonController.h"
|
||||||
#include "controllers/ControlRef.h"
|
|
||||||
|
|
||||||
#include "insets/InsetRef.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)
|
GuiRef::GuiRef(Dialog & parent)
|
||||||
: RefBase(parent, _("Cross-reference")),
|
: GuiView<GuiRefDialog>(parent, _("Cross-reference")),
|
||||||
sort_(false), at_ref_(false)
|
sort_(false), at_ref_(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QREF_H
|
#ifndef GUIREF_H
|
||||||
#define QREF_H
|
#define GUIREF_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlRef.h"
|
||||||
#include "ui_RefUi.h"
|
#include "ui_RefUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@ -21,7 +21,6 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class QListWidgetItem;
|
class QListWidgetItem;
|
||||||
class QCloseEvent;
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -53,17 +52,19 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlRef;
|
class GuiRef : public GuiView<GuiRefDialog>
|
||||||
|
|
||||||
// full qualification because qt4 has also a ControlRef type
|
|
||||||
class GuiRef
|
|
||||||
: public QController<lyx::frontend::ControlRef, GuiView<GuiRefDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiRefDialog;
|
friend class GuiRefDialog;
|
||||||
|
|
||||||
GuiRef(Dialog &);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
|
|
||||||
@ -77,37 +78,27 @@ private:
|
|||||||
|
|
||||||
/// is name allowed for this ?
|
/// is name allowed for this ?
|
||||||
bool nameAllowed();
|
bool nameAllowed();
|
||||||
|
|
||||||
/// is type allowed for this ?
|
/// is type allowed for this ?
|
||||||
bool typeAllowed();
|
bool typeAllowed();
|
||||||
|
|
||||||
/// go to current reference
|
/// go to current reference
|
||||||
void gotoRef();
|
void gotoRef();
|
||||||
|
|
||||||
/// set go back button
|
/// set go back button
|
||||||
void setGoBack();
|
void setGoBack();
|
||||||
|
|
||||||
/// set goto ref button
|
/// set goto ref button
|
||||||
void setGotoRef();
|
void setGotoRef();
|
||||||
|
|
||||||
/// re-enter references
|
/// re-enter references
|
||||||
void redoRefs();
|
void redoRefs();
|
||||||
|
|
||||||
/// update references
|
/// update references
|
||||||
void updateRefs();
|
void updateRefs();
|
||||||
|
|
||||||
/// sort or not persistent state
|
/// sort or not persistent state
|
||||||
bool sort_;
|
bool sort_;
|
||||||
|
|
||||||
/// went to a reference ?
|
/// went to a reference ?
|
||||||
bool at_ref_;
|
bool at_ref_;
|
||||||
|
|
||||||
/// the last reference entered or examined
|
/// the last reference entered or examined
|
||||||
QString last_reference_;
|
QString last_reference_;
|
||||||
|
|
||||||
/// store the buffer settings
|
/// store the buffer settings
|
||||||
int restored_buffer_;
|
int restored_buffer_;
|
||||||
|
|
||||||
/// the references
|
/// the references
|
||||||
std::vector<docstring> refs_;
|
std::vector<docstring> refs_;
|
||||||
};
|
};
|
||||||
@ -115,4 +106,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QREF_H
|
#endif // GUIREF_H
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
|
|
||||||
#include "controllers/ControlSearch.h"
|
|
||||||
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
|
|
||||||
@ -132,11 +130,8 @@ void GuiSearchDialog::replaceallClicked()
|
|||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
typedef QController<ControlSearch, GuiView<GuiSearchDialog> > SearchBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiSearch::GuiSearch(Dialog & parent)
|
GuiSearch::GuiSearch(Dialog & parent)
|
||||||
: SearchBase(parent, _("Find and Replace"))
|
: GuiView<GuiSearchDialog>(parent, _("Find and Replace"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,11 +9,13 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QSEARCH_H
|
#ifndef GUISEARCH_H
|
||||||
#define QSEARCH_H
|
#define GUISEARCH_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlSearch.h"
|
||||||
#include "ui_SearchUi.h"
|
#include "ui_SearchUi.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
@ -21,8 +23,6 @@
|
|||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class ControlSearch;
|
|
||||||
|
|
||||||
class GuiSearch;
|
class GuiSearch;
|
||||||
|
|
||||||
class GuiSearchDialog : public QDialog, public Ui::SearchUi {
|
class GuiSearchDialog : public QDialog, public Ui::SearchUi {
|
||||||
@ -40,21 +40,23 @@ protected:
|
|||||||
virtual void closeEvent(QCloseEvent * e);
|
virtual void closeEvent(QCloseEvent * e);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// add a string to the combo if needed
|
|
||||||
void remember(std::string const & find, QComboBox & combo);
|
|
||||||
|
|
||||||
GuiSearch * form_;
|
GuiSearch * form_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class GuiSearch
|
class GuiSearch : public GuiView<GuiSearchDialog>
|
||||||
: public QController<ControlSearch, GuiView<GuiSearchDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiSearchDialog;
|
friend class GuiSearchDialog;
|
||||||
///
|
///
|
||||||
GuiSearch(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
@ -74,4 +76,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QSEARCH_H
|
#endif // GUISEARCH_H
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
#include "Format.h"
|
#include "Format.h"
|
||||||
|
|
||||||
#include "controllers/ControlSendto.h"
|
|
||||||
|
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QCloseEvent>
|
#include <QCloseEvent>
|
||||||
@ -77,11 +75,9 @@ void GuiSendtoDialog::closeEvent(QCloseEvent * e)
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlSendto, GuiView<GuiSendtoDialog> > SendtoBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiSendto::GuiSendto(Dialog & parent)
|
GuiSendto::GuiSendto(Dialog & parent)
|
||||||
: SendtoBase(parent, _("Send Document to Command"))
|
: GuiView<GuiSendtoDialog>(parent, _("Send Document to Command"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,17 +9,17 @@
|
|||||||
* Full author contact details are available in file CREDITS.
|
* Full author contact details are available in file CREDITS.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef QSENDTO_H
|
#ifndef GUISENDTO_H
|
||||||
#define QSENDTO_H
|
#define GUISENDTO_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlSendto.h"
|
||||||
#include "ui_SendtoUi.h"
|
#include "ui_SendtoUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class QCloseEvent;
|
|
||||||
class QListWidgetItem;
|
class QListWidgetItem;
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -45,18 +45,21 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlSendto;
|
|
||||||
|
|
||||||
/** This class provides a Qt implementation of the Custom Export Dialog.
|
/** This class provides a Qt implementation of the Custom Export Dialog.
|
||||||
*/
|
*/
|
||||||
class GuiSendto
|
class GuiSendto : public GuiView<GuiSendtoDialog>
|
||||||
: public QController<ControlSendto, GuiView<GuiSendtoDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
///
|
///
|
||||||
friend class GuiSendtoDialog;
|
friend class GuiSendtoDialog;
|
||||||
///
|
///
|
||||||
GuiSendto(Dialog &);
|
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:
|
protected:
|
||||||
virtual bool isValid();
|
virtual bool isValid();
|
||||||
private:
|
private:
|
||||||
@ -73,4 +76,4 @@ private:
|
|||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
} // namespace lyx
|
} // namespace lyx
|
||||||
|
|
||||||
#endif // QSENDTO_H
|
#endif // GUISENDTO_H
|
||||||
|
@ -14,10 +14,9 @@
|
|||||||
#include "Qt2BC.h"
|
#include "Qt2BC.h"
|
||||||
#include "qt_helpers.h"
|
#include "qt_helpers.h"
|
||||||
|
|
||||||
#include "controllers/ControlShowFile.h"
|
|
||||||
|
|
||||||
#include <QTextBrowser>
|
#include <QTextBrowser>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
#include <QCloseEvent>
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
@ -49,12 +48,9 @@ void GuiShowFileDialog::closeEvent(QCloseEvent * e)
|
|||||||
//
|
//
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
typedef QController<ControlShowFile, GuiView<GuiShowFileDialog> >
|
|
||||||
ShowFileBase;
|
|
||||||
|
|
||||||
|
|
||||||
GuiShowFile::GuiShowFile(Dialog & parent)
|
GuiShowFile::GuiShowFile(Dialog & parent)
|
||||||
: ShowFileBase(parent, _("Show File"))
|
: GuiView<GuiShowFileDialog>(parent, _("Show File"))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,18 +13,19 @@
|
|||||||
#define QSHOWFILE_H
|
#define QSHOWFILE_H
|
||||||
|
|
||||||
#include "GuiDialogView.h"
|
#include "GuiDialogView.h"
|
||||||
|
#include "ControlShowFile.h"
|
||||||
#include "ui_ShowFileUi.h"
|
#include "ui_ShowFileUi.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QCloseEvent>
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
namespace frontend {
|
namespace frontend {
|
||||||
|
|
||||||
class GuiShowFile;
|
class GuiShowFile;
|
||||||
|
|
||||||
class GuiShowFileDialog : public QDialog, public Ui::ShowFileUi {
|
class GuiShowFileDialog : public QDialog, public Ui::ShowFileUi
|
||||||
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
GuiShowFileDialog(GuiShowFile * form);
|
GuiShowFileDialog(GuiShowFile * form);
|
||||||
@ -35,15 +36,18 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ControlShowFile;
|
class GuiShowFile : public GuiView<GuiShowFileDialog>
|
||||||
|
|
||||||
class GuiShowFile
|
|
||||||
: public QController<ControlShowFile, GuiView<GuiShowFileDialog> >
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
friend class GuiShowFileDialog;
|
friend class GuiShowFileDialog;
|
||||||
|
|
||||||
GuiShowFile(Dialog &);
|
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:
|
private:
|
||||||
/// Apply changes
|
/// Apply changes
|
||||||
virtual void apply() {}
|
virtual void apply() {}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user