]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphics.h
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / qt2 / QGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file QGraphics.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 QGRAPHICS_H
14 #define QGRAPHICS_H
15
16 #include "QDialogView.h"
17 #include <vector>
18
19 namespace lyx {
20 namespace frontend {
21
22 class ControlGraphics;
23 class QGraphicsDialog;
24
25 ///
26 class QGraphics
27         : public QController<ControlGraphics, QView<QGraphicsDialog> >
28 {
29 public:
30         ///
31         friend class QGraphicsDialog;
32         ///
33         QGraphics(Dialog &);
34 public slots:
35         void slotEdit();
36 protected:
37         virtual bool isValid();
38 private:
39         /// Apply changes
40         virtual void apply();
41         /// update
42         virtual void update_contents();
43         /// build the dialog
44         virtual void build_dialog();
45         /// get bounding box from file
46         void getBB();
47
48         /// Store the LaTeX names for the rotation origins.
49         std::vector<std::string> origin_ltx;
50
51 };
52
53 } // namespace frontend
54 } // namespace lyx
55
56 #endif // QGRAPHICS_H