casa
$Rev:20696$
|
Widget for choosing a plot symbol. More...
#include <QtPlotWidget.qo.h>
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 | |
PlotFillWidget * | itsFillWidget_ |
Area fill widget. | |
PlotLineWidget * | itsLineWidget_ |
Line widget. | |
PlotSymbolPtr | itsDefault_ |
Default symbol. | |
PlotSymbolPtr | itsSymbol_ |
Last set symbol. | |
map< PlotSymbol::Symbol, int > | itsMinSizes_ |
Minimum allowable sizes. |
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.
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.
void casa::PlotSymbolWidget::addRadioButtonsToGroup | ( | QButtonGroup * | group | ) | const [virtual] |
Overrides QtEditingWidget::addRadioButtonsToGroup().
Reimplemented from casa::QtEditingWidget.
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::setSymbol | ( | PlotSymbolPtr | symbol | ) |
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).
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.
map<PlotSymbol::Symbol, int> casa::PlotSymbolWidget::itsMinSizes_ [private] |
Minimum allowable sizes.
Definition at line 218 of file QtPlotWidget.qo.h.
Last set symbol.
Definition at line 215 of file QtPlotWidget.qo.h.