* 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
}
-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()));
}
else
origin->setCurrentIndex(0);
- // disable edit button when no filename is present
- editPB->setDisabled(filename->text().isEmpty());
-
//// latex section
latexoptions->setText(toqstr(igp.special));
}
}
-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" };
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);
bool bbChanged;
/// test if file exist
bool isFilenameValid(std::string const & fname) const;
- /// edit file
- void editGraphics();
private:
///
</property>
</widget>
</item>
- <item row="0" column="3" >
- <widget class="QPushButton" name="editPB" >
- <property name="text" >
- <string>&Edit</string>
- </property>
- <property name="autoDefault" >
- <bool>false</bool>
- </property>
- <property name="default" >
- <bool>false</bool>
- </property>
- </widget>
- </item>
<item row="0" column="2" >
<widget class="QPushButton" name="browsePB" >
<property name="toolTip" >
<tabstop>TabWidget</tabstop>
<tabstop>filename</tabstop>
<tabstop>browsePB</tabstop>
- <tabstop>editPB</tabstop>
<tabstop>scaleCB</tabstop>
<tabstop>Scale</tabstop>
<tabstop>WidthCB</tabstop>