]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QInclude.h
Joao latest bits
[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
16 #include "QDialogView.h"
17
18
19 class ControlInclude;
20 class QIncludeDialog;
21
22 ///
23 class QInclude : public QController<ControlInclude, QView<QIncludeDialog> >
24 {
25 public:
26         ///
27         friend class QIncludeDialog;
28         ///
29         QInclude(Dialog &);
30 protected:
31         virtual bool isValid();
32 private:
33         /// Apply changes
34         virtual void apply();
35         /// update
36         virtual void update_contents();
37         /// build the dialog
38         virtual void build_dialog();
39
40         /// load the file
41         void load();
42
43         /// browse for a file
44         void browse();
45 };
46
47 #endif // QINCLUDE_H