Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
RangeLimitBox Class Reference

A checkable DoubleSpinBox that can be used to select the limits of a double. More...

#include <DoubleSpinBox.h>

Inheritance diagram for RangeLimitBox:

Public Types

enum  LimitType { LeftLimit , RightLimit }
 

Public Member Functions

bool isChecked ()
 
 RangeLimitBox (LimitType type, QWidget *parent=nullptr)
 
void setDecimals (int prec)
 
double value ()
 

Private Attributes

QCheckBox * d_checkbox
 
DoubleSpinBoxd_spin_box
 
LimitType d_type
 

Detailed Description

A checkable DoubleSpinBox that can be used to select the limits of a double.

Definition at line 98 of file DoubleSpinBox.h.

Member Enumeration Documentation

◆ LimitType

Enumerator
LeftLimit 
RightLimit 

Definition at line 100 of file DoubleSpinBox.h.

Constructor & Destructor Documentation

◆ RangeLimitBox()

RangeLimitBox::RangeLimitBox ( LimitType  type,
QWidget *  parent = nullptr 
)

Definition at line 181 of file DoubleSpinBox.cpp.

References d_checkbox, d_spin_box, and DoubleSpinBox::setValue().

Member Function Documentation

◆ isChecked()

bool RangeLimitBox::isChecked ( )
inline

Definition at line 105 of file DoubleSpinBox.h.

◆ setDecimals()

void RangeLimitBox::setDecimals ( int  prec)
inline

Definition at line 103 of file DoubleSpinBox.h.

◆ value()

double RangeLimitBox::value ( )

Definition at line 200 of file DoubleSpinBox.cpp.

References d_checkbox, d_spin_box, d_type, RightLimit, and DoubleSpinBox::value().

Member Data Documentation

◆ d_checkbox

QCheckBox* RangeLimitBox::d_checkbox
private

Definition at line 109 of file DoubleSpinBox.h.

Referenced by RangeLimitBox(), and value().

◆ d_spin_box

DoubleSpinBox* RangeLimitBox::d_spin_box
private

Definition at line 108 of file DoubleSpinBox.h.

Referenced by RangeLimitBox(), and value().

◆ d_type

LimitType RangeLimitBox::d_type
private

Definition at line 110 of file DoubleSpinBox.h.

Referenced by value().


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