summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/okeyconfigwidget.h10
-rw-r--r--libopie2/opieui/otaskbarapplet.h1
2 files changed, 8 insertions, 3 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h
index d11054c..3d2260c 100644
--- a/libopie2/opieui/okeyconfigwidget.h
+++ b/libopie2/opieui/okeyconfigwidget.h
@@ -23,57 +23,61 @@ namespace Opie {
23namespace Ui { 23namespace Ui {
24namespace Internal { 24namespace Internal {
25 class OKeyConfigWidgetPrivate; 25 class OKeyConfigWidgetPrivate;
26 typedef QValueList<OKeyConfigWidgetPrivate> OKeyConfigWidgetPrivateList; 26 typedef QValueList<OKeyConfigWidgetPrivate> OKeyConfigWidgetPrivateList;
27 class OKeyListViewItem; 27 class OKeyListViewItem;
28} 28}
29 class OListViewItem; 29 class OListViewItem;
30 class OListView; 30 class OListView;
31 31
32 32
33/** 33/**
34 * With this Widget you can let the Keyboard Shortcuts 34 * With this Widget you can let the Keyboard Shortcuts
35 * be configured by the user. 35 * be configured by the user.
36 * There are two ways you can use this widget. Either in a tab were 36 * 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 37 * 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 38 * were you ask for saving. Save won't write the data but only set
39 * it to the OKeyConfigManager 39 * it to the OKeyConfigManager.
40 *
41 * 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 * functions do make sense with virtual on it (zecke@handhelds.org).
40 * 44 *
41 * @since 1.2 45 * @since 1.2
42 */ 46 */
43class OKeyConfigWidget : public QWidget { 47class OKeyConfigWidget : public QWidget {
44 Q_OBJECT 48 Q_OBJECT
45 49
46public: 50public:
47 /** 51 /**
48 * Immediate Apply the change directly to the underlying OKeyConfigManager 52 * Immediate Apply the change directly to the underlying OKeyConfigManager
49 * Queue Save all items and then apply when you save() 53 * Queue Save all items and then apply when you save()
50 */ 54 */
51 enum ChangeMode { Imediate, Queue }; 55 enum ChangeMode { Imediate, Queue };
52 OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 56 OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
53 ~OKeyConfigWidget(); 57 virtual ~OKeyConfigWidget();
54 58
55 void setChangeMode( enum ChangeMode ); 59 void setChangeMode( enum ChangeMode );
56 ChangeMode changeMode()const; 60 ChangeMode changeMode()const;
57 61
58 void insert( const QString& name, Opie::Core::OKeyConfigManager* ); 62 void insert( const QString& name, Opie::Core::OKeyConfigManager* );
59 63
60 void load(); 64 void load();
61 void save(); 65 void save();
62 66
63private slots: 67protected slots:
64 void slotListViewItem( QListViewItem* ); 68 void slotListViewItem( QListViewItem* );
65 void slotNoKey(); 69 void slotNoKey();
66 void slotDefaultKey(); 70 void slotDefaultKey();
67 void slotCustomKey(); 71 void slotCustomKey();
68 void slotConfigure(); 72 void slotConfigure();
69 73
70private: 74private:
71 static bool sanityCheck( Opie::Ui::Internal::OKeyListViewItem* man, 75 static bool sanityCheck( Opie::Ui::Internal::OKeyListViewItem* man,
72 const Opie::Core::OKeyPair& newItem ); 76 const Opie::Core::OKeyPair& newItem );
73 void updateItem( Opie::Ui::Internal::OKeyListViewItem* man, 77 void updateItem( Opie::Ui::Internal::OKeyListViewItem* man,
74 const Opie::Core::OKeyPair& newItem); 78 const Opie::Core::OKeyPair& newItem);
75 void initUi(); 79 void initUi();
76 Opie::Ui::OListView *m_view; 80 Opie::Ui::OListView *m_view;
77 Opie::Ui::Internal::OKeyConfigWidgetPrivateList m_list; 81 Opie::Ui::Internal::OKeyConfigWidgetPrivateList m_list;
78 QLabel *m_lbl; 82 QLabel *m_lbl;
79 QPushButton *m_btn; 83 QPushButton *m_btn;
diff --git a/libopie2/opieui/otaskbarapplet.h b/libopie2/opieui/otaskbarapplet.h
index ec7b9c4..77cc461 100644
--- a/libopie2/opieui/otaskbarapplet.h
+++ b/libopie2/opieui/otaskbarapplet.h
@@ -98,32 +98,33 @@ template<class T> class OTaskbarAppletWrapper : public TaskbarAppletInterface
98 *======================================================================================*/ 98 *======================================================================================*/
99 99
100// Must be inline until after we shipped Opie 1.0 100// Must be inline until after we shipped Opie 1.0
101 101
102// Having OTaskBarApplet reside in libopieui2 is not possible 102// Having OTaskBarApplet reside in libopieui2 is not possible
103// until we link the launcher binary against libopieui2 - 103// until we link the launcher binary against libopieui2 -
104// otherwise the necessary symbols are not present, when 104// otherwise the necessary symbols are not present, when
105// the dynamic loader [dlopen] tries to resolve an applet which 105// the dynamic loader [dlopen] tries to resolve an applet which
106// inherits OTaskbarApplet 106// inherits OTaskbarApplet
107 107
108class OTaskbarApplet : public QWidget 108class OTaskbarApplet : public QWidget
109{ 109{
110 public: 110 public:
111 OTaskbarApplet( QWidget* parent, const char* name = 0 ); 111 OTaskbarApplet( QWidget* parent, const char* name = 0 );
112 virtual ~OTaskbarApplet(); 112 virtual ~OTaskbarApplet();
113 113
114
114 protected: 115 protected:
115 virtual void popup( QWidget* widget ); 116 virtual void popup( QWidget* widget );
116private: 117private:
117 class Private; 118 class Private;
118 Private *d; 119 Private *d;
119}; 120};
120} 121}
121} 122}
122 123
123#define EXPORT_OPIE_APPLET_v1( AppLet ) \ 124#define EXPORT_OPIE_APPLET_v1( AppLet ) \
124 Q_EXPORT_INTERFACE() { \ 125 Q_EXPORT_INTERFACE() { \
125 Q_CREATE_INSTANCE( Opie::Ui::Internal::OTaskbarAppletWrapper<AppLet> ) \ 126 Q_CREATE_INSTANCE( Opie::Ui::Internal::OTaskbarAppletWrapper<AppLet> ) \
126 } 127 }
127 128
128#endif 129#endif
129 130