#include <lightwidget.h>
Signals | |
void | contentsChanged (void) |
Emitted when the user changes data in the widget. | |
Public Member Functions | |
CLightParamWidget (const QString &name=QString(), bool isColorWidget=true) | |
Constructs a light oaram widget. | |
vec4_t | getValues (void) const |
Returns the current values stored in this widget. | |
void | setValues (const vec4_t &values) |
Sets the values stored in this widget. |
This widget is a collection of four spin boxes to select and RGBA value and a push button that brings up a color selection dialog. The intention is, that the user can select colors when seeing them and then manipulate them without bringing up the color dialog every time. The widget can also be used to ask the user for a 4D position vector. In this case, the color selection button is invisible, but still takes space of the widget. This should make it easy to align it with other CLightParam widgets.
CLightParamWidget::CLightParamWidget | ( | const QString & | name = QString() , |
|
bool | isColorWidget = true | |||
) |
Constructs a light oaram widget.
name | Name of the property to edit. This name is displayed to the user. | |
isColorWidget | Flag wether this widget is used as a color input widget (the default). If this is set to False, the the color selection button will not be available. |
void CLightParamWidget::setValues | ( | const vec4_t & | values | ) |
Sets the values stored in this widget.
values | New values. |
void CLightParamWidget::contentsChanged | ( | void | ) | [signal] |
Emitted when the user changes data in the widget.