]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QPrefs.h
The Movers patch.
[lyx.git] / src / frontends / qt2 / QPrefs.h
1 // -*- C++ -*-
2 /**
3  * \file QPrefs.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 QPREFS_H
13 #define QPREFS_H
14
15 #include "QDialogView.h"
16 #include <vector>
17
18 class Converters;
19 class Formats;
20 class Movers;
21
22 namespace lyx {
23 namespace frontend {
24
25 class QPrefsDialog;
26 class ControlPrefs;
27
28 class QPrefs
29         : public QController<ControlPrefs, QView<QPrefsDialog> >
30 {
31 public:
32
33         friend class QPrefsDialog;
34
35         QPrefs(Dialog &);
36
37 private:
38         /// Apply changes
39         virtual void apply();
40
41         /// update (do we need this?)
42         virtual void update_contents();
43
44         /// build the dialog
45         virtual void build_dialog();
46
47         Converters & converters();
48         Formats & formats();
49         Movers & movers();
50
51         /// languages
52         std::vector<std::string> lang_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // QPREFS_H