]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiGraphics.h
e70e23c134dc1c8d9e8443e45f5b3de30c65e7eb
[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 private Q_SLOTS:
34         void change_adaptor();
35         void change_bb();
36         void on_browsePB_clicked();
37         void on_getPB_clicked();
38         void on_editPB_clicked();
39         void on_filename_textChanged(const QString &);
40         void on_scaleCB_toggled(bool);
41         void on_WidthCB_toggled(bool);
42         void on_HeightCB_toggled(bool);
43         void on_angle_textChanged(const QString &);
44 private:
45         void closeEvent(QCloseEvent * e);
46         /// parent controller
47         ControlGraphics & controller() const;
48         bool isValid();
49         /// Apply changes
50         void applyView();
51         /// update
52         void update_contents();
53         /// get bounding box from file
54         void getBB();
55
56         /// Store the LaTeX names for the rotation origins.
57         std::vector<std::string> origin_ltx;
58 };
59
60 } // namespace frontend
61 } // namespace lyx
62
63 #endif // GUIGRAPHICS_H