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::PlotSymbolWidget Class Reference

Widget for choosing a plot symbol. More...

#include <QtPlotWidget.qo.h>

Inheritance diagram for casa::PlotSymbolWidget:
casa::QtPlotWidget casa::QtEditingWidget

Public Member Functions

 PlotSymbolWidget (PlotFactoryPtr factory, PlotSymbolPtr defaultSymbol, bool showAlphaFill=false, bool showCustom=true, bool showAlphaLine=false, bool showCharacter=true, QWidget *parent=NULL)
 Constructor which takes a PlotFactory, the symbol associated with the "default" options, a flag for whether to show an alpha spinner for the area fill, a flag for whether to allow the user to set a custom outline, a flag for whether to show an alpha spinner for the custom outline, and an optional parent widget. More...
 
 ~PlotSymbolWidget ()
 Destructor. More...
 
PlotSymbolPtr getSymbol () const
 Gets/Sets the currently set symbol on the widget. More...
 
void setSymbol (PlotSymbolPtr symbol)
 
void addRadioButtonsToGroup (QButtonGroup *group) const
 Overrides QtEditingWidget::addRadioButtonsToGroup(). More...
 
void setMinimumSizes (const std::map< PlotSymbol::Symbol, int > &minimumSizes)
 Sets the allowable minimum sizes for the given symbol types. More...
 
- 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...
 

Private Slots

void symbolChanged (bool check=true)
 Slot for when the set symbol changes. More...
 

Private Attributes

PlotFillWidgetitsFillWidget_
 Area fill widget. More...
 
PlotLineWidgetitsLineWidget_
 Line widget. More...
 
PlotSymbolPtr itsDefault_
 Default symbol. More...
 
PlotSymbolPtr itsSymbol_
 Last set symbol. More...
 
std::map< PlotSymbol::Symbol, int > itsMinSizes_
 Minimum allowable sizes. 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 symbol.

Uses a PlotFillWidget for the area fill and a PlotLineWidget for the outline. Lets the user choose between no symbol, a default symbol given at construction, or a custom symbol they can set.

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

Constructor & Destructor Documentation

casa::PlotSymbolWidget::PlotSymbolWidget ( PlotFactoryPtr  factory,
PlotSymbolPtr  defaultSymbol,
bool  showAlphaFill = false,
bool  showCustom = true,
bool  showAlphaLine = false,
bool  showCharacter = true,
QWidget *  parent = NULL 
)

Constructor which takes a PlotFactory, the symbol associated with the "default" options, a flag for whether to show an alpha spinner for the area fill, a flag for whether to allow the user to set a custom outline, a flag for whether to show an alpha spinner for the custom outline, and an optional parent widget.

casa::PlotSymbolWidget::~PlotSymbolWidget ( )

Destructor.

Member Function Documentation

void casa::PlotSymbolWidget::addRadioButtonsToGroup ( QButtonGroup *  group) const
virtual
PlotSymbolPtr casa::PlotSymbolWidget::getSymbol ( ) const

Gets/Sets the currently set symbol on the widget.

void casa::PlotSymbolWidget::setMinimumSizes ( const std::map< PlotSymbol::Symbol, int > &  minimumSizes)

Sets the allowable minimum sizes for the given symbol types.

void casa::PlotSymbolWidget::setSymbol ( PlotSymbolPtr  symbol)
void casa::PlotSymbolWidget::symbolChanged ( bool  check = true)
privateslot

Slot for when the set symbol changes.

The "check" flag can be used to avoid emitting the changed signals twice (for example, when one radio button turns off when another turns on).

Member Data Documentation

PlotSymbolPtr casa::PlotSymbolWidget::itsDefault_
private

Default symbol.

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

PlotFillWidget* casa::PlotSymbolWidget::itsFillWidget_
private

Area fill widget.

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

PlotLineWidget* casa::PlotSymbolWidget::itsLineWidget_
private

Line widget.

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

std::map<PlotSymbol::Symbol, int> casa::PlotSymbolWidget::itsMinSizes_
private

Minimum allowable sizes.

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

PlotSymbolPtr casa::PlotSymbolWidget::itsSymbol_
private

Last set symbol.

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


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