]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QPrefs.h
Alfredo's 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
16 #include "converter.h"
17 #include "format.h"
18
19 #include "Qt2Base.h"
20 #include "ControlPrefs.h"
21
22 #include <vector>
23
24 class QPrefsDialog;
25
26 class QPrefs
27         : public Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> >
28 {
29 public:
30
31         friend class QPrefsDialog;
32
33         QPrefs();
34
35 private:
36         /// Apply changes
37         virtual void apply();
38
39         /// update (do we need this?)
40         virtual void update_contents();
41
42         /// build the dialog
43         virtual void build_dialog();
44
45         /// languages
46         std::vector<string> lang_;
47
48         /// converters
49         Converters converters_;
50
51         /// formats
52         Formats formats_;
53 };
54
55 #endif // QPREFS_H