From: Bo Peng Date: Mon, 29 Oct 2007 04:07:38 +0000 (+0000) Subject: Add initial embedding files panel in the Document->Settings dialog X-Git-Tag: 1.6.10~7627 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=97db33209fd4ff44397c1b6c6b292aa13c25dd71;p=features.git Add initial embedding files panel in the Document->Settings dialog git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21251 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index 720234f5f5..5306c82cac 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -933,6 +933,7 @@ src_frontends_qt4_ui_files = Split(''' DocumentUi.ui ERTUi.ui ErrorListUi.ui + EmbeddedFilesUi.ui ExternalUi.ui FloatPlacementUi.ui FloatUi.ui diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 48629ccc6f..8ed5791193 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -623,6 +623,18 @@ GuiDocument::GuiDocument(LyXView & lv) connect(bulletsModule, SIGNAL(changed()), this, SLOT(change_adaptor())); + // embedded files + embeddedFilesModule = new UiWidget; + connect(embeddedFilesModule, SIGNAL(changed()), + this, SLOT(change_adaptor())); + + connect(embeddedFilesModule->bundleCB, SIGNAL(toggled(bool)), + this, SLOT(change_adaptor())); + connect(embeddedFilesModule->addPB, SIGNAL(clicked()), + this, SLOT(change_adaptor())); + connect(embeddedFilesModule->removePB, SIGNAL(clicked()), + this, SLOT(change_adaptor())); + // PDF support pdfSupportModule = new UiWidget; @@ -679,6 +691,7 @@ GuiDocument::GuiDocument(LyXView & lv) docPS->addPanel(floatModule, _("Float Placement")); docPS->addPanel(bulletsModule, _("Bullets")); docPS->addPanel(branchesModule, _("Branches")); + docPS->addPanel(embeddedFilesModule, _("Embedded Files")); docPS->addPanel(preambleModule, _("LaTeX Preamble")); docPS->setCurrentPanel(_("Document Class")); // FIXME: hack to work around resizing bug in Qt >= 4.2 @@ -1258,6 +1271,9 @@ void GuiDocument::apply(BufferParams & params) else pdf.pagemode.clear(); pdf.quoted_options = fromqstr(pdfSupportModule->optionsLE->text()); + + // Embedded files + // FIXME } diff --git a/src/frontends/qt4/GuiDocument.h b/src/frontends/qt4/GuiDocument.h index 0c13da6801..424fc33e4f 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -23,6 +23,7 @@ #include "support/types.h" #include "ui_DocumentUi.h" +#include "ui_EmbeddedFilesUi.h" #include "ui_FontUi.h" #include "ui_TextLayoutUi.h" #include "ui_MathsUi.h" @@ -122,6 +123,7 @@ private: UiWidget *mathsModule; UiWidget *latexModule; UiWidget *pdfSupportModule; + UiWidget *embeddedFilesModule; PreambleModule *preambleModule; GuiBranches *branchesModule; diff --git a/src/frontends/qt4/Makefile.am b/src/frontends/qt4/Makefile.am index b54681a41a..a58738f787 100644 --- a/src/frontends/qt4/Makefile.am +++ b/src/frontends/qt4/Makefile.am @@ -242,6 +242,7 @@ UIFILES = \ ErrorListUi.ui \ ERTUi.ui \ ExternalUi.ui \ + EmbeddedFilesUi.ui \ FloatPlacementUi.ui \ FloatUi.ui \ FontUi.ui \ diff --git a/src/frontends/qt4/ui/EmbeddedFilesUi.ui b/src/frontends/qt4/ui/EmbeddedFilesUi.ui new file mode 100644 index 0000000000..afbf0cfc04 --- /dev/null +++ b/src/frontends/qt4/ui/EmbeddedFilesUi.ui @@ -0,0 +1,84 @@ + + EmbeddedFilesUi + + + + 0 + 0 + 409 + 346 + + + + EmbeddedFiles + + + + 9 + + + 6 + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Remove + + + + + + + Add + + + + + + + + + + Extra embedded files: + + + + + + + + + + Save this document in bundled format + + + + + + + Embedded files: + + + + + + + + qt_helpers.h + + + +