casa::PlotColorWidget Class Reference

Widget for choosing a plot color. More...

#include <QtPlotWidget.qo.h>

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

List of all members.

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_
 Last set color.

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 (  )  [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 ( const String &  color  ) 
void casa::PlotColorWidget::setColor ( PlotColorPtr  color  ) 

Member Data Documentation

Last set color.

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1