casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::PlotRangeWidget Class Reference

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

#include <PlotRangeWidget.qo.h>

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

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...
 

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 43 of file PlotRangeWidget.qo.h.

Constructor & Destructor Documentation

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

Constructor which takes an optional parent widget.

casa::PlotRangeWidget::~PlotRangeWidget ( )

Destructor.

Member Function Documentation

prange_t casa::PlotRangeWidget::getRange ( ) const

Gets/Sets the currently set range.

Referenced by getRange().

void casa::PlotRangeWidget::getRange ( double &  from,
double &  to 
)
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().

void casa::PlotRangeWidget::setRange ( bool  isDate,
bool  isCustom,
prange_t  range 
)
inline

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

References setRange().


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