kactionshortcutlist.h
#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
KShortcutList::name
virtual QString name(uint index) const =0
KActionCollection
A managed set of KAction objects.
Definition: kactioncollection.h:78
KShortcutList::count
virtual uint count() const =0
KShortcutList::shortcutDefault
virtual const KShortcut & shortcutDefault(uint index) const =0
KShortcutList::save
virtual bool save() const =0
KShortcutList::virtual_hook
virtual void virtual_hook(int id, void *data)
KShortcutList::shortcut
virtual const KShortcut & shortcut(uint index) const =0
KShortcut
KStdAccel::action
QString action(StdAccel id) KDE_DEPRECATED
KShortcutList::label
virtual QString label(uint index) const =0
KShortcutList
KInstance
KShortcutList::isConfigurable
virtual bool isConfigurable(uint index) const =0
KShortcutList::whatsThis
virtual QString whatsThis(uint index) const =0
KAction
Class to encapsulate user-driven action or event.
Definition: kaction.h:202
KShortcutList::setShortcut
virtual bool setShortcut(uint index, const KShortcut &shortcut)=0
KNotifyClient::instance
KInstance * instance()

KDE Home | KDE Accessibility Home | Description of Access Keys