summaryrefslogtreecommitdiffstats
path: root/tdeui/kactionshortcutlist.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
commite16866e072f94410321d70daedbcb855ea878cac (patch)
treeee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdeui/kactionshortcutlist.h
parenta58c20c1a7593631a1b50213c805507ebc16adaf (diff)
downloadtdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz
tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdeui/kactionshortcutlist.h')
-rw-r--r--tdeui/kactionshortcutlist.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/tdeui/kactionshortcutlist.h b/tdeui/kactionshortcutlist.h
new file mode 100644
index 000000000..a7b8d303e
--- /dev/null
+++ b/tdeui/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 TQString name( uint index ) const;
+ virtual TQString label( uint index ) const;
+ virtual TQString 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 TQVariant getOther( Other, uint index ) const;
+ virtual bool setOther( Other, uint index, TQVariant );
+
+ 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 TQString name( uint index ) const;
+ virtual TQString label( uint index ) const;
+ virtual TQString 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 TQVariant getOther( Other, uint index ) const;
+ virtual bool setOther( Other, uint index, TQVariant );
+
+ virtual bool save() const;
+
+ protected:
+ KActionPtrList& m_actions;
+
+ protected:
+ virtual void virtual_hook( int id, void* data );
+ private:
+ KAccelShortcutListPrivate* d;
+};
+
+#endif // !_KACTIONSHORTCUTLIST_H