PdQmlWidgets  2.0.0
Public Types | Public Member Functions | Properties | List of all members
de::igh::pd::PdPushButton Class Reference

Push Button. More...

Inheritance diagram for de::igh::pd::PdPushButton:
Inheritance graph
[legend]
Collaboration diagram for de::igh::pd::PdPushButton:
Collaboration graph
[legend]

Public Types

enum  ButtonMode { ButtonMode::PressRelease, ButtonMode::Event }
 
enum  EventCondition { EventCondition::OnClicked, EventCondition::OnPressed, EventCondition::OnReleased }
 
enum  EventAction { EventAction::IncrementValue, EventAction::SetOnValue, EventAction::ToggleValue }
 

Public Member Functions

void triggerEvent ()
 

Properties

alias variable
 type:var connection to the process variable see PdCheckBox More...
 
alias connection
 
alias path
 type:var convinience connection to the process path see PdCheckBox More...
 
int buttonMode
 The button behaviour. More...
 
int eventCondition
 Event condition. More...
 
int eventAction
 Action on an event. More...
 
int onValue
 type:int The value to be written, when the button is pressed. More...
 
int offValue
 type:int The value to be written, when the button is released. More...
 

Detailed Description

Push Button.



Import Statement

import de.igh.pd
Version
2.0

Member Enumeration Documentation

◆ ButtonMode

Enumerator
PressRelease 

The onValue is written when the button is pressed down, the offValue is written when releasing it, respectively.

Event 

An event is generated, based on EventCondition and EventAction settings.

◆ EventAction

Enumerator
IncrementValue 

The value of the process variable is incremented.

SetOnValue 

The onValue is written to the process variable.

ToggleValue 

The offValue is written to the process if the last value was the onValue.

Otherwise the onValue is written to the process.

◆ EventCondition

Enumerator
OnClicked 

Event generated by QPushButton's clicked() signal (button is pressed and released, while the cursor is inside the button area.

OnPressed 

Event generated by QPushButton's pressed() signal (button just pressed down).

OnReleased 

Event generated by QPushButton's released() signal (button released, regardless of cursor being inside the button area).

Consider using #OnClicked.

Member Function Documentation

◆ triggerEvent()

void de::igh::pd::PdPushButton::triggerEvent ( )

Property Documentation

◆ buttonMode

int de::igh::pd::PdPushButton::buttonMode
read

The button behaviour.

◆ connection

alias de::igh::pd::PdPushButton::connection
read

◆ eventAction

int de::igh::pd::PdPushButton::eventAction
read

Action on an event.

◆ eventCondition

int de::igh::pd::PdPushButton::eventCondition
read

Event condition.

◆ offValue

int de::igh::pd::PdPushButton::offValue
read

type:int The value to be written, when the button is released.

◆ onValue

int de::igh::pd::PdPushButton::onValue
read

type:int The value to be written, when the button is pressed.

◆ path

alias de::igh::pd::PdPushButton::path
read

type:var convinience connection to the process path see PdCheckBox

◆ variable

alias de::igh::pd::PdPushButton::variable
read

type:var connection to the process variable see PdCheckBox


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