casa
$Rev:20696$
|
Widget for choosing a plot color. More...
#include <QtPlotWidget.qo.h>
Public Member Functions | |
PlotColorWidget (PlotFactoryPtr factory, bool showAlpha=false, QWidget *parent=NULL) | |
Constructor which takes a PlotFactory, a flag for whether or not to show an alpha spinner, and an optional parent widget. | |
~PlotColorWidget () | |
Destructor. | |
PlotColorPtr | getColor () const |
Gets/Sets the currently set color on the widget. | |
void | setColor (PlotColorPtr color) |
String | getColorString () const |
Gets/Sets the currently set color on the widget as a String. | |
void | setColor (const String &color) |
Private Slots | |
void | colorChoose () |
Slot to show color chooser. | |
void | colorChanged () |
Slot for when the set color changes. | |
Private Attributes | |
PlotColorPtr | itsColor_ |
Widget for choosing a plot color.
Definition at line 61 of file QtPlotWidget.qo.h.
casa::PlotColorWidget::PlotColorWidget | ( | PlotFactoryPtr | factory, |
bool | showAlpha = false , |
||
QWidget * | parent = NULL |
||
) |
Constructor which takes a PlotFactory, a flag for whether or not to show an alpha spinner, and an optional parent widget.
Destructor.
void casa::PlotColorWidget::colorChanged | ( | ) | [private, slot] |
Slot for when the set color changes.
void casa::PlotColorWidget::colorChoose | ( | ) | [private, slot] |
Slot to show color chooser.
PlotColorPtr casa::PlotColorWidget::getColor | ( | ) | const |
Gets/Sets the currently set color on the widget.
String casa::PlotColorWidget::getColorString | ( | ) | const |
Gets/Sets the currently set color on the widget as a String.
void casa::PlotColorWidget::setColor | ( | PlotColorPtr | color | ) |
void casa::PlotColorWidget::setColor | ( | const String & | color | ) |
PlotColorPtr casa::PlotColorWidget::itsColor_ [private] |