Frapper  1.0a
Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Frapper::ParameterAction Class Reference

Class representing an action representing a parameter of a node. More...

#include <ParameterAction.h>

Inheritance diagram for Frapper::ParameterAction:
Inheritance graph
[legend]
Collaboration diagram for Frapper::ParameterAction:
Collaboration graph
[legend]

Public Member Functions

 ParameterAction (Parameter *parameter, QObject *parent=0)
 Constructor of the ParameterAction class.
 
virtual ~ParameterAction ()
 Destructor of the ParameterAction class.
 
ParametergetParameter () const
 Returns the parameter the action represents.
 

Static Private Member Functions

static QIcon getIcon (const QString &parameterTypeName)
 Returns the icon for the parameter type with the given name. Creates the icon if it doesn't exist yet and stores it in the parameter type icon cache.
 

Private Attributes

Parameterm_parameter
 The parameter the action represents.
 

Static Private Attributes

static QMap< QString, QIcon > s_parameterTypeIcons
 Map for action icons by parameter type name.
 

Detailed Description

Class representing an action representing a parameter of a node.

Inheritance Diagram
dot_inline_dotgraph_8.png
[legend]

Constructor & Destructor Documentation

Frapper::ParameterAction::ParameterAction ( Parameter parameter,
QObject *  parent = 0 
)

Constructor of the ParameterAction class.

Constructors and Destructors.

Parameters
parameterThe parameter the action represents.
parentThe object that the action will be a child of.

Constructor of the ParameterAction class.

Parameters
parameterThe parameter the action represents.
parentThe object that the action will be a child of.
Frapper::ParameterAction::~ParameterAction ( void  )
virtual

Destructor of the ParameterAction class.

Member Function Documentation

static QIcon Frapper::ParameterAction::getIcon ( const QString &  parameterTypeName)
staticprivate

Returns the icon for the parameter type with the given name. Creates the icon if it doesn't exist yet and stores it in the parameter type icon cache.

Parameters
parameterTypeNameThe name of the parameter type to return the icon for.
Returns
The icon that represents the parameter type with the given name.
Parameter * Frapper::ParameterAction::getParameter ( ) const

Returns the parameter the action represents.

Public Functions.

Member Data Documentation

QMap<QString, QIcon> Frapper::ParameterAction::s_parameterTypeIcons
staticprivate

Map for action icons by parameter type name.

Parameter* Frapper::ParameterAction::m_parameter
private

The parameter the action represents.


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