X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiGraphics.cpp;h=b48c2fd06f0c2231cc1d088a744e711538d37165;hb=ba76bf5eb85db5a10839fccee3430d906d3f7b70;hp=f886fe829fb956584a3a5db90d42423d367bd0a0;hpb=c9a7e8c4169e7f45b9bfa6859fe6765adb0bc3a7;p=lyx.git diff --git a/src/frontends/qt4/GuiGraphics.cpp b/src/frontends/qt4/GuiGraphics.cpp index f886fe829f..b48c2fd06f 100644 --- a/src/frontends/qt4/GuiGraphics.cpp +++ b/src/frontends/qt4/GuiGraphics.cpp @@ -43,7 +43,6 @@ #include #include -#include #include #include #include @@ -113,11 +112,10 @@ vector getRotationOriginData(); GuiGraphics::GuiGraphics(GuiView & lv) - : GuiDialog(lv, "graphics") + : GuiDialog(lv, "graphics", qt_("Graphics")) { setupUi(this); - setViewTitle(_("Graphics")); - + //main buttons connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK())); connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply())); @@ -127,6 +125,8 @@ GuiGraphics::GuiGraphics(GuiView & lv) //graphics pane connect(filename, SIGNAL(textChanged(const QString &)), this, SLOT(change_adaptor())); + connect(embedCB, SIGNAL(toggled(bool)), + this, SLOT(change_adaptor())); connect(WidthCB, SIGNAL( clicked()), this, SLOT(change_adaptor())); connect(HeightCB, SIGNAL( clicked()), @@ -267,13 +267,6 @@ void GuiGraphics::change_bb() } -void GuiGraphics::closeEvent(QCloseEvent * e) -{ - slotClose(); - GuiDialog::closeEvent(e); -} - - void GuiGraphics::on_browsePB_clicked() { docstring const str = browse(qstring_to_ucs4(filename->text())); @@ -303,12 +296,6 @@ void GuiGraphics::on_filename_textChanged(const QString & filename) } -void GuiGraphics::on_embedCB_toggled(bool) -{ - changed(); -} - - void GuiGraphics::setAutoText() { if (scaleCB->isChecked())