casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Attributes | List of all members
casa::PlotColorWidget Class Reference

Widget for choosing a plot color. More...

#include <QtPlotWidget.qo.h>

Inheritance diagram for casa::PlotColorWidget:
casa::QtPlotWidget casa::QtEditingWidget

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...
 

Detailed Description

Widget for choosing a plot color.

Definition at line 59 of file QtPlotWidget.qo.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void casa::PlotColorWidget::colorChanged ( )
privateslot

Slot for when the set color changes.

void casa::PlotColorWidget::colorChoose ( )
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)

Member Data Documentation

PlotColorPtr casa::PlotColorWidget::itsColor_
private

Last set color.

Definition at line 85 of file QtPlotWidget.qo.h.


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