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 Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
MusicLrcContainerForWallpaper Class Reference

The class of the wall paper lrc container. More...

#include <musiclrccontainerforwallpaper.h>

+ Inheritance diagram for MusicLrcContainerForWallpaper:

Public Slots

void changeCurrentLrcColor ()
 
void updateBackground (const QPixmap &pix)
 
- Public Slots inherited from MusicLrcContainer
void currentLrcCustom ()
 
void changeCurrentLrcColor (QAction *action)
 
void changeCurrentLrcColor (int index)
 
void searchMusicLrcs ()
 
void showLrcMakedWidget ()
 
void linkLrcStateChanged ()
 

Public Member Functions

 MusicLrcContainerForWallpaper (QWidget *parent=nullptr)
 
 ~MusicLrcContainerForWallpaper ()
 
virtual void startDrawLrc () overridefinal
 
virtual void stopDrawLrc () overridefinal
 
virtual void applyParameter () overridefinal
 
void setLrcAnalysisModel (MusicLrcAnalysis *analysis)
 
void updateCurrentLrc (qint64 time)
 
void updateCurrentLrc (const QString &text)
 
void start (bool immediate)
 
- Public Member Functions inherited from MusicLrcContainer
 MusicLrcContainer (QWidget *parent=nullptr)
 
 ~MusicLrcContainer ()
 
void setLinearGradientColor (MusicLrcColor::Color color)
 
void setLinearGradientColor (const MusicLrcColor &color)
 
void setCurrentSongName (const QString &name)
 
void setCurrentTime (qint64 time, qint64 total)
 
qint64 totalTime () const
 
void setLrcAnalysisModel (MusicLrcAnalysis *analysis)
 
MusicLrcAnalysislrcAnalysisModel () const
 

Private Slots

void updateAnimationLrc ()
 

Private Member Functions

void initCurrentLrc (const QString &str)
 
void setItemStyleSheet (int index, int size, int transparent)
 

Private Attributes

int m_animationFreshTime
 
MusicVLayoutAnimationWidgetm_layoutWidget
 
MusicDesktopWallpaperThreadm_wallThread
 
MusicTransitionAnimationLabelm_background
 

Additional Inherited Members

- Signals inherited from MusicLrcContainer
void currentLrcUpdated ()
 
void showCurrentLrcSetting ()
 
void showCurrentLrcColorSetting ()
 
void maskLinearGradientColorChanged ()
 
void linearGradientColorChanged ()
 
- Protected Member Functions inherited from MusicLrcContainer
void clearAllMusicLRCManager ()
 
- Protected Attributes inherited from MusicLrcContainer
bool m_linkLocalLrc
 
qint64 m_currentTime
 
qint64 m_totalTime
 
QString m_currentSongName
 
QString m_containerType
 
MusicLrcAnalysism_lrcAnalysis
 
QList< MusicLrcManager * > m_lrcManagers
 
MusicLrcSearchWidgetm_lrcSearchWidget
 

Detailed Description

The class of the wall paper lrc container.

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

Definition at line 31 of file musiclrccontainerforwallpaper.h.

Constructor & Destructor Documentation

MusicLrcContainerForWallpaper::MusicLrcContainerForWallpaper ( QWidget *  parent = nullptr)
explicit
MusicLrcContainerForWallpaper::~MusicLrcContainerForWallpaper ( )

Object destructor.

Definition at line 40 of file musiclrccontainerforwallpaper.cpp.

References MusicLrcContainer::clearAllMusicLRCManager(), and m_wallThread.

Member Function Documentation

void MusicLrcContainerForWallpaper::applyParameter ( )
finaloverridevirtual
void MusicLrcContainerForWallpaper::changeCurrentLrcColor ( )
slot

Change current lrc linear color.

Definition at line 153 of file musiclrccontainerforwallpaper.cpp.

References applyParameter().

void MusicLrcContainerForWallpaper::initCurrentLrc ( const QString &  str)
private
void MusicLrcContainerForWallpaper::setItemStyleSheet ( int  index,
int  size,
int  transparent 
)
private
void MusicLrcContainerForWallpaper::setLrcAnalysisModel ( MusicLrcAnalysis analysis)
void MusicLrcContainerForWallpaper::start ( bool  immediate)
void MusicLrcContainerForWallpaper::startDrawLrc ( )
finaloverridevirtual

Start timer clock to draw lrc.

Implements MusicLrcContainer.

Definition at line 46 of file musiclrccontainerforwallpaper.cpp.

References MusicLrcContainer::m_lrcManagers, and MUSIC_LRC_INTERIOR_MAX_LINE.

Referenced by MusicRightAreaWidget::startDrawLrc().

void MusicLrcContainerForWallpaper::stopDrawLrc ( )
finaloverridevirtual
void MusicLrcContainerForWallpaper::updateAnimationLrc ( )
privateslot
void MusicLrcContainerForWallpaper::updateBackground ( const QPixmap &  pix)
slot
void MusicLrcContainerForWallpaper::updateCurrentLrc ( qint64  time)
void MusicLrcContainerForWallpaper::updateCurrentLrc ( const QString &  text)

Update current lrc by given text.

Definition at line 126 of file musiclrccontainerforwallpaper.cpp.

References MusicLrcContainer::m_lrcManagers, and MUSIC_LRC_INTERIOR_MAX_LINE.

Member Data Documentation

int MusicLrcContainerForWallpaper::m_animationFreshTime
private

Definition at line 101 of file musiclrccontainerforwallpaper.h.

Referenced by updateAnimationLrc(), and updateCurrentLrc().

MusicTransitionAnimationLabel* MusicLrcContainerForWallpaper::m_background
private
MusicVLayoutAnimationWidget* MusicLrcContainerForWallpaper::m_layoutWidget
private
MusicDesktopWallpaperThread* MusicLrcContainerForWallpaper::m_wallThread
private

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