GammaRay  1.3.0
 All Classes Namespaces Files Functions Enumerations Enumerator Pages
Public Member Functions
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]

List of all members.

Public Member Functions

virtual QWidget * createWidget (ProbeInterface *probe, QWidget *parentWidget)
virtual QString id () const
virtual void init (ProbeInterface *)
virtual QStringList supportedTypes () const
- 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 >
virtual QWidget* GammaRay::StandardToolFactory< Type, Tool >::createWidget ( ProbeInterface probe,
QWidget *  parentWidget 
)
inlinevirtual

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.

Implements GammaRay::ToolFactory.

template<typename Type , typename Tool >
virtual 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 >
virtual 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 >
virtual 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 Cross-Platform Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/