kactionshortcutlist.h Source File (kdeui Library)

| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kactionshortcutlist.h

    00001 #ifndef _KACTIONSHORTCUTLIST_H
    00002 #define _KACTIONSHORTCUTLIST_H
    00003
    00004 #include <kshortcutlist.h>
    00005
    00006 class KActionCollection;
    00007 typedef QValueList<KAction *> KActionPtrList;
    00008
    00009 //---------------------------------------------------------------------
    00010 // class KActionShortcutList
    00011 //---------------------------------------------------------------------
    00012
    00013 class KAccelShortcutListPrivate;
    00014 class KActionShortcutList : public KShortcutList
    00015 {
    00016  public:
    00017         KActionShortcutList( KActionCollection* );
    00018         virtual ~KActionShortcutList();
    00019
    00020         virtual uint count() const;
    00021         virtual QString name( uint i ) const;
    00022         virtual QString label( uint ) const;
    00023         virtual QString whatsThis( uint ) const;
    00024         virtual const KShortcut& shortcut( uint ) const;
    00025         virtual const KShortcut& shortcutDefault( uint ) const;
    00026         virtual bool isConfigurable( uint ) const;
    00027         virtual bool setShortcut( uint, const KShortcut& );
    00028
    00029         virtual const KInstance* instance() const;
    00030
    00031         virtual QVariant getOther( Other, uint index ) const;
    00032         virtual bool setOther( Other, uint index, QVariant );
    00033
    00034         virtual bool save() 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 // class KActionPtrShortcutList
    00047 //---------------------------------------------------------------------
    00048
    00049 class KAccelShortcutListPrivate;
    00050 class KActionPtrShortcutList : public KShortcutList
    00051 {
    00052  public:
    00053         KActionPtrShortcutList( KActionPtrList& );
    00054         virtual ~KActionPtrShortcutList();
    00055
    00056         virtual uint count() const;
    00057         virtual QString name( uint i ) const;
    00058         virtual QString label( uint ) const;
    00059         virtual QString whatsThis( uint ) const;
    00060         virtual const KShortcut& shortcut( uint ) const;
    00061         virtual const KShortcut& shortcutDefault( uint ) const;
    00062         virtual bool isConfigurable( uint ) const;
    00063         virtual bool setShortcut( uint, const KShortcut& );
    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

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:56:10 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001