summaryrefslogtreecommitdiff
path: root/libopie2/opieui/okeyconfigwidget.h
authorzecke <zecke>2004-03-26 00:12:39 (UTC)
committer zecke <zecke>2004-03-26 00:12:39 (UTC)
commitbb64860402d6b088168927162813735eaf68e09c (patch) (side-by-side diff)
tree849397a417bbf54ea06ea5c68065314f9cd17b08 /libopie2/opieui/okeyconfigwidget.h
parent98721c16aa480c4a160d3492462cb8f0de783268 (diff)
downloadopie-bb64860402d6b088168927162813735eaf68e09c.zip
opie-bb64860402d6b088168927162813735eaf68e09c.tar.gz
opie-bb64860402d6b088168927162813735eaf68e09c.tar.bz2
Some more Implementation.
Basicly all of the non GUI part is done
Diffstat (limited to 'libopie2/opieui/okeyconfigwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/okeyconfigwidget.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libopie2/opieui/okeyconfigwidget.h b/libopie2/opieui/okeyconfigwidget.h
index 0d5d26f..414ee7e 100644
--- a/libopie2/opieui/okeyconfigwidget.h
+++ b/libopie2/opieui/okeyconfigwidget.h
@@ -136,6 +136,7 @@ private:
*/
class OKeyConfigManager : public QObject {
Q_OBJECT
+ typedef QMap<it, OKeyConfigItemList> OKeyMapConfigPrivate;
public:
OKeyConfigManager(Opie::Core::OConfig *conf = 0,
const QString& group = QString::null,
@@ -148,13 +149,14 @@ public:
void save();
OKeyConfigItem handleKeyEvent( QKeyEvent* );
- QString handleKeyEventString( QKeyEvent* );
+ int handleKeyEventId( QKeyEvent* );
void addKeyConfig( const OKeyConfigItem& );
void removeKeyConfig( const OKeyConfigItem& );
+ void clearKeyConfig();
- void addBlackList( const OKeyPair& );
- void removeBlackList( const OKeyPair& );
+ void addToBlackList( const OKeyPair& );
+ void removeFromBlackList( const OKeyPair& );
void clearBlackList();
OKeyPairList blackList()const;
@@ -166,12 +168,14 @@ signals:
void actionActivated( QWidget*, QKeyEvent*, const Opie::Ui::OKeyConfigItem& );
private:
+ OKeyConfigItemList keyList( int );
OKeyPairList m_blackKeys;
OKeyConfigItemList m_keys;
QValueList<QWidget*> m_widgets;
Opie::Core::OConfig *m_conf;
QString m_group;
bool m_grab : 1;
+ OKeyMapConfigPrivate *m_map;
class Private;
Private *d;
};