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 changeGroup(int);
45 void on_newGroupPB_clicked();
46 void on_browsePB_clicked();
47 void on_getPB_clicked();
48 void on_scaleCB_toggled(bool);
49 void on_WidthCB_toggled(bool);
50 void on_HeightCB_toggled(bool);
51 void on_angle_textChanged(const QString &);
56 /// Dialog inherited methods
59 void updateContents() {}
60 bool initialiseParams(std::string const & data);
62 void dispatchParams();
63 bool isBufferDependent() const { return true; }
67 void paramsToDialog(InsetGraphicsParams const & params);
69 /// get bounding box from file
72 QString browse(QString const &) const;
73 /// Read the Bounding Box from a eps or ps-file
74 std::string readBoundingBox(std::string const & file);
75 /// test if file exist
76 bool isFileNameValid(std::string const & fname) const;
80 /// Store the LaTeX names for the rotation origins.
81 std::vector<std::string> origin_ltx;
83 InsetGraphicsParams params_;
84 /// the current graphics group
85 std::string current_group_;
88 } // namespace frontend
91 #endif // GUIGRAPHICS_H