From: Jürgen Spitzmüller Date: Mon, 24 Mar 2008 09:32:34 +0000 (+0000) Subject: * src/frontends/qt4/GuiGraphics.{cpp,h}: X-Git-Tag: 1.6.10~5475 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c6007086b1feb5c57c86d660da369b9006ff40dd;p=features.git * src/frontends/qt4/GuiGraphics.{cpp,h}: * src/frontends/qt4/ui/GraphicsUi.ui: - now that we have a context menu to edit graphics, remove the Edit button from the dialog, as discussed in this thread: http://marc.info/?l=lyx-devel&m=118344997913166&w=2 The same should be done for other insets that have an edit function. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23911 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiGraphics.cpp b/src/frontends/qt4/GuiGraphics.cpp index a7398a17b7..107813006f 100644 --- a/src/frontends/qt4/GuiGraphics.cpp +++ b/src/frontends/qt4/GuiGraphics.cpp @@ -282,15 +282,8 @@ void GuiGraphics::on_getPB_clicked() } -void GuiGraphics::on_editPB_clicked() -{ - editGraphics(); -} - - void GuiGraphics::on_filename_textChanged(const QString & filename) { - editPB->setDisabled(filename.isEmpty()); EmbeddedFile file = EmbeddedFile(fromqstr(filename), fromqstr(bufferFilepath())); } @@ -570,9 +563,6 @@ void GuiGraphics::updateContents() else origin->setCurrentIndex(0); - // disable edit button when no filename is present - editPB->setDisabled(filename->text().isEmpty()); - //// latex section latexoptions->setText(toqstr(igp.special)); } @@ -788,15 +778,6 @@ bool GuiGraphics::isFilenameValid(string const & fname) const } -void GuiGraphics::editGraphics() -{ - applyView(); - string const lfun = - InsetGraphicsMailer::params2string(params_, buffer()); - dispatch(FuncRequest(LFUN_GRAPHICS_EDIT, lfun)); -} - - namespace { char const * const bb_units[] = { "bp", "cm", "mm", "in" }; diff --git a/src/frontends/qt4/GuiGraphics.h b/src/frontends/qt4/GuiGraphics.h index 2e8e2235e0..0e7cb946d4 100644 --- a/src/frontends/qt4/GuiGraphics.h +++ b/src/frontends/qt4/GuiGraphics.h @@ -45,7 +45,6 @@ private Q_SLOTS: void change_bb(); void on_browsePB_clicked(); void on_getPB_clicked(); - void on_editPB_clicked(); void on_filename_textChanged(const QString &); void on_scaleCB_toggled(bool); void on_WidthCB_toggled(bool); @@ -81,8 +80,6 @@ private: bool bbChanged; /// test if file exist bool isFilenameValid(std::string const & fname) const; - /// edit file - void editGraphics(); private: /// diff --git a/src/frontends/qt4/ui/GraphicsUi.ui b/src/frontends/qt4/ui/GraphicsUi.ui index a921de4423..2a44168516 100644 --- a/src/frontends/qt4/ui/GraphicsUi.ui +++ b/src/frontends/qt4/ui/GraphicsUi.ui @@ -56,19 +56,6 @@ - - - - &Edit - - - false - - - false - - - @@ -751,7 +738,6 @@ TabWidget filename browsePB - editPB scaleCB Scale WidthCB