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

# kactionshortcutlist.h

    00001 #ifndef _KACTIONSHORTCUTLIST_H
    00002 #define _KACTIONSHORTCUTLIST_H
    00003
    00004 #include <kshortcutlist.h>
    00005 #include <kaction.h>
    00006
    00007 //---------------------------------------------------------------------
    00008 // class KActionShortcutList
    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 i ) const;
    00020     virtual QString label( uint ) const;
    00021     virtual QString whatsThis( uint ) const;
    00022     virtual const KShortcut& shortcut( uint ) const;
    00023     virtual const KShortcut& shortcutDefault( uint ) const;
    00024     virtual bool isConfigurable( uint ) const;
    00025     virtual bool setShortcut( uint, const KShortcut& );
    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 // class KActionPtrShortcutList
    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 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 kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:13 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003