]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QExternal.h
Joao latest bits
[lyx.git] / src / frontends / qt2 / QExternal.h
1 // -*- C++ -*-
2 /**
3  * \file QExternal.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 QEXTERNAL_H
13 #define QEXTERNAL_H
14
15
16 #include "QDialogView.h"
17 #include <map>
18
19
20 class ControlExternal;
21 class QExternalDialog;
22
23
24 class QExternal
25         : public QController<ControlExternal, QView<QExternalDialog> >
26 {
27 public:
28         friend class QExternalDialog;
29
30         QExternal(Dialog &);
31
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         /// get the right helptext
41         std::string const helpText() const;
42
43         /// Helper function called when the template is changed.
44         void updateTemplate();
45
46         std::map<std::string, QString> extra_;
47 };
48
49 #endif // QEXTERNAL_H