]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiInclude.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiInclude.cpp
index b728efcafe2a708d5b8d2a4c8345d839883f2380..08da8668bf5d29d3c1558bba7f70b87ded202200 100644 (file)
@@ -26,6 +26,7 @@
 #include "support/os.h"
 #include "support/lstrings.h"
 #include "support/FileFilterList.h"
+#include "support/FileName.h"
 #include "support/filetools.h"
 
 #include "insets/InsetListingsParams.h"
@@ -58,7 +59,6 @@ GuiInclude::GuiInclude(GuiView & lv)
                this, SLOT(change_adaptor()));
        connect(editPB, SIGNAL(clicked()), this, SLOT(edit()));
        connect(browsePB, SIGNAL(clicked()), this, SLOT(browse()));
-       connect(embedCB, SIGNAL(toggled(bool)), this, SLOT(change_adaptor()));
        connect(typeCO, SIGNAL(activated(int)), this, SLOT(change_adaptor()));
        connect(typeCO, SIGNAL(activated(int)), this, SLOT(typeChanged(int)));
        connect(previewCB, SIGNAL(clicked()), this, SLOT(change_adaptor()));
@@ -170,7 +170,6 @@ void GuiInclude::typeChanged(int v)
 void GuiInclude::updateContents()
 {
        filenameED->setText(toqstr(params_["filename"]));
-       embedCB->setCheckState(params_["embed"].empty() ?  Qt::Unchecked : Qt::Checked);
 
        visiblespaceCB->setChecked(false);
        visiblespaceCB->setEnabled(false);
@@ -240,7 +239,6 @@ void GuiInclude::updateContents()
 void GuiInclude::applyView()
 {
        params_["filename"] = from_utf8(internal_path(fromqstr(filenameED->text())));
-       params_["embed"] = embedCB->checkState() == Qt::Checked ? _("true") : _("false");
        params_.preview(previewCB->isChecked());
 
        int const item = typeCO->currentIndex();