casa
5.7.0-16
|
Widget for selecting a plot axis range. More...
#include <PlotRangeWidget.qo.h>
Public Member Functions | |
PlotRangeWidget (bool customOnTwoLines=false, QWidget *parent=NULL) | |
Constructor which takes an optional parent widget. More... | |
~PlotRangeWidget () | |
Destructor. More... | |
bool | isDate () const |
Gets/Sets whether or not the displayed range widgets are for dates or not. More... | |
void | setIsDate (bool isDate=true) |
bool | isCustom () const |
Gets whether the currently set date is custom or not. More... | |
prange_t | getRange () const |
Gets/Sets the currently set range. More... | |
void | getRange (double &from, double &to) |
void | setRange (bool isDate, bool isCustom, double from, double to) |
void | setRange (bool isDate, bool isCustom, prange_t range) |
Public Member Functions inherited from casa::QtEditingWidget | |
QtEditingWidget (QWidget *parent=NULL) | |
Constructor which takes an optional parent widget. More... | |
virtual | ~QtEditingWidget () |
Destructor. More... | |
virtual void | addRadioButtonsToGroup (QButtonGroup *group) const |
Adds any radio buttons in the widget to the given button group. 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... | |
Widget for selecting a plot axis range.
Lets the user choose between an automatic range or a custom range they can set. Ranges can either be normal doubles, or two dates which are converted to/from doubles as needed using PMS::dateDouble().
Definition at line 43 of file PlotRangeWidget.qo.h.
casa::PlotRangeWidget::PlotRangeWidget | ( | bool | customOnTwoLines = false , |
QWidget * | parent = NULL |
||
) |
Constructor which takes an optional parent widget.
casa::PlotRangeWidget::~PlotRangeWidget | ( | ) |
Destructor.
prange_t casa::PlotRangeWidget::getRange | ( | ) | const |
Gets/Sets the currently set range.
Referenced by getRange().
|
inline |
Definition at line 66 of file PlotRangeWidget.qo.h.
References getRange().
bool casa::PlotRangeWidget::isCustom | ( | ) | const |
Gets whether the currently set date is custom or not.
bool casa::PlotRangeWidget::isDate | ( | ) | const |
Gets/Sets whether or not the displayed range widgets are for dates or not.
void casa::PlotRangeWidget::setIsDate | ( | bool | isDate = true | ) |
void casa::PlotRangeWidget::setRange | ( | bool | isDate, |
bool | isCustom, | ||
double | from, | ||
double | to | ||
) |
Referenced by setRange().
|
inline |
Definition at line 72 of file PlotRangeWidget.qo.h.
References setRange().