GammaRay  1.3.0
 All Classes Namespaces Files Functions Enumerations Enumerator Pages
Public Member Functions
GammaRay::ToolFactory Class Reference

An abstract interface for probe tools. More...

#include <toolfactory.h>

Inheritance diagram for GammaRay::ToolFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual QWidget * createWidget (ProbeInterface *probe, QWidget *parentWidget)=0
virtual QString id () const =0
virtual void init (ProbeInterface *probe)=0
virtual QString name () const =0
virtual QStringList supportedTypes () const =0

Detailed Description

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.


Member Function Documentation

virtual QWidget* GammaRay::ToolFactory::createWidget ( ProbeInterface probe,
QWidget *  parentWidget 
)
pure virtual

Create the UI part of this tool.

Parameters:
probeThe probe interface allowing access to the object models.
parentWidgetThe parent widget for the visual elements of this tool.
Returns:
a pointer to the created QwWidget.

Implemented in GammaRay::StandardToolFactory< Type, Tool >.

virtual QString GammaRay::ToolFactory::id ( ) const
pure virtual

Unique id of this tool

Returns:
a QString containing the tool id.

Implemented in GammaRay::StandardToolFactory< Type, Tool >.

virtual void GammaRay::ToolFactory::init ( ProbeInterface probe)
pure virtual

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.

Implemented in GammaRay::StandardToolFactory< Type, Tool >.

virtual QString GammaRay::ToolFactory::name ( ) const
pure virtual

Human readable name of this tool.

Returns:
a QString containing the tool name.
virtual QStringList GammaRay::ToolFactory::supportedTypes ( ) const
pure virtual

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.

Implemented in GammaRay::StandardToolFactory< Type, Tool >.


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

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