GammaRay  2.4.0
Public Member Functions | List of all members
GammaRay::StandardToolFactory< Type, Tool > Class Template Reference

A templated generic ToolFactory for some data type and tool. More...

#include <toolfactory.h>

Inheritance diagram for GammaRay::StandardToolFactory< Type, Tool >:
Inheritance graph
[legend]

Public Member Functions

QString id () const Q_DECL_OVERRIDE
 
void init (ProbeInterface *probe) Q_DECL_OVERRIDE
 
bool isHidden () const Q_DECL_OVERRIDE
 
QStringList supportedTypes () const Q_DECL_OVERRIDE
 
- Public Member Functions inherited from GammaRay::ToolFactory
virtual QString name () const =0
 

Detailed Description

template<typename Type, typename Tool>
class GammaRay::StandardToolFactory< Type, Tool >

A templated generic ToolFactory for some data type and tool.

Member Function Documentation

template<typename Type , typename Tool >
QString GammaRay::StandardToolFactory< Type, Tool >::id ( ) const
inlinevirtual

Unique id of this tool

Returns
a QString containing the tool id.

Implements GammaRay::ToolFactory.

template<typename Type , typename Tool >
void GammaRay::StandardToolFactory< Type, Tool >::init ( ProbeInterface probe)
inlinevirtual

Initialize the tool. Implement this method to do non-GUI initialization, such as creating object tracking models etc.

Parameters
probeThe probe interface allowing access to the object models.

Implements GammaRay::ToolFactory.

template<typename Type , typename Tool >
bool GammaRay::StandardToolFactory< Type, Tool >::isHidden ( ) const
inlinevirtual

Allows to hide a plug-in from the UI. This is useful for plug-ins that only provide support for additional data types.

Since
2.1

Implements GammaRay::ToolFactory.

template<typename Type , typename Tool >
QStringList GammaRay::StandardToolFactory< Type, Tool >::supportedTypes ( ) const
inlinevirtual

Class names of types this tool can handle. The tool will only be activated if an object of one of these types is seen in the probed application.

Returns
a QStringList of class names of types this tool supports.

Implements GammaRay::ToolFactory.


The documentation for this class was generated from the following file:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/