QtPdWidgets  2.3.1
Classes | Public Member Functions | Properties | Private Slots | Private Member Functions | Private Attributes | List of all members
Pd::DoubleSpinBox Class Reference

Spinbox containing a double value. More...

#include <DoubleSpinBox.h>

Inheritance diagram for Pd::DoubleSpinBox:
Inheritance graph
[legend]
Collaboration diagram for Pd::DoubleSpinBox:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

 DoubleSpinBox (QWidget *parent=0)
 Constructor. More...
 
virtual ~DoubleSpinBox ()
 Destructor. More...
 
void clearData ()
 
void setMinimum (double)
 
void setMaximum (double)
 

Properties

double minimum
 
double maximum
 

Private Slots

PD_PRIVATE void on_textChanged (const QString &)
 Called, when the user changes the text in the line edit. More...
 
PD_PRIVATE void on_editingFinished ()
 Called, when the input focus leaves the line edit. More...
 

Private Member Functions

PD_PRIVATE void keyPressEvent (QKeyEvent *) override
 Handles keybord events from the user. More...
 
PD_PRIVATE void stepBy (int) override
 Called, when the user clicks on the up/down buttons/keys. More...
 
PD_PRIVATE void newValues (std::chrono::nanoseconds) override
 This virtual method is called by the ProcessVariable, if its value changes. More...
 

Private Attributes

struct PD_PRIVATE Impl
 
std::unique_ptr< Implimpl
 

Detailed Description

Spinbox containing a double value.

Constructor & Destructor Documentation

◆ DoubleSpinBox()

DoubleSpinBox::DoubleSpinBox ( QWidget *  parent = 0)

Constructor.

Parameters
parentparent widget

References on_editingFinished(), and on_textChanged().

◆ ~DoubleSpinBox()

DoubleSpinBox::~DoubleSpinBox ( )
virtual

Destructor.

Member Function Documentation

◆ clearData()

void DoubleSpinBox::clearData ( )

References impl.

◆ keyPressEvent()

void DoubleSpinBox::keyPressEvent ( QKeyEvent *  event)
overrideprivate

Handles keybord events from the user.

Overloads the keyPressEvent handler from QDoubleSpinBox.

References impl.

◆ newValues()

void DoubleSpinBox::newValues ( std::chrono::nanoseconds  )
overrideprivate

This virtual method is called by the ProcessVariable, if its value changes.

References impl.

◆ on_editingFinished

void DoubleSpinBox::on_editingFinished ( )
privateslot

Called, when the input focus leaves the line edit.

Editing shall be canceled in this case.

References impl.

Referenced by DoubleSpinBox().

◆ on_textChanged

void DoubleSpinBox::on_textChanged ( const QString &  text)
privateslot

Called, when the user changes the text in the line edit.

References impl.

Referenced by DoubleSpinBox().

◆ setMaximum()

void DoubleSpinBox::setMaximum ( double  value)

References impl.

◆ setMinimum()

void DoubleSpinBox::setMinimum ( double  value)

References impl.

◆ stepBy()

void DoubleSpinBox::stepBy ( int  steps)
overrideprivate

Called, when the user clicks on the up/down buttons/keys.

This is a virtual function from QAbstractSpinBox, that is overloaded here.

When the user is editing the text value (the control has base color), the value shall be incremented, but not yet sent to the process. When no editing is in progress (control is white), the value shall be sent to the process, immediately.

References impl, maximum, and minimum.

Member Data Documentation

◆ Impl

◆ impl

std::unique_ptr<Impl> Pd::DoubleSpinBox::impl
private

Property Documentation

◆ maximum

double Pd::DoubleSpinBox::maximum
readwrite

Referenced by stepBy().

◆ minimum

double Pd::DoubleSpinBox::minimum
readwrite

Referenced by stepBy().


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