class KActionCollection

# class KActionCollection | A managed set of KAction objects. More...
Definition | `#include <kaction.h>`
Inherits | QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### 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

- void clear ()

#### Signals

- void inserted ( KAction* )
- void removed ( KAction* )
- void actionHighlighted ( KAction *action )
- void actionHighlighted ( KAction *action, bool highlight )
- void actionStatusText ( const QString &text )
- void clearStatusText ()

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

## Detailed Description

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 ( const KActionCollection © ) | ### KActionCollection

~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

bool addDocCollection ( KActionCollection* pDoc ) | ### addDocCollection

Doc/View model. This lets you add the action collection of a document to a view's action collection.

KAccel* accel () | ### accel

[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 KAccel* accel () | ### accel

[const virtual]

KAccel* kaccel () | ### kaccel

const KAccel* kaccel () | ### kaccel

[const]

KAccel* builderKAccel () | ### builderKAccel

[const]

uint count () | ### count

[const virtual]

bool isEmpty () | ### isEmpty

[const]

KAction* action ( int index ) | ### action

[const virtual]

KAction* action ( const char* name, const char* classname = 0 ) | ### action

[const virtual]

QStringList groups () | ### groups

[const virtual]

KActionPtrList actions ( const QString& group ) | ### actions

[const virtual]

KActionPtrList actions () | ### actions

[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

KInstance * instance () | ### instance

[const]

void setXMLFile ( const QString& ) | ### setXMLFile

Use this to tell the KActionCollection what rc file its configuration is stored in.

const QString& xmlFile () | ### xmlFile

[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]

void removed ( KAction* ) | ### removed

[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

void insert ( KAction* ) | ### insert

void remove ( KAction* ) | ### remove

KAction* take ( KAction* ) | ### take

KActionCollection operator+ ( const KActionCollection& ) | ### operator+

[const]

KActionCollection& operator= ( const KActionCollection& ) | ### operator=

KActionCollection& operator+= ( const KActionCollection& ) | ### operator+=

void clear () | ### clear

[slot]

Clears the entire actionCollection, deleting all actions.

See also: remove

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.