casa
5.7.0-16
|
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. 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 | |
PlotFillWidget * | itsFillWidget_ |
Area fill widget. More... | |
PlotLineWidget * | itsLineWidget_ |
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... | |
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.
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.
|
virtual |
Overrides QtEditingWidget::addRadioButtonsToGroup().
Reimplemented from casa::QtEditingWidget.
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 | ) |
|
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).
|
private |
Default symbol.
Definition at line 210 of file QtPlotWidget.qo.h.
|
private |
Area fill widget.
Definition at line 204 of file QtPlotWidget.qo.h.
|
private |
Line widget.
Definition at line 207 of file QtPlotWidget.qo.h.
|
private |
Minimum allowable sizes.
Definition at line 216 of file QtPlotWidget.qo.h.
|
private |
Last set symbol.
Definition at line 213 of file QtPlotWidget.qo.h.