OpenWalnut  1.5.0dev
Signals | Public Member Functions | Protected Slots | Protected Attributes | Static Protected Attributes | List of all members
WQtIntervalEditBase Class Referenceabstract

Base class for interval editing. More...

#include <WQtIntervalEdit.h>

+ Inheritance diagram for WQtIntervalEditBase:
+ Collaboration diagram for WQtIntervalEditBase:

Signals

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

Public Member Functions

 WQtIntervalEditBase (QWidget *parent)
 Default constructor. More...
 
virtual ~WQtIntervalEditBase ()
 Destructor. More...
 
virtual void update ()=0
 Update the current state. More...
 

Protected Slots

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

Protected Attributes

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

static int SliderResolution = 10000
 Resolution of the sliders. More...
 

Detailed Description

Base class for interval editing.

You should not use this class. Use the derived WQtIntervalEdit template.

Definition at line 46 of file WQtIntervalEdit.h.

Constructor & Destructor Documentation

◆ WQtIntervalEditBase()

WQtIntervalEditBase::WQtIntervalEditBase ( QWidget *  parent)
explicit

Default constructor.

Parameters
parentthe parent widget

Definition at line 31 of file WQtIntervalEdit.cpp.

References m_layout, m_maxEdit, m_maxLabel, m_maxSlider, m_minEdit, m_minLabel, m_minSlider, maxEditChanged(), maxSliderChanged(), minEditChanged(), minSliderChanged(), and SliderResolution.

+ Here is the call graph for this function:

◆ ~WQtIntervalEditBase()

WQtIntervalEditBase::~WQtIntervalEditBase ( )
virtual

Destructor.

Definition at line 68 of file WQtIntervalEdit.cpp.

Member Function Documentation

◆ maxEditChanged

void WQtIntervalEditBase::maxEditChanged ( )
protectedvirtualslot

Slot called when the maximum edit changes.

Reimplemented in WQtIntervalEdit< DataType, DisplayType >, WQtIntervalEdit< double, int32_t >, and WQtIntervalEdit< double, double >.

Definition at line 85 of file WQtIntervalEdit.cpp.

Referenced by WQtIntervalEditBase().

+ Here is the caller graph for this function:

◆ maximumChanged

void WQtIntervalEditBase::maximumChanged ( )
signal

Called whenever the user changes the current ,aximum OR setMax was called.

◆ maxSliderChanged

void WQtIntervalEditBase::maxSliderChanged ( )
protectedvirtualslot

Slot called when the maximum slider changes.

Reimplemented in WQtIntervalEdit< DataType, DisplayType >, WQtIntervalEdit< double, int32_t >, and WQtIntervalEdit< double, double >.

Definition at line 77 of file WQtIntervalEdit.cpp.

Referenced by WQtIntervalEditBase().

+ Here is the caller graph for this function:

◆ minEditChanged

void WQtIntervalEditBase::minEditChanged ( )
protectedvirtualslot

Slot called when the minimum edit changes.

Reimplemented in WQtIntervalEdit< DataType, DisplayType >, WQtIntervalEdit< double, int32_t >, and WQtIntervalEdit< double, double >.

Definition at line 81 of file WQtIntervalEdit.cpp.

Referenced by WQtIntervalEditBase().

+ Here is the caller graph for this function:

◆ minimumChanged

void WQtIntervalEditBase::minimumChanged ( )
signal

Called whenever the user changes the current minimum OR setMin was called.

◆ minSliderChanged

void WQtIntervalEditBase::minSliderChanged ( )
protectedvirtualslot

Slot called when the minimum slider changes.

Reimplemented in WQtIntervalEdit< DataType, DisplayType >, WQtIntervalEdit< double, int32_t >, and WQtIntervalEdit< double, double >.

Definition at line 73 of file WQtIntervalEdit.cpp.

Referenced by WQtIntervalEditBase().

+ Here is the caller graph for this function:

◆ update()

virtual void WQtIntervalEditBase::update ( )
pure virtual

Member Data Documentation

◆ m_layout

QGridLayout WQtIntervalEditBase::m_layout
protected

The layout containing min and max layout.

Definition at line 139 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ m_maxEdit

QLineEdit WQtIntervalEditBase::m_maxEdit
protected

The maximum edit.

Definition at line 124 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ m_maxLabel

QLabel WQtIntervalEditBase::m_maxLabel
protected

A label for the maximum.

Definition at line 134 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ m_maxSlider

QSlider WQtIntervalEditBase::m_maxSlider
protected

The slider for the maximumum.

Definition at line 114 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ m_minEdit

QLineEdit WQtIntervalEditBase::m_minEdit
protected

The minimum edit.

Definition at line 119 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ m_minLabel

QLabel WQtIntervalEditBase::m_minLabel
protected

A label for the minimum.

Definition at line 129 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ m_minSlider

QSlider WQtIntervalEditBase::m_minSlider
protected

The slider for the minimum.

Definition at line 109 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().

◆ SliderResolution

int WQtIntervalEditBase::SliderResolution = 10000
staticprotected

Resolution of the sliders.

Definition at line 104 of file WQtIntervalEdit.h.

Referenced by WQtIntervalEditBase().


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