casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::PlotRangeWidget Class Reference

Widget for selecting a plot axis range. More...

#include <PlotRangeWidget.qo.h>

Inheritance diagram for casa::PlotRangeWidget:
casa::QtEditingWidget

List of all members.

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)

Detailed Description

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.


Constructor & Destructor Documentation

casa::PlotRangeWidget::PlotRangeWidget ( bool  customOnTwoLines = false,
QWidget *  parent = NULL 
)

Constructor which takes an optional parent widget.

Destructor.


Member Function Documentation

Gets/Sets the currently set range.

void casa::PlotRangeWidget::getRange ( double &  from,
double &  to 
) [inline]

Definition at line 69 of file PlotRangeWidget.qo.h.

Gets whether the currently set date is custom or not.

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.


The documentation for this class was generated from the following file: