]> git.lyx.org Git - features.git/blob - src/frontends/qt2/QPrefsDialog.h
Rename EnumLColor as LColor_color.
[features.git] / src / frontends / qt2 / QPrefsDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QPrefsDialog.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 QPREFSDIALOG_H
13 #define QPREFSDIALOG_H
14
15
16 #include "ui/QPrefsDialogBase.h"
17
18 #include <vector>
19
20 class LColor_color;
21 class QPrefs;
22 class QPrefAsciiModule;
23 class QPrefDateModule;
24 class QPrefKeyboardModule;
25 class QPrefLatexModule;
26 class QPrefScreenFontsModule;
27 class QPrefColorsModule;
28 class QPrefDisplayModule;
29 class QPrefPathsModule;
30 class QPrefSpellcheckerModule;
31 class QPrefConvertersModule;
32 class QPrefFileformatsModule;
33 class QPrefLanguageModule;
34 class QPrefPrinterModule;
35 class QPrefUIModule;
36 class QPrefIdentityModule;
37
38 class QPrefsDialog : public QPrefsDialogBase {
39         Q_OBJECT
40 public:
41         friend class QPrefs;
42
43         QPrefsDialog(QPrefs *);
44
45         ~QPrefsDialog();
46
47         void updateConverters();
48
49         void updateFormats();
50
51 public slots:
52         void change_adaptor();
53
54         void switch_format(int);
55         void new_format();
56         void modify_format();
57         void remove_format();
58
59         void switch_converter(int);
60         void new_converter();
61         void modify_converter();
62         void remove_converter();
63
64         void change_color();
65
66         void select_ui();
67         void select_bind();
68         void select_keymap1();
69         void select_keymap2();
70         void select_dict();
71         void select_templatedir();
72         void select_tempdir();
73         void select_backupdir();
74         void select_workingdir();
75         void select_lyxpipe();
76
77         void select_roman(const QString&);
78         void select_sans(const QString&);
79         void select_typewriter(const QString&);
80
81 protected:
82         void closeEvent(QCloseEvent * e);
83
84 private:
85
86         std::vector<LColor_color> colors_;
87
88         QPrefAsciiModule * asciiModule;
89         QPrefDateModule * dateModule;
90         QPrefKeyboardModule * keyboardModule;
91         QPrefLatexModule * latexModule;
92         QPrefScreenFontsModule * screenfontsModule;
93         QPrefColorsModule * colorsModule;
94         QPrefDisplayModule * displayModule;
95         QPrefPathsModule * pathsModule;
96         QPrefSpellcheckerModule * spellcheckerModule;
97         QPrefConvertersModule * convertersModule;
98         QPrefFileformatsModule * fileformatsModule;
99         QPrefLanguageModule * languageModule;
100         QPrefPrinterModule * printerModule;
101         QPrefUIModule * uiModule;
102         QPrefIdentityModule * identityModule;
103
104         QPrefs * form_;
105 };
106
107 #endif // PREFSDIALOG_H