Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KActionCollection Class Reference

#include <kaction.h>

List of all members.

Public Slots

void clear ()

Public Methods

 KActionCollection (QWidget *watch, QObject *parent, const char *name=0, KInstance *instance=0)
virtual void setWidget (QWidget *widget)
void setAutoConnectShortcuts (bool)
bool addDocCollection (KActionCollection *pDoc)
virtual KAccelaccel ()
KAccelkaccel ()
virtual uint count () const
bool readShortcutSettings (const QString &sConfigGroup=QString::null, KConfigBase *pConfig=0)
bool writeShortcutSettings (const QString &sConfigGroup=QString::null, KConfigBase *pConfig=0) const
void setXMLFile (const QString &)


Detailed Description

A managed set of KAction objects.

Definition at line 1761 of file kaction.h.


Constructor & Destructor Documentation

KActionCollection::KActionCollection QWidget *    watch,
QObject *    parent,
const char *    name = 0,
KInstance   instance = 0
 

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.


Member Function Documentation

virtual KAccel* KActionCollection::accel   [virtual]
 

Deprecated:
Deprecated because of ambiguous name. Use kaccel()

bool KActionCollection::addDocCollection KActionCollection *    pDoc
 

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

void KActionCollection::clear   [slot]
 

Clears the entire actionCollection, deleting all actions.

See also:
remove

virtual uint KActionCollection::count   [virtual]
 

Returns the KAccel object associated with widget #.

KAccel* KActionCollection::kaccel  
 

Returns the KAccel object of the most recently set widget.

bool KActionCollection::readShortcutSettings const QString &    sConfigGroup = QString::null,
KConfigBase   pConfig = 0
 

Used for reading shortcut configuration from a non-XML rc file.

void KActionCollection::setAutoConnectShortcuts bool   
 

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'.

virtual void KActionCollection::setWidget QWidget *    widget [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 KActionCollection::setXMLFile const QString &   
 

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

bool KActionCollection::writeShortcutSettings const QString &    sConfigGroup = QString::null,
KConfigBase   pConfig = 0
const
 

Used for writing shortcut configuration to a non-XML rc file.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:05 2003 for kdelibs by doxygen1.2.18