casa
5.7.0-16
|
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. More... | |
~PlotColorWidget () | |
Destructor. More... | |
PlotColorPtr | getColor () const |
Gets/Sets the currently set color on the widget. More... | |
void | setColor (PlotColorPtr color) |
casacore::String | getColorString () const |
Gets/Sets the currently set color on the widget as a String. More... | |
void | setColor (const casacore::String &color) |
Public Member Functions inherited from casa::QtPlotWidget | |
QtPlotWidget (PlotFactoryPtr factory, QWidget *parent=NULL) | |
Constructor which takes a PlotFactory and an optional parent widget. More... | |
virtual | ~QtPlotWidget () |
Destructor. More... | |
Public Member Functions inherited from casa::QtEditingWidget | |
QtEditingWidget (QWidget *parent=NULL) | |
Constructor which takes an optional parent widget. More... | |
virtual | ~QtEditingWidget () |
Destructor. More... | |
virtual void | addRadioButtonsToGroup (QButtonGroup *group) const |
Adds any radio buttons in the widget to the given button group. More... | |
Private Slots | |
void | colorChoose () |
Slot to show color chooser. More... | |
void | colorChanged () |
Slot for when the set color changes. More... | |
Private Attributes | |
PlotColorPtr | itsColor_ |
Last set color. More... | |
Additional Inherited Members | |
Signals inherited from casa::QtEditingWidget | |
void | changed () |
This signal should be emitted whenever the user changes any value settings in the GUI. More... | |
void | differentFromSet () |
This signal should be emitted when the user changes any value settings in the GUI AND the new value is different from the last set value. More... | |
void | editDone () |
to change widget focus when editing done More... | |
Protected Attributes inherited from casa::QtPlotWidget | |
PlotFactoryPtr | itsFactory_ |
Factory. More... | |
Widget for choosing a plot color.
Definition at line 59 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.
casa::PlotColorWidget::~PlotColorWidget | ( | ) |
Destructor.
|
privateslot |
Slot for when the set color changes.
|
privateslot |
Slot to show color chooser.
PlotColorPtr casa::PlotColorWidget::getColor | ( | ) | const |
Gets/Sets the currently set color on the widget.
casacore::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 casacore::String & | color | ) |
|
private |
Last set color.
Definition at line 85 of file QtPlotWidget.qo.h.