4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialogView.h"
17 #include "ui_GraphicsUi.h"
18 #include "ControlGraphics.h"
31 class GuiGraphicsDialog : public QDialog, public Ui::GraphicsUi
35 GuiGraphicsDialog(GuiGraphics * form);
36 virtual void setAutoText();
39 virtual void change_adaptor();
40 virtual void change_bb();
41 virtual void on_browsePB_clicked();
42 virtual void on_getPB_clicked();
43 virtual void on_editPB_clicked();
44 virtual void on_filename_textChanged(const QString &);
45 virtual void on_scaleCB_toggled(bool);
46 virtual void on_WidthCB_toggled(bool);
47 virtual void on_HeightCB_toggled(bool);
48 virtual void on_angle_textChanged(const QString &);
50 virtual void closeEvent(QCloseEvent * e);
56 class GuiGraphics : public GuiView<GuiGraphicsDialog>
60 friend class GuiGraphicsDialog;
62 GuiGraphics(Dialog &);
64 ControlGraphics & controller()
65 { return static_cast<ControlGraphics &>(this->getController()); }
67 ControlGraphics const & controller() const
68 { return static_cast<ControlGraphics const &>(this->getController()); }
70 virtual bool isValid();
75 virtual void update_contents();
77 virtual void build_dialog();
78 /// get bounding box from file
81 /// Store the LaTeX names for the rotation origins.
82 std::vector<std::string> origin_ltx;
86 } // namespace frontend
89 #endif // GUIGRAPHICS_H