TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Types | Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
MusicTransitionAnimationLabel Class Reference

The class of the label transition animation. More...

#include <musictransitionanimationlabel.h>

+ Inheritance diagram for MusicTransitionAnimationLabel:

Public Types

enum  Module {
  Module::FadeEffect, Module::BlindsEffect, Module::CubeEffect, Module::WaterEffect,
  Module::LeftToRightEffect, Module::TopToBottomEffect
}
 

Public Slots

void setPixmap (const QPixmap &pix)
 

Public Member Functions

 MusicTransitionAnimationLabel (QWidget *parent=nullptr)
 
 ~MusicTransitionAnimationLabel ()
 
void setAnimation (bool on)
 
bool noAnimation () const
 
const QPixmap & rendererPixmap () const
 
void stop ()
 

Private Slots

void valueChanged (const QVariant &value)
 
void animationFinished ()
 

Private Member Functions

virtual void paintEvent (QPaintEvent *event) overridefinal
 

Private Attributes

Module m_type
 
bool m_isAnimating
 
int m_currentValue
 
bool m_noAnimationSet
 
QPixmap m_rendererPixmap
 
QPixmap m_currentPixmap
 
QPixmap m_previousPixmap
 
QPropertyAnimation * m_animation
 
QAlgorithm::SharpeImagem_cubeWave
 
QAlgorithm::SharpeImagem_waterWave
 

Detailed Description

The class of the label transition animation.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 34 of file musictransitionanimationlabel.h.

Member Enumeration Documentation

Enumerator
FadeEffect 
BlindsEffect 
CubeEffect 
WaterEffect 
LeftToRightEffect 
TopToBottomEffect 

Definition at line 39 of file musictransitionanimationlabel.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 9 of file musictransitionanimationlabel.cpp.

References animationFinished(), TTK::initRandom(), m_animation, and valueChanged().

MusicTransitionAnimationLabel::~MusicTransitionAnimationLabel ( )

Object destructor.

Definition at line 30 of file musictransitionanimationlabel.cpp.

References m_animation.

Member Function Documentation

void MusicTransitionAnimationLabel::animationFinished ( )
privateslot

Animation finished.

Definition at line 121 of file musictransitionanimationlabel.cpp.

References m_currentPixmap, m_currentValue, m_isAnimating, and m_rendererPixmap.

Referenced by MusicTransitionAnimationLabel(), and stop().

bool MusicTransitionAnimationLabel::noAnimation ( ) const
inline

Get no animation state.

Definition at line 65 of file musictransitionanimationlabel.h.

void MusicTransitionAnimationLabel::paintEvent ( QPaintEvent *  event)
finaloverrideprivatevirtual
const QPixmap & MusicTransitionAnimationLabel::rendererPixmap ( ) const

Get renderer pixmap image.

Definition at line 35 of file musictransitionanimationlabel.cpp.

References m_rendererPixmap.

void MusicTransitionAnimationLabel::setAnimation ( bool  on)
inline

Set no animation to start.

Definition at line 61 of file musictransitionanimationlabel.h.

void MusicTransitionAnimationLabel::setPixmap ( const QPixmap &  pix)
slot
void MusicTransitionAnimationLabel::stop ( )

Stop renderer pixmap animation.

Definition at line 40 of file musictransitionanimationlabel.cpp.

References animationFinished(), and m_animation.

Referenced by setPixmap().

void MusicTransitionAnimationLabel::valueChanged ( const QVariant &  value)
privateslot

Animation value changed.

Definition at line 115 of file musictransitionanimationlabel.cpp.

References m_currentValue.

Referenced by MusicTransitionAnimationLabel().

Member Data Documentation

QPropertyAnimation* MusicTransitionAnimationLabel::m_animation
private
QAlgorithm::SharpeImage* MusicTransitionAnimationLabel::m_cubeWave
private

Definition at line 107 of file musictransitionanimationlabel.h.

Referenced by paintEvent(), and setPixmap().

QPixmap MusicTransitionAnimationLabel::m_currentPixmap
private

Definition at line 104 of file musictransitionanimationlabel.h.

Referenced by animationFinished(), paintEvent(), and setPixmap().

int MusicTransitionAnimationLabel::m_currentValue
private

Definition at line 101 of file musictransitionanimationlabel.h.

Referenced by animationFinished(), paintEvent(), and valueChanged().

bool MusicTransitionAnimationLabel::m_isAnimating
private

Definition at line 100 of file musictransitionanimationlabel.h.

Referenced by animationFinished(), paintEvent(), and setPixmap().

bool MusicTransitionAnimationLabel::m_noAnimationSet
private

Definition at line 102 of file musictransitionanimationlabel.h.

Referenced by setPixmap().

QPixmap MusicTransitionAnimationLabel::m_previousPixmap
private

Definition at line 104 of file musictransitionanimationlabel.h.

Referenced by paintEvent(), and setPixmap().

QPixmap MusicTransitionAnimationLabel::m_rendererPixmap
private
Module MusicTransitionAnimationLabel::m_type
private

Definition at line 99 of file musictransitionanimationlabel.h.

Referenced by paintEvent(), and setPixmap().

QAlgorithm::SharpeImage* MusicTransitionAnimationLabel::m_waterWave
private

Definition at line 108 of file musictransitionanimationlabel.h.

Referenced by paintEvent(), and setPixmap().


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