]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QInclude.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QInclude.h
1 // -*- C++ -*-
2 /**
3  * \file QInclude.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 QINCLUDE_H
13 #define QINCLUDE_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "Qt2Base.h"
20
21 class ControlInclude;
22 class QIncludeDialog;
23
24 ///
25 class QInclude
26         : public Qt2CB<ControlInclude, Qt2DB<QIncludeDialog> >
27 {
28 public:
29         ///
30         friend class QIncludeDialog;
31         ///
32         QInclude();
33 protected:
34         virtual bool isValid();
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