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 @@ -127,60 +127,64 @@ private: * keys which should not be used by allowed to be used. * You can even pass this manager to a Widget to do the configuration for you. * You need to add OKeyConfigItem for your keys and then issue a load() to * read the Key information. * You can either handle the QKeyEvent yourself and ask this class if it is * handled by your action and let give you the action. Or you can install * 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 { Q_OBJECT public: enum ChangeMode { Imediate, Queu }; OKeyConfigWidget( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); OKeyConfigWidget( OKeyConfigManager *, QWidget* parent = 0, const char* = 0, WFlags = 0 ); ~OKeyConfigWidget(); |