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.h12
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,46 +1,45 @@
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
10class ConfigDlg : public QTabWidget 10class ConfigDlg : public QDialog
11{ 11{
12 Q_OBJECT 12 Q_OBJECT
13 13
14public: 14public:
15 ConfigDlg (); 15 ConfigDlg ();
16 ~ConfigDlg ();
17 static QStringList ConfigDlg::loadSw(); 16 static QStringList ConfigDlg::loadSw();
18 17
19signals: 18signals:
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
27protected:
28 virtual void accept();
29
28protected slots: 30protected slots:
29 void moveSelectedUp(); 31 void moveSelectedUp();
30 void moveSelectedDown(); 32 void moveSelectedDown();
31 33
32private slots: 34private 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
@@ -48,13 +47,12 @@ 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;