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