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

RadioButton. More...

#include <RadioButton.h>

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

Classes

struct  Impl
 

Public Member Functions

 RadioButton (QWidget *parent=0)
 Constructor. More...
 
virtual ~RadioButton ()
 Destructor. More...
 
void clearData ()
 
int getCheckValue () const
 
void setCheckValue (int)
 Sets the checkValue. More...
 
void resetCheckValue ()
 Resets the checkValue. More...
 

Protected Member Functions

void nextCheckState ()
 Sets the next check state. More...
 

Properties

int checkValue
 

Private Member Functions

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

RadioButton.

Constructor & Destructor Documentation

◆ RadioButton()

RadioButton::RadioButton ( QWidget *  parent = 0)

Constructor.

Parameters
parentparent widget

References Impl.

◆ ~RadioButton()

RadioButton::~RadioButton ( )
virtual

Destructor.

Member Function Documentation

◆ clearData()

void RadioButton::clearData ( )

References impl.

◆ getCheckValue()

int RadioButton::getCheckValue ( ) const
Returns
The checkValue.

References impl.

◆ newValues()

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

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

References impl.

◆ nextCheckState()

void RadioButton::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 button, 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.

References impl.

◆ resetCheckValue()

void RadioButton::resetCheckValue ( )

Resets the checkValue.

References DEFAULT_CHECKVALUE, and setCheckValue().

◆ setCheckValue()

void RadioButton::setCheckValue ( int  v)

Sets the checkValue.

References impl.

Referenced by resetCheckValue().

Member Data Documentation

◆ Impl

Referenced by RadioButton().

◆ impl

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

Property Documentation

◆ checkValue

int Pd::RadioButton::checkValue
readwrite

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