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. | |
| ~PlotRangeWidget () | |
| Destructor. | |
| bool | isDate () const |
| Gets/Sets whether or not the displayed range widgets are for dates or not. | |
| void | setIsDate (bool isDate=true) |
| bool | isCustom () const |
| Gets whether the currently set date is custom or not. | |
| prange_t | getRange () const |
| Gets/Sets the currently set range. | |
| 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) |
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.
| void casa::PlotRangeWidget::getRange | ( | double & | from, | |
| double & | to | |||
| ) | [inline] |
Definition at line 66 of file PlotRangeWidget.qo.h.
References getRange().
| prange_t casa::PlotRangeWidget::getRange | ( | ) | const |
Gets/Sets the currently set range.
Referenced by 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, | |||
| prange_t | range | |||
| ) | [inline] |
Definition at line 72 of file PlotRangeWidget.qo.h.
References setRange().
| void casa::PlotRangeWidget::setRange | ( | bool | isDate, | |
| bool | isCustom, | |||
| double | from, | |||
| double | to | |||
| ) |
Referenced by setRange().
1.6.1