• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KDataToolAction Class Reference

#include <kdatatool.h>

Inherits TDEAction.

Signals

void toolActivated (const KDataToolInfo &info, const TQString &command)
 

Public Member Functions

 KDataToolAction (const TQString &text, const KDataToolInfo &info, const TQString &command, TQObject *parent=0, const char *name=0)
 

Static Public Member Functions

static TQPtrList< TDEAction > dataToolActionList (const TQValueList< KDataToolInfo > &tools, const TQObject *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.

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

Definition at line 194 of file kdatatool.h.

Constructor & Destructor Documentation

◆ KDataToolAction()

KDataToolAction::KDataToolAction ( const TQString &  text,
const KDataToolInfo &  info,
const TQString &  command,
TQObject *  parent = 0,
const char *  name = 0 
)

Constructs a new KDataToolAction.

Parameters
textThe text that will be displayed.
infothe corresponding KDataToolInfo
commandthe command of the action
parentThis action's parent.
nameAn internal name for this action.

Definition at line 218 of file kdatatool.cpp.

Member Function Documentation

◆ dataToolActionList()

TQPtrList< TDEAction > KDataToolAction::dataToolActionList ( const TQValueList< KDataToolInfo > &  tools,
const TQObject *  receiver,
const char *  slot 
)
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.

Parameters
toolsthe list of data tool descriptions
receiverthe receiver for toolActivated() signals
slotthe slot that will receive the toolActivated() signals
Returns
the TDEActions

Definition at line 231 of file kdatatool.cpp.

◆ toolActivated

void KDataToolAction::toolActivated ( const KDataToolInfo &  info,
const TQString &  command 
)
signal

Emitted when a tool has been activated.

Parameters
infoa description of the activated tools
commandthe command for the tool

The documentation for this class was generated from the following files:
  • kdatatool.h
  • kdatatool.cpp

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.1
This website is maintained by Timothy Pearson.