]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QInclude.h
ws cleanup
[lyx.git] / src / frontends / qt2 / QInclude.h
1 // -*- C++ -*-
2 /**
3  * \file QInclude.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 QINCLUDE_H
11 #define QINCLUDE_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "Qt2Base.h"
18
19 class ControlInclude;
20 class QIncludeDialog;
21
22 ///
23 class QInclude
24         : public Qt2CB<ControlInclude, Qt2DB<QIncludeDialog> >
25 {
26 public:
27         ///
28         friend class QIncludeDialog;
29         ///
30         QInclude(ControlInclude &);
31
32 protected:
33         virtual bool isValid();
34
35 private:
36         /// Apply changes
37         virtual void apply();
38         /// update
39         virtual void update_contents();
40         /// build the dialog
41         virtual void build_dialog();
42
43         /// load the file
44         void load();
45
46         /// browse for a file
47         void browse();
48 };
49
50 #endif // QINCLUDE_H