kdeui
kactionshortcutlist.h
Go to the documentation of this file.00001 #ifndef _KACTIONSHORTCUTLIST_H
00002 #define _KACTIONSHORTCUTLIST_H
00003
00004 #include <kshortcutlist.h>
00005 #include <kaction.h>
00006
00007
00008
00009
00010
00011 class KAccelShortcutListPrivate;
00012 class KDEUI_EXPORT KActionShortcutList : public KShortcutList
00013 {
00014 public:
00015 KActionShortcutList( KActionCollection* );
00016 virtual ~KActionShortcutList();
00017
00018 virtual uint count() const;
00019 virtual QString name( uint index ) const;
00020 virtual QString label( uint index ) const;
00021 virtual QString whatsThis( uint index ) const;
00022 virtual const KShortcut& shortcut( uint index ) const;
00023 virtual const KShortcut& shortcutDefault( uint index ) const;
00024 virtual bool isConfigurable( uint index ) const;
00025 virtual bool setShortcut( uint index, const KShortcut& shortcut );
00026
00027 virtual const KInstance* instance() const;
00028
00029 virtual QVariant getOther( Other, uint index ) const;
00030 virtual bool setOther( Other, uint index, QVariant );
00031
00032 virtual bool save() const;
00033
00034 const KAction *action( uint ) const;
00035
00036 protected:
00037 KActionCollection& m_actions;
00038
00039 protected:
00040 virtual void virtual_hook( int id, void* data );
00041 private:
00042 KAccelShortcutListPrivate* d;
00043 };
00044
00045
00046
00047
00048
00049 class KAccelShortcutListPrivate;
00050 class KDEUI_EXPORT KActionPtrShortcutList : public KShortcutList
00051 {
00052 public:
00053 KActionPtrShortcutList( KActionPtrList& );
00054 virtual ~KActionPtrShortcutList();
00055
00056 virtual uint count() const;
00057 virtual QString name( uint index ) const;
00058 virtual QString label( uint index ) const;
00059 virtual QString whatsThis( uint index ) const;
00060 virtual const KShortcut& shortcut( uint index ) const;
00061 virtual const KShortcut& shortcutDefault( uint index ) const;
00062 virtual bool isConfigurable( uint index ) const;
00063 virtual bool setShortcut( uint index, const KShortcut& shortcut);
00064
00065 virtual QVariant getOther( Other, uint index ) const;
00066 virtual bool setOther( Other, uint index, QVariant );
00067
00068 virtual bool save() const;
00069
00070 protected:
00071 KActionPtrList& m_actions;
00072
00073 protected:
00074 virtual void virtual_hook( int id, void* data );
00075 private:
00076 KAccelShortcutListPrivate* d;
00077 };
00078
00079 #endif // !_KACTIONSHORTCUTLIST_H