GammaRay API Documentation  3.2.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 >:
GammaRay::ToolFactory

Public Member Functions

QString id () const override
 Unique id of this tool. More...
 
void init (Probe *probe) override
 Initialize the tool. More...
 
- Public Member Functions inherited from GammaRay::ToolFactory
virtual bool isHidden () const
 Allows to hide a plug-in from the UI. More...
 
virtual QVector< QByteArray > selectableTypes () const
 Class names of types this tool can select. More...
 
void setSupportedTypes (const QVector< QByteArray > &types)
 Set names of supported classes. More...
 
const QVector< QByteArray > & supportedTypes () const
 Class names of types this tool can handle. More...
 
QString supportedTypesString () const
 Class names of types this tool can handle as a string. More...
 

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

◆ id()

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

Unique id of this tool.

Returns
a QString containing the tool id.

Implements GammaRay::ToolFactory.

◆ init()

template<typename Type , typename Tool >
void GammaRay::StandardToolFactory< Type, Tool >::init ( Probe probe)
inlineoverridevirtual

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.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
GammaRay Qt-application inspection and manipulation tool
https://www.kdab.com/development-resources/qt-tools/gammaray/
Generated by doxygen 1.9.1