]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphics.h
the qtclean-2 patch with some very small changes
[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 protected:
35         virtual bool isValid();
36 private:
37         /// Apply changes
38         virtual void apply();
39         /// update
40         virtual void update_contents();
41         /// build the dialog
42         virtual void build_dialog();
43
44         /// browse for a file
45         void browse();
46         /// get bounding box from file
47         void get();
48 };
49
50 #endif // QGRAPHICS_H