Class representing an icon representing a parameter type.
More...
#include <ParameterTypeIcon.h>
|
| ParameterTypeIcon (const QColor &color) |
| Constructor of the ParameterTypeIcon class.
|
|
virtual | ~ParameterTypeIcon () |
| Destructor of the ParameterTypeIcon class.
|
|
void | paint (QPainter *painter, const QRect &rect, Qt::Alignment alignment=Qt::AlignCenter, Mode mode=Normal, State state=Off) const |
| Uses the given painter to paint the icon with specified alignment, required mode, and state into the given rectangle.
|
|
|
static QIcon | getIcon (const QString ¶meterTypeName) |
| 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.
|
|
|
QColor | m_color |
| The color to use when painting the icon.
|
|
|
static QMap< QString, QIcon > | s_iconCache |
| Map for action icons by parameter type name.
|
|
Class representing an icon representing a parameter type.
Inheritance Diagram
Frapper::ParameterTypeIcon::ParameterTypeIcon |
( |
const QColor & |
color | ) |
|
Constructor of the ParameterTypeIcon class.
Constructors and Destructors.
- Parameters
-
color | The color for the parameter type icon. |
Constructor of the ParameterTypeIcon class.
- Parameters
-
color | The color for the parameter type icon. |
Frapper::ParameterTypeIcon::~ParameterTypeIcon |
( |
| ) |
|
|
virtual |
QIcon Frapper::ParameterTypeIcon::getIcon |
( |
const QString & |
parameterTypeName | ) |
|
|
static |
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 Static Functions.
- Parameters
-
parameterTypeName | The name of the parameter type to return the icon for. |
- Returns
- The icon that represents the parameter type with the given name.
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
-
parameterTypeName | The name of the parameter type to return the icon for. |
- Returns
- The icon that represents the parameter type with the given name.
void Frapper::ParameterTypeIcon::paint |
( |
QPainter * |
painter, |
|
|
const QRect & |
rect, |
|
|
Qt::Alignment |
alignment = Qt::AlignCenter , |
|
|
Mode |
mode = Normal , |
|
|
State |
state = Off |
|
) |
| const |
Uses the given painter to paint the icon with specified alignment, required mode, and state into the given rectangle.
Public Functions.
- Parameters
-
painter | The object to use for painting. |
rect | The rectangle in which to paint. |
alignment | The alignment to use for painting. |
mode | The mode for which to paint the icon. |
state | The state in which to paint the icon. |
Uses the given painter to paint the icon with specified alignment, required mode, and state into the given rectangle.
- Parameters
-
painter | The object to use for painting. |
rect | The rectangle in which to paint. |
alignment | The alignment to use for painting. |
mode | The mode for which to paint the icon. |
state | The state in which to paint the icon. |
QMap< QString, QIcon > Frapper::ParameterTypeIcon::s_iconCache |
|
staticprivate |
Map for action icons by parameter type name.
Private Static Data.
QColor Frapper::ParameterTypeIcon::m_color |
|
private |
The color to use when painting the icon.
The documentation for this class was generated from the following files: