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