raDIYo 0.4
SWAbstractControl Class Reference
Inheritance diagram for SWAbstractControl:
SWAlarmControl SWBlueToothControl SWClockControl SWListControl SWPlayerControl SWSetupControl SWUSBControl SWSenderControl SWSongsControl

Public Slots

virtual bool acceptDial ()
 
virtual void onDialClicked ()
 Wird aufgerufen, wenn das (externe) Dial geklickt wurde. More...
 
virtual void onDialValueChanged (int value)
 Wird aufgerufen, wenn das (externe) Dial gedreht wurde. More...
 

Public Member Functions

 SWAbstractControl (SWRaDIYoMainWidget *parent)
 
virtual void fadeIn ()
 
virtual void fadeOut ()
 

Protected Attributes

bool _acceptDial = true
 
SWRaDIYoMainWidget_controller = nullptr
 
int _value = -1
 
QGraphicsOpacityEffect * _effect = nullptr
 
QPropertyAnimation * _animFadeIn = nullptr
 
QPropertyAnimation * _animFadeOut = nullptr
 

Static Protected Attributes

static const int SWFADINGDURATION = 650
 

Detailed Description

Definition at line 25 of file swabstractcontrol.h.

Constructor & Destructor Documentation

◆ SWAbstractControl()

SWAbstractControl::SWAbstractControl ( SWRaDIYoMainWidget parent)
explicit

Definition at line 23 of file swabstractcontrol.cpp.

◆ ~SWAbstractControl()

SWAbstractControl::~SWAbstractControl ( )
virtual

Definition at line 51 of file swabstractcontrol.cpp.

Member Function Documentation

◆ acceptDial

bool SWAbstractControl::acceptDial ( )
virtualslot

Definition at line 60 of file swabstractcontrol.cpp.

◆ fadeIn()

void SWAbstractControl::fadeIn ( )
virtual

Definition at line 88 of file swabstractcontrol.cpp.

◆ fadeOut()

void SWAbstractControl::fadeOut ( )
virtual

Definition at line 96 of file swabstractcontrol.cpp.

◆ onDialClicked

void SWAbstractControl::onDialClicked ( )
virtualslot

Wird aufgerufen, wenn das (externe) Dial geklickt wurde.

Definition at line 70 of file swabstractcontrol.cpp.

◆ onDialValueChanged

void SWAbstractControl::onDialValueChanged ( int  value)
virtualslot

Wird aufgerufen, wenn das (externe) Dial gedreht wurde.

Definition at line 80 of file swabstractcontrol.cpp.

Member Data Documentation

◆ _acceptDial

bool SWAbstractControl::_acceptDial = true
protected

Definition at line 50 of file swabstractcontrol.h.

◆ _animFadeIn

QPropertyAnimation* SWAbstractControl::_animFadeIn = nullptr
protected

Definition at line 54 of file swabstractcontrol.h.

◆ _animFadeOut

QPropertyAnimation* SWAbstractControl::_animFadeOut = nullptr
protected

Definition at line 55 of file swabstractcontrol.h.

◆ _controller

SWRaDIYoMainWidget* SWAbstractControl::_controller = nullptr
protected

Definition at line 51 of file swabstractcontrol.h.

◆ _effect

QGraphicsOpacityEffect* SWAbstractControl::_effect = nullptr
protected

Definition at line 53 of file swabstractcontrol.h.

◆ _value

int SWAbstractControl::_value = -1
protected

Definition at line 52 of file swabstractcontrol.h.

◆ SWFADINGDURATION

const int SWAbstractControl::SWFADINGDURATION = 650
staticprotected

Definition at line 47 of file swabstractcontrol.h.


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