Diffstat (limited to 'core/settings/button/buttonsettings.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/button/buttonsettings.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/settings/button/buttonsettings.h b/core/settings/button/buttonsettings.h index 67694d3..1127e7c 100644 --- a/core/settings/button/buttonsettings.h +++ b/core/settings/button/buttonsettings.h | |||
@@ -21,29 +21,28 @@ | |||
21 | -_. . . )=. = see the file COPYING. If not, write to the | 21 | -_. . . )=. = see the file COPYING. If not, write to the |
22 | -- :-=` Free Software Foundation, Inc., | 22 | -- :-=` Free Software Foundation, Inc., |
23 | 59 Temple Place - Suite 330, | 23 | 59 Temple Place - Suite 330, |
24 | Boston, MA 02111-1307, USA. | 24 | Boston, MA 02111-1307, USA. |
25 | 25 | ||
26 | */ | 26 | */ |
27 | 27 | ||
28 | #ifndef __BUTTON_SETTINGS_H__ | 28 | #ifndef __BUTTON_SETTINGS_H__ |
29 | #define __BUTTON_SETTINGS_H__ | 29 | #define __BUTTON_SETTINGS_H__ |
30 | 30 | ||
31 | #include <qdialog.h> | 31 | #include <qdialog.h> |
32 | #include <qlist.h> | 32 | #include <qlist.h> |
33 | #include <opie/odevice.h> | 33 | #include <opie2/odevice.h> |
34 | 34 | ||
35 | class QTimer; | 35 | class QTimer; |
36 | 36 | ||
37 | using namespace Opie; | ||
38 | 37 | ||
39 | class buttoninfo; | 38 | class buttoninfo; |
40 | 39 | ||
41 | class ButtonSettings : public QDialog { | 40 | class ButtonSettings : public QDialog { |
42 | Q_OBJECT | 41 | Q_OBJECT |
43 | 42 | ||
44 | public: | 43 | public: |
45 | ButtonSettings ( QWidget *parent = 0, const char *name = 0, bool modal = FALSE,WFlags f = 0 ); | 44 | ButtonSettings ( QWidget *parent = 0, const char *name = 0, bool modal = FALSE,WFlags f = 0 ); |
46 | ~ButtonSettings ( ); | 45 | ~ButtonSettings ( ); |
47 | 46 | ||
48 | static QString appName() { return QString::fromLatin1("buttonsettings"); } | 47 | static QString appName() { return QString::fromLatin1("buttonsettings"); } |
49 | virtual void accept ( ); | 48 | virtual void accept ( ); |
@@ -52,25 +51,25 @@ public: | |||
52 | private slots: | 51 | private slots: |
53 | void keyTimeout ( ); | 52 | void keyTimeout ( ); |
54 | void updateLabels ( ); | 53 | void updateLabels ( ); |
55 | 54 | ||
56 | protected: | 55 | protected: |
57 | virtual void keyPressEvent ( QKeyEvent *e ); | 56 | virtual void keyPressEvent ( QKeyEvent *e ); |
58 | virtual void keyReleaseEvent ( QKeyEvent *e ); | 57 | virtual void keyReleaseEvent ( QKeyEvent *e ); |
59 | 58 | ||
60 | private: | 59 | private: |
61 | buttoninfo *buttonInfoForKeycode ( ushort key ); | 60 | buttoninfo *buttonInfoForKeycode ( ushort key ); |
62 | 61 | ||
63 | void edit ( buttoninfo *bi, bool hold ); | 62 | void edit ( buttoninfo *bi, bool hold ); |
64 | QString qcopToString ( const OQCopMessage &c ); | 63 | QString qcopToString ( const Opie::Core::OQCopMessage &c ); |
65 | 64 | ||
66 | private: | 65 | private: |
67 | QTimer *m_timer; | 66 | QTimer *m_timer; |
68 | buttoninfo *m_last_button; | 67 | buttoninfo *m_last_button; |
69 | 68 | ||
70 | QList <buttoninfo> m_infos; | 69 | QList <buttoninfo> m_infos; |
71 | bool m_lock; | 70 | bool m_lock; |
72 | }; | 71 | }; |
73 | 72 | ||
74 | #endif | 73 | #endif |
75 | 74 | ||
76 | 75 | ||