Diffstat (limited to 'inputmethods/multikey/configdlg.h') (more/less context) (show whitespace changes)
-rw-r--r-- | inputmethods/multikey/configdlg.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/inputmethods/multikey/configdlg.h b/inputmethods/multikey/configdlg.h index ea157c5..91ae429 100644 --- a/inputmethods/multikey/configdlg.h +++ b/inputmethods/multikey/configdlg.h | |||
@@ -1,66 +1,64 @@ | |||
1 | #include <qpe/qpeapplication.h> | 1 | #include <qpe/qpeapplication.h> |
2 | #include <qtabwidget.h> | 2 | #include <qdialog.h> |
3 | #include <qcheckbox.h> | 3 | #include <qcheckbox.h> |
4 | #include <qlistbox.h> | 4 | #include <qlistbox.h> |
5 | #include <qpushbutton.h> | 5 | #include <qpushbutton.h> |
6 | 6 | ||
7 | #ifndef CONFIGDLG_H | 7 | #ifndef CONFIGDLG_H |
8 | #define CONFIGDLG_H | 8 | #define CONFIGDLG_H |
9 | 9 | ||
10 | class ConfigDlg : public QTabWidget | 10 | class ConfigDlg : public QDialog |
11 | { | 11 | { |
12 | Q_OBJECT | 12 | Q_OBJECT |
13 | 13 | ||
14 | public: | 14 | public: |
15 | ConfigDlg (); | 15 | ConfigDlg (); |
16 | ~ConfigDlg (); | ||
17 | static QStringList ConfigDlg::loadSw(); | 16 | static QStringList ConfigDlg::loadSw(); |
18 | 17 | ||
19 | signals: | 18 | signals: |
20 | void pickboardToggled(bool on_off); | 19 | void pickboardToggled(bool on_off); |
21 | void repeatToggled(bool on_off); | 20 | void repeatToggled(bool on_off); |
22 | void setMapToDefault(); | 21 | void setMapToDefault(); |
23 | void setMapToFile(QString map); | 22 | void setMapToFile(QString map); |
24 | void reloadKeyboard(); | 23 | void reloadKeyboard(); |
25 | void configDlgClosed(); | 24 | void configDlgClosed(); |
26 | void reloadSw(); | 25 | void reloadSw(); |
27 | 26 | ||
27 | protected: | ||
28 | virtual void accept(); | ||
29 | |||
28 | protected slots: | 30 | protected slots: |
29 | void moveSelectedUp(); | 31 | void moveSelectedUp(); |
30 | void moveSelectedDown(); | 32 | void moveSelectedDown(); |
31 | 33 | ||
32 | private slots: | 34 | private slots: |
33 | void pickTog(); | ||
34 | void repeatTog(); | ||
35 | void setMap(int index); | 35 | void setMap(int index); |
36 | void addMap(); | 36 | void addMap(); |
37 | void removeMap(); | 37 | void removeMap(); |
38 | virtual void closeEvent ( QCloseEvent * ); | 38 | virtual void closeEvent ( QCloseEvent * ); |
39 | 39 | ||
40 | |||
41 | // all those required slots for the color push buttons | 40 | // all those required slots for the color push buttons |
42 | void keyColorClicked(); | 41 | void keyColorClicked(); |
43 | void keyColorPressedClicked(); | 42 | void keyColorPressedClicked(); |
44 | void keyColorLinesClicked(); | 43 | void keyColorLinesClicked(); |
45 | void textColorClicked(); | 44 | void textColorClicked(); |
46 | 45 | ||
47 | private: | 46 | private: |
48 | QCheckBox *pick_button; | 47 | QCheckBox *pick_button; |
49 | QCheckBox *repeat_button; | 48 | QCheckBox *repeat_button; |
50 | QListBox *keymaps; | 49 | QListBox *keymaps; |
51 | QPushButton *add_button; | 50 | QPushButton *add_button; |
52 | QPushButton *remove_button; | 51 | QPushButton *remove_button; |
53 | 52 | ||
54 | |||
55 | QStringList default_maps; // the maps in your share/multikey/ dir | 53 | QStringList default_maps; // the maps in your share/multikey/ dir |
56 | QStringList custom_maps; // maps you added with the 'add' button | 54 | QStringList custom_maps; // maps you added with the 'add' button |
57 | QStringList sw_maps; // maps, which used in keyboard switch rotation ring | 55 | QStringList sw_maps; // maps, which used in keyboard switch rotation ring |
58 | 56 | ||
59 | /* color buttons */ | 57 | /* color buttons */ |
60 | QPushButton *keycolor_button; | 58 | QPushButton *keycolor_button; |
61 | QPushButton *keycolor_pressed_button; | 59 | QPushButton *keycolor_pressed_button; |
62 | QPushButton *keycolor_lines_button; | 60 | QPushButton *keycolor_lines_button; |
63 | QPushButton *textcolor_button; | 61 | QPushButton *textcolor_button; |
64 | 62 | ||
65 | }; | 63 | }; |
66 | 64 | ||