QtPdWidgets  2.3.2
Public Member Functions | Protected Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Pd::CheckBox Class Reference

CheckBox. More...

#include <CheckBox.h>

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

Public Member Functions

 CheckBox (QWidget *parent=0)
 Constructor. More...
 
virtual ~CheckBox ()
 Destructor. More...
 
void clearData ()
 
int getOnValue () const
 
void setOnValue (int)
 Sets the onValue. More...
 
void resetOnValue ()
 Resets the onValue. More...
 
int getOffValue () const
 
void setOffValue (int)
 Sets the offValue. More...
 
void resetOffValue ()
 Resets the offValue. More...
 

Protected Member Functions

void checkStateSet ()
 From QAbstractButton. More...
 
void nextCheckState ()
 Sets the next check state. More...
 

Properties

int onValue
 
int offValue
 

Private Member Functions

 Q_DECLARE_PRIVATE (CheckBox)
 
PD_PRIVATE void newValues (std::chrono::nanoseconds) override
 This virtual method is called by the ProcessVariable, if its value changes. More...
 

Private Attributes

QScopedPointer< CheckBoxPrivate > const d_ptr
 

Detailed Description

CheckBox.

Constructor & Destructor Documentation

◆ CheckBox()

CheckBox::CheckBox ( QWidget *  parent = 0)

Constructor.

Parameters
parentparent widget

◆ ~CheckBox()

CheckBox::~CheckBox ( )
virtual

Destructor.

Member Function Documentation

◆ checkStateSet()

void CheckBox::checkStateSet ( )
protected

From QAbstractButton.

Todo:
Check, if this has to be implemented.

◆ clearData()

void CheckBox::clearData ( )

◆ getOffValue()

int CheckBox::getOffValue ( ) const
Returns
The offValue.

◆ getOnValue()

int CheckBox::getOnValue ( ) const
Returns
The onValue.

◆ newValues()

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

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

◆ nextCheckState()

void CheckBox::nextCheckState ( )
protected

Sets the next check state.

This virtual method originating from QAbstractButton is called, when the user requests a new check state (by clicking on the check box, or by hitting the acceleration key, etc.). It is designed to let subclasses implement intermediate check states.

Here it is used to write the new state to the process first and to delay the setting of the new check state until the process variable was written.

◆ Q_DECLARE_PRIVATE()

Pd::CheckBox::Q_DECLARE_PRIVATE ( CheckBox  )
private

◆ resetOffValue()

void CheckBox::resetOffValue ( )

Resets the offValue.

References DEFAULT_OFFVALUE, and setOffValue().

◆ resetOnValue()

void CheckBox::resetOnValue ( )

Resets the onValue.

References DEFAULT_ONVALUE, and setOnValue().

◆ setOffValue()

void CheckBox::setOffValue ( int  v)

Sets the offValue.

Referenced by resetOffValue().

◆ setOnValue()

void CheckBox::setOnValue ( int  v)

Sets the onValue.

Referenced by resetOnValue().

Member Data Documentation

◆ d_ptr

QScopedPointer<CheckBoxPrivate> const Pd::CheckBox::d_ptr
private

Property Documentation

◆ offValue

int Pd::CheckBox::offValue
readwrite

◆ onValue

int Pd::CheckBox::onValue
readwrite

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