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"
31 class GuiGraphics : public GuiDialog, public Ui::GraphicsUi
36 GuiGraphics(GuiView & lv);
40 void change_adaptor();
41 void changeGroup(int);
43 void on_newGroupPB_clicked();
44 void on_browsePB_clicked();
45 void on_getPB_clicked();
46 void on_scaleCB_toggled(bool);
47 void on_WidthCB_toggled(bool);
48 void on_HeightCB_toggled(bool);
49 void on_angle_textChanged(const QString &);
54 /// Dialog inherited methods
57 void updateContents() {}
58 bool initialiseParams(std::string const & data);
60 void dispatchParams();
61 bool isBufferDependent() const { return true; }
65 void paramsToDialog(InsetGraphicsParams const & params);
67 /// get bounding box from file
70 QString browse(QString const &) const;
71 /// Read the Bounding Box from a eps or ps-file
72 std::string readBoundingBox(std::string const & file);
73 /// test if file exist
74 bool isFileNameValid(std::string const & fname) const;
78 /// Store the LaTeX names for the rotation origins.
79 std::vector<std::string> origin_ltx;
81 InsetGraphicsParams params_;
82 /// the current graphics group
83 std::string current_group_;
86 } // namespace frontend
89 #endif // GUIGRAPHICS_H