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