summaryrefslogtreecommitdiffstats
path: root/tdeui/tdeactionshortcutlist.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 17:25:43 -0600
committerTimothy Pearson <[email protected]>2013-02-01 17:25:43 -0600
commitd888cfa39e8b38abe17f3d425d19cb8235136a79 (patch)
tree7ae5487b84106036fdb781beec26fab10678a595 /tdeui/tdeactionshortcutlist.h
parentdeac2ca49faed824fe83066080714eb6d653615b (diff)
downloadtdelibs-d888cfa39e8b38abe17f3d425d19cb8235136a79.tar.gz
tdelibs-d888cfa39e8b38abe17f3d425d19cb8235136a79.zip
Fix FTBFS
Diffstat (limited to 'tdeui/tdeactionshortcutlist.h')
-rw-r--r--tdeui/tdeactionshortcutlist.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/tdeui/tdeactionshortcutlist.h b/tdeui/tdeactionshortcutlist.h
new file mode 100644
index 000000000..ac8ac020d
--- /dev/null
+++ b/tdeui/tdeactionshortcutlist.h
@@ -0,0 +1,79 @@
+#ifndef _KACTIONSHORTCUTLIST_H
+#define _KACTIONSHORTCUTLIST_H
+
+#include <kshortcutlist.h>
+#include <kaction.h>
+
+//---------------------------------------------------------------------
+// class TDEActionShortcutList
+//---------------------------------------------------------------------
+
+class TDEAccelShortcutListPrivate;
+class TDEUI_EXPORT TDEActionShortcutList : public TDEShortcutList
+{
+ public:
+ TDEActionShortcutList( TDEActionCollection* );
+ virtual ~TDEActionShortcutList();
+
+ virtual uint count() const;
+ virtual TQString name( uint index ) const;
+ virtual TQString label( uint index ) const;
+ virtual TQString whatsThis( uint index ) const;
+ virtual const TDEShortcut& shortcut( uint index ) const;
+ virtual const TDEShortcut& shortcutDefault( uint index ) const;
+ virtual bool isConfigurable( uint index ) const;
+ virtual bool setShortcut( uint index, const TDEShortcut& shortcut );
+
+ virtual const TDEInstance* instance() const;
+
+ virtual TQVariant getOther( Other, uint index ) const;
+ virtual bool setOther( Other, uint index, TQVariant );
+
+ virtual bool save() const;
+
+ const TDEAction *action( uint ) const;
+
+ protected:
+ TDEActionCollection& m_actions;
+
+ protected:
+ virtual void virtual_hook( int id, void* data );
+ private:
+ TDEAccelShortcutListPrivate* d;
+};
+
+//---------------------------------------------------------------------
+// class TDEActionPtrShortcutList
+//---------------------------------------------------------------------
+
+class TDEAccelShortcutListPrivate;
+class TDEUI_EXPORT TDEActionPtrShortcutList : public TDEShortcutList
+{
+ public:
+ TDEActionPtrShortcutList( TDEActionPtrList& );
+ virtual ~TDEActionPtrShortcutList();
+
+ virtual uint count() const;
+ virtual TQString name( uint index ) const;
+ virtual TQString label( uint index ) const;
+ virtual TQString whatsThis( uint index ) const;
+ virtual const TDEShortcut& shortcut( uint index ) const;
+ virtual const TDEShortcut& shortcutDefault( uint index ) const;
+ virtual bool isConfigurable( uint index ) const;
+ virtual bool setShortcut( uint index, const TDEShortcut& shortcut);
+
+ virtual TQVariant getOther( Other, uint index ) const;
+ virtual bool setOther( Other, uint index, TQVariant );
+
+ virtual bool save() const;
+
+ protected:
+ TDEActionPtrList& m_actions;
+
+ protected:
+ virtual void virtual_hook( int id, void* data );
+ private:
+ TDEAccelShortcutListPrivate* d;
+};
+
+#endif // !_KACTIONSHORTCUTLIST_H