kdatatool.h
208 KDataToolAction( const TQString & text, const KDataToolInfo & info, const TQString & command, TQObject * parent = 0, const char * name = 0);
220 static TQPtrList<TDEAction> dataToolActionList( const TQValueList<KDataToolInfo> & tools, const TQObject *receiver, const char* slot );
static TQPtrList< TDEAction > dataToolActionList(const TQValueList< KDataToolInfo > &tools, const TQObject *receiver, const char *slot)
Creates a list of actions from a list of information about data-tools.
Definition kdatatool.cpp:231
KDataToolAction(const TQString &text, const KDataToolInfo &info, const TQString &command, TQObject *parent=0, const char *name=0)
Constructs a new KDataToolAction.
Definition kdatatool.cpp:218
void toolActivated(const KDataToolInfo &info, const TQString &command)
Emitted when a tool has been activated.
KService::Ptr service() const
The KDataToolInfo's service that is represented by this class.
Definition kdatatool.cpp:157
TQString dataType() const
Returns the data type that the DataTool can accept.
Definition kdatatool.cpp:71
TQPixmap miniIcon() const TDE_DEPRECATED
Returns the mini icon of this data tool.
Definition kdatatool.cpp:109
TQStringList commands() const
Returns the list of commands the DataTool can execute.
Definition kdatatool.cpp:130
KDataTool * createTool(TQObject *parent=0, const char *name=0) const
Creates the data tool described by this KDataToolInfo.
Definition kdatatool.cpp:146
TQStringList mimeTypes() const
Returns a list of mime type that will be accepted by the DataTool.
Definition kdatatool.cpp:79
TQStringList userCommands() const
Returns a list of strings that you can put in a TQPopupMenu item, for example to offer the DataTools ...
Definition kdatatool.cpp:138
KDataTool(TQObject *parent=0, const char *name=0)
Constructor The data-tool is only created when a menu-item, that relates to it, is activated.
Definition kdatatool.cpp:269
virtual bool run(const TQString &command, void *data, const TQString &datatype, const TQString &mimetype)=0
Interface for 'running' this tool.
TDEInstance * instance() const
Returns the instance of the part that created this tool.
Definition kdatatool.cpp:274
Trinity API Reference