author | zecke <zecke> | 2005-04-16 22:02:48 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-04-16 22:02:48 (UTC) |
commit | dcb2364568574057819a0f30b8e6958b44b3b698 (patch) (unidiff) | |
tree | acd5cc3ad3b59e8d2e2db162142bae48115be910 | |
parent | 206784bc9919dca87a71de9b998ff0ece08bd8ca (diff) | |
download | opie-dcb2364568574057819a0f30b8e6958b44b3b698.zip opie-dcb2364568574057819a0f30b8e6958b44b3b698.tar.gz opie-dcb2364568574057819a0f30b8e6958b44b3b698.tar.bz2 |
Opie/X11:
-include <qdialog.h> to allow building
-rw-r--r-- | libopie2/opieui/okeyconfigwidget.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h index 3d2260c..cc1ea44 100644 --- a/libopie2/opieui/okeyconfigwidget.h +++ b/libopie2/opieui/okeyconfigwidget.h | |||
@@ -1,76 +1,77 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2004 | 2 | * Copyright (C) 2004 |
3 | * LGPL v2 zecke@handhelds.org | 3 | * LGPL v2 zecke@handhelds.org |
4 | */ | 4 | */ |
5 | 5 | ||
6 | 6 | ||
7 | #ifndef ODP_KEY_CONFIG_WIDGET_H | 7 | #ifndef ODP_KEY_CONFIG_WIDGET_H |
8 | #define ODP_KEY_CONFIG_WIDGET_H | 8 | #define ODP_KEY_CONFIG_WIDGET_H |
9 | 9 | ||
10 | #include <opie2/okeyconfigmanager.h> | 10 | #include <opie2/okeyconfigmanager.h> |
11 | 11 | ||
12 | #include <qhbox.h> | 12 | #include <qhbox.h> |
13 | #include <qdialog.h> | ||
13 | 14 | ||
14 | 15 | ||
15 | class QKeyEvent; | 16 | class QKeyEvent; |
16 | class QLabel; | 17 | class QLabel; |
17 | class QPushButton; | 18 | class QPushButton; |
18 | class QListViewItem; | 19 | class QListViewItem; |
19 | class QRadioButton; | 20 | class QRadioButton; |
20 | class QTimer; | 21 | class QTimer; |
21 | 22 | ||
22 | namespace Opie { | 23 | namespace Opie { |
23 | namespace Ui { | 24 | namespace Ui { |
24 | namespace Internal { | 25 | namespace Internal { |
25 | class OKeyConfigWidgetPrivate; | 26 | class OKeyConfigWidgetPrivate; |
26 | typedef QValueList<OKeyConfigWidgetPrivate> OKeyConfigWidgetPrivateList; | 27 | typedef QValueList<OKeyConfigWidgetPrivate> OKeyConfigWidgetPrivateList; |
27 | class OKeyListViewItem; | 28 | class OKeyListViewItem; |
28 | } | 29 | } |
29 | class OListViewItem; | 30 | class OListViewItem; |
30 | class OListView; | 31 | class OListView; |
31 | 32 | ||
32 | 33 | ||
33 | /** | 34 | /** |
34 | * With this Widget you can let the Keyboard Shortcuts | 35 | * With this Widget you can let the Keyboard Shortcuts |
35 | * be configured by the user. | 36 | * be configured by the user. |
36 | * There are two ways you can use this widget. Either in a tab were | 37 | * There are two ways you can use this widget. Either in a tab were |
37 | * all changes are immediately getting into effect or in a queue | 38 | * all changes are immediately getting into effect or in a queue |
38 | * were you ask for saving. Save won't write the data but only set | 39 | * were you ask for saving. Save won't write the data but only set |
39 | * it to the OKeyConfigManager. | 40 | * it to the OKeyConfigManager. |
40 | * | 41 | * |
41 | * Normally subclassing this widget does not make much sense as the widget content | 42 | * Normally subclassing this widget does not make much sense as the widget content |
42 | * as such is immutable. If I'm wrong I'm willing to learn and you could mail me which | 43 | * as such is immutable. If I'm wrong I'm willing to learn and you could mail me which |
43 | * functions do make sense with virtual on it (zecke@handhelds.org). | 44 | * functions do make sense with virtual on it (zecke@handhelds.org). |
44 | * | 45 | * |
45 | * @since 1.2 | 46 | * @since 1.2 |
46 | */ | 47 | */ |
47 | class OKeyConfigWidget : public QWidget { | 48 | class OKeyConfigWidget : public QWidget { |
48 | Q_OBJECT | 49 | Q_OBJECT |
49 | 50 | ||
50 | public: | 51 | public: |
51 | /** | 52 | /** |
52 | * Immediate Apply the change directly to the underlying OKeyConfigManager | 53 | * Immediate Apply the change directly to the underlying OKeyConfigManager |
53 | * Queue Save all items and then apply when you save() | 54 | * Queue Save all items and then apply when you save() |
54 | */ | 55 | */ |
55 | enum ChangeMode { Imediate, Queue }; | 56 | enum ChangeMode { Imediate, Queue }; |
56 | OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 57 | OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
57 | virtual ~OKeyConfigWidget(); | 58 | virtual ~OKeyConfigWidget(); |
58 | 59 | ||
59 | void setChangeMode( enum ChangeMode ); | 60 | void setChangeMode( enum ChangeMode ); |
60 | ChangeMode changeMode()const; | 61 | ChangeMode changeMode()const; |
61 | 62 | ||
62 | void insert( const QString& name, Opie::Core::OKeyConfigManager* ); | 63 | void insert( const QString& name, Opie::Core::OKeyConfigManager* ); |
63 | 64 | ||
64 | void load(); | 65 | void load(); |
65 | void save(); | 66 | void save(); |
66 | 67 | ||
67 | protected slots: | 68 | protected slots: |
68 | void slotListViewItem( QListViewItem* ); | 69 | void slotListViewItem( QListViewItem* ); |
69 | void slotNoKey(); | 70 | void slotNoKey(); |
70 | void slotDefaultKey(); | 71 | void slotDefaultKey(); |
71 | void slotCustomKey(); | 72 | void slotCustomKey(); |
72 | void slotConfigure(); | 73 | void slotConfigure(); |
73 | 74 | ||
74 | private: | 75 | private: |
75 | static bool sanityCheck( Opie::Ui::Internal::OKeyListViewItem* man, | 76 | static bool sanityCheck( Opie::Ui::Internal::OKeyListViewItem* man, |
76 | const Opie::Core::OKeyPair& newItem ); | 77 | const Opie::Core::OKeyPair& newItem ); |