raDIYo 0.4
SWAdjustableDigit Class Reference
Inheritance diagram for SWAdjustableDigit:
SWFlipDigit

Public Member Functions

 SWAdjustableDigit (QWidget *parent=nullptr)
 
- Public Member Functions inherited from SWFlipDigit
 SWFlipDigit (QWidget *parent=nullptr)
 
void setTransition (SWFlipMode tr)
 
SWFlipMode transition () const
 
void setRange (int from, int to)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void timerEvent (QTimerEvent *event) override
 
- Protected Member Functions inherited from SWFlipDigit
void drawFrame (QPainter *p, const QRect &rect)
 
QPixmap drawDigits (int n, const QRect &rect)
 
void preparePixmap ()
 
void resizeEvent (QResizeEvent *event) override
 
void paintEvent (QPaintEvent *event) override
 
void paintStatic ()
 
void paintSlide ()
 
void paintFlip ()
 
void paintRotate ()
 

Protected Attributes

bool _waiting = false
 
int _delta = 0
 
int _timerID = -1
 
int _posY = -1
 
- Protected Attributes inherited from SWFlipDigit
const double SWSCALEFACTOR = 2.7
 
const double SWFONTSCALE = 0.85
 
int _rangeFrom = 0
 
int _rangeTo = 99
 
int _number
 
SWFlipMode _transition
 
QPixmap _pixmap
 
QPixmap _lastPixmap
 
QTimeLine _animator
 

Additional Inherited Members

- Public Types inherited from SWFlipDigit
enum  SWFlipMode { Slide , Flip , Rotate }
 
- Public Slots inherited from SWFlipDigit
void setNumber (int n)
 
void flipTo (int n)
 

Detailed Description

Definition at line 21 of file swadjustabledigit.h.

Constructor & Destructor Documentation

◆ SWAdjustableDigit()

SWAdjustableDigit::SWAdjustableDigit ( QWidget *  parent = nullptr)
explicit

Definition at line 22 of file swadjustabledigit.cpp.

◆ ~SWAdjustableDigit()

SWAdjustableDigit::~SWAdjustableDigit ( )
virtual

Definition at line 28 of file swadjustabledigit.cpp.

Member Function Documentation

◆ mouseMoveEvent()

void SWAdjustableDigit::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 50 of file swadjustabledigit.cpp.

◆ mousePressEvent()

void SWAdjustableDigit::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 33 of file swadjustabledigit.cpp.

◆ mouseReleaseEvent()

void SWAdjustableDigit::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 65 of file swadjustabledigit.cpp.

◆ timerEvent()

void SWAdjustableDigit::timerEvent ( QTimerEvent *  event)
overrideprotected

Definition at line 79 of file swadjustabledigit.cpp.

Member Data Documentation

◆ _delta

int SWAdjustableDigit::_delta = 0
protected

Definition at line 46 of file swadjustabledigit.h.

◆ _posY

int SWAdjustableDigit::_posY = -1
protected

Definition at line 48 of file swadjustabledigit.h.

◆ _timerID

int SWAdjustableDigit::_timerID = -1
protected

Definition at line 47 of file swadjustabledigit.h.

◆ _waiting

bool SWAdjustableDigit::_waiting = false
protected

Definition at line 45 of file swadjustabledigit.h.


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