summaryrefslogtreecommitdiffstats
path: root/kdeui/kactionshortcutlist.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kdeui/kactionshortcutlist.h
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kactionshortcutlist.h')
-rw-r--r--kdeui/kactionshortcutlist.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/kdeui/kactionshortcutlist.h b/kdeui/kactionshortcutlist.h
new file mode 100644
index 000000000..322f507d0
--- /dev/null
+++ b/kdeui/kactionshortcutlist.h
@@ -0,0 +1,79 @@
+#ifndef _KACTIONSHORTCUTLIST_H
+#define _KACTIONSHORTCUTLIST_H
+
+#include <kshortcutlist.h>
+#include <kaction.h>
+
+//---------------------------------------------------------------------
+// class KActionShortcutList
+//---------------------------------------------------------------------
+
+class KAccelShortcutListPrivate;
+class KDEUI_EXPORT KActionShortcutList : public KShortcutList
+{
+ public:
+ KActionShortcutList( KActionCollection* );
+ virtual ~KActionShortcutList();
+
+ virtual uint count() const;
+ virtual QString name( uint index ) const;
+ virtual QString label( uint index ) const;
+ virtual QString whatsThis( uint index ) const;
+ virtual const KShortcut& shortcut( uint index ) const;
+ virtual const KShortcut& shortcutDefault( uint index ) const;
+ virtual bool isConfigurable( uint index ) const;
+ virtual bool setShortcut( uint index, const KShortcut& shortcut );
+
+ virtual const KInstance* instance() const;
+
+ virtual QVariant getOther( Other, uint index ) const;
+ virtual bool setOther( Other, uint index, QVariant );
+
+ virtual bool save() const;
+
+ const KAction *action( uint ) const;
+
+ protected:
+ KActionCollection& m_actions;
+
+ protected:
+ virtual void virtual_hook( int id, void* data );
+ private:
+ KAccelShortcutListPrivate* d;
+};
+
+//---------------------------------------------------------------------
+// class KActionPtrShortcutList
+//---------------------------------------------------------------------
+
+class KAccelShortcutListPrivate;
+class KDEUI_EXPORT KActionPtrShortcutList : public KShortcutList
+{
+ public:
+ KActionPtrShortcutList( KActionPtrList& );
+ virtual ~KActionPtrShortcutList();
+
+ virtual uint count() const;
+ virtual QString name( uint index ) const;
+ virtual QString label( uint index ) const;
+ virtual QString whatsThis( uint index ) const;
+ virtual const KShortcut& shortcut( uint index ) const;
+ virtual const KShortcut& shortcutDefault( uint index ) const;
+ virtual bool isConfigurable( uint index ) const;
+ virtual bool setShortcut( uint index, const KShortcut& shortcut);
+
+ virtual QVariant getOther( Other, uint index ) const;
+ virtual bool setOther( Other, uint index, QVariant );
+
+ virtual bool save() const;
+
+ protected:
+ KActionPtrList& m_actions;
+
+ protected:
+ virtual void virtual_hook( int id, void* data );
+ private:
+ KAccelShortcutListPrivate* d;
+};
+
+#endif // !_KACTIONSHORTCUTLIST_H