OpenWalnut
1.5.0dev
|
Simple widget allowing to define a certain interval. More...
#include <WQtIntervalEdit.h>
Public Member Functions | |
WQtIntervalEdit (QWidget *parent) | |
Default constructor. More... | |
virtual | ~WQtIntervalEdit () |
Destructor. More... | |
void | setAllowedMin (DataType min=std::numeric_limits< DataType >::min()) |
Set the allowed minimum. More... | |
void | setAllowedMax (DataType max=std::numeric_limits< DataType >::max()) |
Set the allowed maximum. More... | |
const DataType & | getAllowedMin () const |
Get the currently allowed min. More... | |
const DataType & | getAllowedMax () const |
Get the currently allowed max. More... | |
void | setMin (DataType min=std::numeric_limits< DataType >::min()) |
Set the currently selected min. More... | |
void | setMax (DataType max=std::numeric_limits< DataType >::max()) |
Set the currently selected max. More... | |
const DataType & | getMin () const |
Get the currently selected minimum. More... | |
const DataType & | getMax () const |
Get the currently selected maximum. More... | |
virtual void | update () |
Update the current state. More... | |
Public Member Functions inherited from WQtIntervalEditBase | |
WQtIntervalEditBase (QWidget *parent) | |
Default constructor. More... | |
virtual | ~WQtIntervalEditBase () |
Destructor. More... | |
Protected Member Functions | |
virtual void | minSliderChanged () |
Slot called when the minimum slider changes. More... | |
virtual void | maxSliderChanged () |
Slot called when the maximum slider changes. More... | |
virtual void | minEditChanged () |
Slot called when the minimum edit changes. More... | |
virtual void | maxEditChanged () |
Slot called when the maximum edit changes. More... | |
Private Attributes | |
DataType | m_allowedMax |
The allowed maximum. More... | |
DataType | m_allowedMin |
The allowed minimum. More... | |
DataType | m_min |
The current minumum. More... | |
DataType | m_max |
The current maximum. More... | |
Additional Inherited Members | |
Signals inherited from WQtIntervalEditBase | |
void | minimumChanged () |
Called whenever the user changes the current minimum OR setMin was called. More... | |
void | maximumChanged () |
Called whenever the user changes the current ,aximum OR setMax was called. More... | |
Protected Slots inherited from WQtIntervalEditBase | |
Protected Attributes inherited from WQtIntervalEditBase | |
QSlider | m_minSlider |
The slider for the minimum. More... | |
QSlider | m_maxSlider |
The slider for the maximumum. More... | |
QLineEdit | m_minEdit |
The minimum edit. More... | |
QLineEdit | m_maxEdit |
The maximum edit. More... | |
QLabel | m_minLabel |
A label for the minimum. More... | |
QLabel | m_maxLabel |
A label for the maximum. More... | |
QGridLayout | m_layout |
The layout containing min and max layout. More... | |
Static Protected Attributes inherited from WQtIntervalEditBase | |
static int | SliderResolution = 10000 |
Resolution of the sliders. More... | |
Simple widget allowing to define a certain interval.
DataType | interval for which integral type? |
Definition at line 150 of file WQtIntervalEdit.h.
|
explicit |
Default constructor.
parent | the parent widget |
Definition at line 270 of file WQtIntervalEdit.h.
|
virtual |
Destructor.
Definition at line 282 of file WQtIntervalEdit.h.
const DataType & WQtIntervalEdit< DataType, DisplayType >::getAllowedMax |
const DataType & WQtIntervalEdit< DataType, DisplayType >::getAllowedMin |
const DataType & WQtIntervalEdit< DataType, DisplayType >::getMax |
Get the currently selected maximum.
Definition at line 385 of file WQtIntervalEdit.h.
Referenced by WPropertyDoubleWidget::minMaxUpdated(), WPropertyIntWidget::minMaxUpdated(), WPropertyDoubleWidget::update(), and WPropertyIntWidget::update().
const DataType & WQtIntervalEdit< DataType, DisplayType >::getMin |
Get the currently selected minimum.
Definition at line 379 of file WQtIntervalEdit.h.
Referenced by WPropertyDoubleWidget::minMaxUpdated(), WPropertyIntWidget::minMaxUpdated(), WPropertyDoubleWidget::update(), and WPropertyIntWidget::update().
|
protectedvirtual |
Slot called when the maximum edit changes.
Reimplemented from WQtIntervalEditBase.
Definition at line 454 of file WQtIntervalEdit.h.
|
protectedvirtual |
Slot called when the maximum slider changes.
Reimplemented from WQtIntervalEditBase.
Definition at line 428 of file WQtIntervalEdit.h.
|
protectedvirtual |
Slot called when the minimum edit changes.
Reimplemented from WQtIntervalEditBase.
Definition at line 439 of file WQtIntervalEdit.h.
|
protectedvirtual |
Slot called when the minimum slider changes.
Reimplemented from WQtIntervalEditBase.
Definition at line 418 of file WQtIntervalEdit.h.
void WQtIntervalEdit< DataType, DisplayType >::setAllowedMax | ( | DataType | max = std::numeric_limits< DataType >::max() | ) |
Set the allowed maximum.
max | the max |
Definition at line 308 of file WQtIntervalEdit.h.
Referenced by WPropertyDoubleWidget::update(), and WPropertyIntWidget::update().
void WQtIntervalEdit< DataType, DisplayType >::setAllowedMin | ( | DataType | min = std::numeric_limits< DataType >::min() | ) |
Set the allowed minimum.
min | the min. |
Definition at line 288 of file WQtIntervalEdit.h.
Referenced by WPropertyDoubleWidget::update(), and WPropertyIntWidget::update().
void WQtIntervalEdit< DataType, DisplayType >::setMax | ( | DataType | max = std::numeric_limits< DataType >::max() | ) |
Set the currently selected max.
max | the max |
Definition at line 360 of file WQtIntervalEdit.h.
void WQtIntervalEdit< DataType, DisplayType >::setMin | ( | DataType | min = std::numeric_limits< DataType >::min() | ) |
Set the currently selected min.
min | the min |
Definition at line 340 of file WQtIntervalEdit.h.
|
virtual |
Update the current state.
Implements WQtIntervalEditBase.
Definition at line 391 of file WQtIntervalEdit.h.
|
private |
The allowed maximum.
Definition at line 250 of file WQtIntervalEdit.h.
|
private |
The allowed minimum.
Definition at line 255 of file WQtIntervalEdit.h.
|
private |
The current maximum.
Definition at line 265 of file WQtIntervalEdit.h.
|
private |
The current minumum.
Definition at line 260 of file WQtIntervalEdit.h.