class KActionCollection
|
A managed set of KAction objects. More... |
|
|
Public Methods
- KActionCollection ( QWidget *parent, const char *name = 0, KInstance *instance = 0 )
- KActionCollection ( QWidget *watch, QObject* parent, const char *name = 0, KInstance *instance = 0 )
- KActionCollection ( const KActionCollection © )
- virtual ~KActionCollection ()
- virtual void setWidget ( QWidget *widget )
- void setAutoConnectShortcuts ( bool )
- bool isAutoConnectShortcuts ()
- bool addDocCollection ( KActionCollection* pDoc )
- virtual KAccel* accel ()
- virtual const KAccel* accel () const
- KAccel* kaccel ()
- const KAccel* kaccel () const
- KAccel* builderKAccel () const
- virtual uint count () const
- bool isEmpty () const
- virtual KAction* action ( int index ) const
- virtual KAction* action ( const char* name, const char* classname = 0 ) const
- virtual QStringList groups () const
- virtual KActionPtrList actions ( const QString& group ) const
- virtual KActionPtrList actions () const
- bool readShortcutSettings ( const QString& sConfigGroup = QString::null, KConfigBase* pConfig = 0 )
- bool writeShortcutSettings ( const QString& sConfigGroup = QString::null, KConfigBase* pConfig = 0 ) const
- void setInstance ( KInstance *instance )
- KInstance * instance () const
- void setXMLFile ( const QString& )
- const QString& xmlFile () const
- void setHighlightingEnabled ( bool enable )
- bool highlightingEnabled () const
- void connectHighlight ( QWidget *container, KAction *action )
- void disconnectHighlight ( QWidget *container, KAction *action )
- KActionCollection ( QObject *parent, const char *name = 0, KInstance *instance = 0 )
- void insert ( KAction* )
- void remove ( KAction* )
- KAction* take ( KAction* )
- KActionCollection operator+ ( const KActionCollection& ) const
- KActionCollection& operator= ( const KActionCollection& )
- KActionCollection& operator+= ( const KActionCollection& )
Public Slots
Signals
Protected Methods
A managed set of KAction objects.
KActionCollection ( QWidget *parent, const char *name = 0, KInstance *instance = 0 )
| KActionCollection |
KActionCollection ( QWidget *watch, QObject* parent, const char *name = 0, KInstance *instance = 0 )
| KActionCollection |
Use this constructor if you want the collection's actions to restrict
their accelerator keys to watch
rather than the parent
. If
you don't require shortcuts, you can pass a null to the watch
parameter.
~KActionCollection ()
| ~KActionCollection |
[virtual]
void setWidget ( QWidget *widget )
| setWidget |
[virtual]
This sets the widget to which the keyboard shortcuts should be attached.
You only need to call this if a null pointer was passed in the constructor.
void setAutoConnectShortcuts ( bool )
| setAutoConnectShortcuts |
This indicates whether new actions which are created in this collection
should have their keyboard shortcuts automatically connected on
construction. Set to 'false' if you will be loading XML-based settings.
This is automatically done by KParts. The default is 'true'.
bool isAutoConnectShortcuts ()
| isAutoConnectShortcuts |
Doc/View model. This lets you add the action collection of a document
to a view's action collection.
[virtual]
Returns true if the collection has its own KAccel object. This will be
the case if it was constructed with a valid widget ptr or if setWidget()
was called.
[const virtual]
const KAccel* kaccel ()
| kaccel |
[const]
KAccel* builderKAccel ()
| builderKAccel |
[const]
[const virtual]
[const]
KAction* action ( int index )
| action |
[const virtual]
KAction* action ( const char* name, const char* classname = 0 )
| action |
[const virtual]
[const virtual]
[const virtual]
[const virtual]
bool readShortcutSettings ( const QString& sConfigGroup = QString::null, KConfigBase* pConfig = 0 )
| readShortcutSettings |
Used for reading shortcut configuration from a non-XML rc file.
bool writeShortcutSettings ( const QString& sConfigGroup = QString::null, KConfigBase* pConfig = 0 )
| writeShortcutSettings |
[const]
Used for writing shortcut configuration to a non-XML rc file.
void setInstance ( KInstance *instance )
| setInstance |
[const]
void setXMLFile ( const QString& )
| setXMLFile |
Use this to tell the KActionCollection what rc file its configuration
is stored in.
[const]
void setHighlightingEnabled ( bool enable )
| setHighlightingEnabled |
bool highlightingEnabled ()
| highlightingEnabled |
[const]
void connectHighlight ( QWidget *container, KAction *action )
| connectHighlight |
void disconnectHighlight ( QWidget *container, KAction *action )
| disconnectHighlight |
void inserted ( KAction* )
| inserted |
[signal]
[signal]
void actionHighlighted ( KAction *action )
| actionHighlighted |
[signal]
void actionHighlighted ( KAction *action, bool highlight )
| actionHighlighted |
[signal]
void actionStatusText ( const QString &text )
| actionStatusText |
[signal]
void clearStatusText ()
| clearStatusText |
[signal]
KActionCollection ( QObject *parent, const char *name = 0, KInstance *instance = 0 )
| KActionCollection |
[const]
[slot]
Clears the entire actionCollection, deleting all actions.
See also: remove
void virtual_hook ( int id, void* data )
| virtual_hook |
[protected virtual]
Generated by: caleb on tcdevel on Tue Jan 28 12:54:10 2003, using kdoc $. |