]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiGraphics.h
the fun begins....
[lyx.git] / src / frontends / qt4 / GuiGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file GuiGraphics.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Herbert Voß
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIGRAPHICS_H
14 #define GUIGRAPHICS_H
15
16 #include "GuiDialog.h"
17 #include "ControlGraphics.h"
18 #include "ui_GraphicsUi.h"
19
20 #include <vector>
21
22 class QString;
23
24 namespace lyx {
25 namespace frontend {
26
27 class GuiGraphicsDialog : public GuiDialog, public Ui::GraphicsUi
28 {
29         Q_OBJECT
30 public:
31         GuiGraphicsDialog(LyXView & lv);
32         void setAutoText();
33         void showView();
34 private Q_SLOTS:
35         void change_adaptor();
36         void change_bb();
37         void on_browsePB_clicked();
38         void on_getPB_clicked();
39         void on_editPB_clicked();
40         void on_filename_textChanged(const QString &);
41         void on_scaleCB_toggled(bool);
42         void on_WidthCB_toggled(bool);
43         void on_HeightCB_toggled(bool);
44         void on_angle_textChanged(const QString &);
45 private:
46         void closeEvent(QCloseEvent * e);
47         /// parent controller
48         ControlGraphics & controller() const;
49         bool isValid();
50         /// Apply changes
51         void applyView();
52         /// update
53         void update_contents();
54         /// get bounding box from file
55         void getBB();
56
57         /// Store the LaTeX names for the rotation origins.
58         std::vector<std::string> origin_ltx;
59 };
60
61 } // namespace frontend
62 } // namespace lyx
63
64 #endif // GUIGRAPHICS_H