casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Slots | Private Attributes
casa::PlotSymbolWidget Class Reference

Widget for choosing a plot symbol. More...

#include <QtPlotWidget.qo.h>

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

List of all members.

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.
 ~PlotSymbolWidget ()
 Destructor.
PlotSymbolPtr getSymbol () const
 Gets/Sets the currently set symbol on the widget.
void setSymbol (PlotSymbolPtr symbol)
void addRadioButtonsToGroup (QButtonGroup *group) const
 Overrides QtEditingWidget::addRadioButtonsToGroup().
void setMinimumSizes (const map< PlotSymbol::Symbol, int > &minimumSizes)
 Sets the allowable minimum sizes for the given symbol types.

Private Slots

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

Private Attributes

PlotFillWidgetitsFillWidget_
 Area fill widget.
PlotLineWidgetitsLineWidget_
 Line widget.
PlotSymbolPtr itsDefault_
 Default symbol.
PlotSymbolPtr itsSymbol_
 Last set symbol.
map< PlotSymbol::Symbol, int > itsMinSizes_
 Minimum allowable sizes.

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

Destructor.


Member Function Documentation

void casa::PlotSymbolWidget::addRadioButtonsToGroup ( QButtonGroup *  group) const [virtual]

Gets/Sets the currently set symbol on the widget.

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

Sets the allowable minimum sizes for the given symbol types.

void casa::PlotSymbolWidget::symbolChanged ( bool  check = true) [private, slot]

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

Default symbol.

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

Area fill widget.

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

Line widget.

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

Minimum allowable sizes.

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

Last set symbol.

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


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