4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * \author Angus Leeming
12 * Full author contact details are available in file CREDITS.
18 #include "GuiDialog.h"
19 #include "ui_GraphicsUi.h"
21 #include "insets/InsetGraphicsParams.h"
23 #include "support/docstring.h"
33 class GuiGraphics : public GuiDialog, public Ui::GraphicsUi
38 GuiGraphics(GuiView & lv);
42 void change_adaptor();
43 void change_group(const QString &);
45 void on_browsePB_clicked();
46 void on_getPB_clicked();
47 void on_scaleCB_toggled(bool);
48 void on_WidthCB_toggled(bool);
49 void on_HeightCB_toggled(bool);
50 void on_angle_textChanged(const QString &);
55 /// Dialog inherited methods
58 void updateContents() {}
59 bool initialiseParams(std::string const & data);
61 void dispatchParams();
62 bool isBufferDependent() const { return true; }
66 void paramsToDialog(InsetGraphicsParams const & params);
68 /// get bounding box from file
71 QString browse(QString const &) const;
72 /// Read the Bounding Box from a eps or ps-file
73 std::string readBoundingBox(std::string const & file);
74 /// test if file exist
75 bool isFileNameValid(std::string const & fname) const;
79 /// Store the LaTeX names for the rotation origins.
80 std::vector<std::string> origin_ltx;
82 InsetGraphicsParams params_;
85 } // namespace frontend
88 #endif // GUIGRAPHICS_H