author | zecke <zecke> | 2004-03-26 00:12:39 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-26 00:12:39 (UTC) |
commit | bb64860402d6b088168927162813735eaf68e09c (patch) (side-by-side diff) | |
tree | 849397a417bbf54ea06ea5c68065314f9cd17b08 /libopie2/opieui/okeyconfigwidget.h | |
parent | 98721c16aa480c4a160d3492462cb8f0de783268 (diff) | |
download | opie-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.h | 10 |
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 @@ -133,48 +133,52 @@ private: * the event filter and get a signal. * * @since 1.1.2 */ class OKeyConfigManager : public QObject { Q_OBJECT + typedef QMap<it, OKeyConfigItemList> OKeyMapConfigPrivate; public: OKeyConfigManager(Opie::Core::OConfig *conf = 0, const QString& group = QString::null, OKeyPairList &block = OKeyPairList(), bool grabkeyboard = false, QObject *= 0, const char* name = 0 ); ~OKeyConfigManager(); void load(); 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; void handleWidget( QWidget* ); bool eventFilter( QObject*, QEvent* ); signals: void keyConfigChanged( Opie::Ui::OKeyConfigManager* ); 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; }; class OKeyConfigWidget : public QHBox { |