]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphics.h
Lots and lots of little trivial bits.
[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  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef QGRAPHICS_H
13 #define QGRAPHICS_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "insets/insetgraphics.h"
20 #include "Qt2Base.h"
21
22 class ControlGraphics;
23 class QGraphicsDialog;
24
25 ///
26 class QGraphics
27         : public Qt2CB<ControlGraphics, Qt2DB<QGraphicsDialog> >
28 {
29 public:
30         ///
31         friend class QGraphicsDialog;
32         ///
33         QGraphics();
34
35 protected:
36         virtual bool isValid();
37
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
46         /// browse for a file
47         void browse();
48         /// get bounding box from file
49         void get();
50 };
51
52 #endif // QGRAPHICS_H