GammaRay API Documentation
3.2.0
|
An abstract interface for probe tools. More...
#include <toolfactory.h>
Public Member Functions | |
virtual QString | id () const =0 |
Unique id of this tool. More... | |
virtual void | init (Probe *probe)=0 |
Initialize the tool. More... | |
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... | |
An abstract interface for probe tools.
The ToolFactory class is an abstract base class for creating probe tools for GammaRay. Each tool must have a unique identifier.
|
pure virtual |
Unique id of this tool.
Implemented in GammaRay::StandardToolFactory< Type, Tool >.
|
pure virtual |
Initialize the tool.
Implement this method to do non-GUI initialization, such as creating object tracking models etc.
probe | The probe interface allowing access to the object models. |
Implemented in GammaRay::StandardToolFactory< Type, Tool >.
|
virtual |
Allows to hide a plug-in from the UI.
This is useful for plug-ins that only provide support for additional data types. The value is usually filled in by the plug-in loader
true
if the plug-in has no tool view.
|
virtual |
Class names of types this tool can select.
This must be a subset of supportedTypes(), and is used to check if this tool is a viable candidate for object navigation. When returning an non-empty result here, you must handle the Probe::objectSelected() signal.
void GammaRay::ToolFactory::setSupportedTypes | ( | const QVector< QByteArray > & | types | ) |
const QVector<QByteArray>& GammaRay::ToolFactory::supportedTypes | ( | ) | const |
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.
QString GammaRay::ToolFactory::supportedTypesString | ( | ) | const |
Class names of types this tool can handle as a string.