]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QPrefs.h
Some string(widget->text()) fixes. Weirdness
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "converter.h"
20  
21 #include "Qt2Base.h"
22 #include "ControlPrefs.h"
23
24 #include <vector>
25  
26 class QPrefsDialog;
27
28 class QPrefs
29         : public Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> >
30 {
31 public:
32
33         friend class QPrefsDialog;
34
35         QPrefs();
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         /// languages
48         std::vector<string> lang_;
49
50         /// converters
51         Converters converters_;
52
53         /// formats
54         Formats formats_;
55 };
56
57 #endif // QPREFS_H