class KDataToolAction

# class KDataToolAction | This class helps applications implement support for KDataTool. More...
Definition | `#include <kdatatool.h>`
Inherits | KAction (kdeui) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KDataToolAction ( const QString & text, const KDataToolInfo & info, const QString & command, QObject * parent = 0, const char * name = 0)

#### Signals

- void toolActivated ( const KDataToolInfo & info, const QString & command )

#### Public Static Methods

- static QPtrList<KAction> dataToolActionList ( const QValueList<KDataToolInfo> & tools, const QObject *receiver, const char* slot )

#### Protected Methods

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

## Detailed Description

This class helps applications implement support for KDataTool. The steps to follow are simple: 1) query for the available tools using KDataToolInfo::query 2) pass the result to KDataToolAction::dataToolActionList (with a slot) 3) plug the resulting actions, either using KXMLGUIClient::plugActionList, or by hand.

The slot defined for step 2 is called when the action is activated, and that's where the tool should be created and run.

KDataToolAction ( const QString & text, const KDataToolInfo & info, const QString & command, QObject * parent = 0, const char * name = 0) | ### KDataToolAction

QPtrList<KAction> dataToolActionList ( const QValueList<KDataToolInfo> & tools, const QObject *receiver, const char* slot ) | ### dataToolActionList

[static]

Creates a list of actions from a list of information about data-tools. The slot must have a signature corresponding to the toolActivated signal.

Note that it's the caller's responsibility to delete the actions when they're not needed anymore.

void toolActivated ( const KDataToolInfo & info, const QString & command ) | ### toolActivated

[signal]

void slotActivated () | ### slotActivated

[protected virtual]

Reimplemented from KAction.

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

[protected virtual]

Reimplemented from KAction.

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