KDataToolAction Class Reference
This class helps applications implement support for KDataTool. More...
#include <kdatatool.h>
Inheritance diagram for KDataToolAction:

Signals | |
void | toolActivated (const KDataToolInfo &info, const QString &command) |
Public Member Functions | |
KDataToolAction (const QString &text, const KDataToolInfo &info, const QString &command, QObject *parent=0, const char *name=0) | |
Static Public Member Functions | |
QPtrList< KAction > | dataToolActionList (const QValueList< KDataToolInfo > &tools, const QObject *receiver, const char *slot) |
Protected Member Functions | |
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:
- query for the available tools using KDataToolInfo::query
- pass the result to KDataToolAction::dataToolActionList (with a slot)
- plug the resulting actions, either using KXMLGUIClient::plugActionList, or by hand.
Definition at line 195 of file kdatatool.h.
Constructor & Destructor Documentation
|
Constructs a new KDataToolAction.
Referenced by dataToolActionList(). |
Member Function Documentation
|
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.
References endl(), KDataToolAction(), kdWarning(), and toolActivated(). |
|
Emitted when a tool has been activated.
Referenced by dataToolActionList(). |
The documentation for this class was generated from the following files: