casa
$Rev:20696$
|
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 46 of file PlotRangeWidget.qo.h.
casa::PlotRangeWidget::PlotRangeWidget | ( | bool | customOnTwoLines = false , |
QWidget * | parent = NULL |
||
) |
Constructor which takes an optional parent widget.
Destructor.
prange_t casa::PlotRangeWidget::getRange | ( | ) | const |
Gets/Sets the currently set range.
void casa::PlotRangeWidget::getRange | ( | double & | from, |
double & | to | ||
) | [inline] |
Definition at line 69 of file PlotRangeWidget.qo.h.
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 | ||
) |
void casa::PlotRangeWidget::setRange | ( | bool | isDate, |
bool | isCustom, | ||
prange_t | range | ||
) | [inline] |
Definition at line 75 of file PlotRangeWidget.qo.h.