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

Spinbox containing an integer value. More...

#include <SpinBox.h>

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

Classes

struct  Impl
 

Public Member Functions

 SpinBox (QWidget *parent=0)
 Constructor. More...
 
virtual ~SpinBox ()
 Destructor. More...
 
void clearData ()
 

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
 

Friends

class Impl
 

Detailed Description

Spinbox containing an integer value.

Constructor & Destructor Documentation

◆ SpinBox()

SpinBox::SpinBox ( QWidget *  parent = 0)

Constructor.

Parameters
parentparent widget

References Impl.

◆ ~SpinBox()

SpinBox::~SpinBox ( )
virtual

Destructor.

Member Function Documentation

◆ clearData()

void SpinBox::clearData ( )

References impl.

◆ keyPressEvent()

void SpinBox::keyPressEvent ( QKeyEvent *  event)
overrideprivate

Handles keybord events from the user.

Overloads the keyPressEvent handler from QDoubleSpinBox.

References impl.

◆ newValues()

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

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

References impl.

◆ on_editingFinished

void SpinBox::on_editingFinished ( )
privateslot

Called, when the input focus leaves the line edit.

Editing shall be canceled in this case.

References impl.

◆ on_textChanged

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

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

References impl.

◆ stepBy()

void SpinBox::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 is yellow), 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.

Friends And Related Function Documentation

◆ Impl

friend class Impl
friend

Member Data Documentation

◆ Impl

struct PD_PRIVATE Pd::SpinBox::Impl
private

Referenced by SpinBox().

◆ impl

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

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