]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QGraphics.h
add graphics dialog - not quite working
[lyx.git] / src / frontends / qt2 / QGraphics.h
1 // -*- C++ -*-
2 /**
3  * \file QGraphics.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef QGRAPHICS_H
11 #define QGRAPHICS_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "Qt2Base.h"
18 #include "insets/insetgraphics.h" 
19
20 class ControlGraphics;
21 class QGraphicsDialog;
22
23 ///
24 class QGraphics
25         : public Qt2CB<ControlGraphics, Qt2DB<QGraphicsDialog> > 
26 {
27 public:
28         ///
29         friend class QGraphicsDialog;
30         ///
31         QGraphics(ControlGraphics &);
32
33 protected:
34         virtual bool isValid();
35  
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 };
47
48 #endif // QGRAPHICS_H