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 | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MusicLrcContainer Class Referenceabstract

The class of the lrc container base. More...

#include <musiclrccontainer.h>

+ Inheritance diagram for MusicLrcContainer:

Public Slots

void currentLrcCustom ()
 
void changeCurrentLrcColor (QAction *action)
 
void changeCurrentLrcColor (int index)
 
void searchMusicLrcs ()
 
void showLrcMakedWidget ()
 
void linkLrcStateChanged ()
 

Signals

void currentLrcUpdated ()
 
void showCurrentLrcSetting ()
 
void showCurrentLrcColorSetting ()
 
void maskLinearGradientColorChanged ()
 
void linearGradientColorChanged ()
 

Public Member Functions

 MusicLrcContainer (QWidget *parent=nullptr)
 
 ~MusicLrcContainer ()
 
virtual void startDrawLrc ()=0
 
virtual void stopDrawLrc ()=0
 
virtual void applyParameter ()
 
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
 

Protected Member Functions

void clearAllMusicLRCManager ()
 

Protected Attributes

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 lrc container base.

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

Definition at line 36 of file musiclrccontainer.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 7 of file musiclrccontainer.cpp.

MusicLrcContainer::~MusicLrcContainer ( )

Object destructor.

Definition at line 18 of file musiclrccontainer.cpp.

References m_lrcSearchWidget.

Member Function Documentation

void MusicLrcContainer::applyParameter ( )
virtual
void MusicLrcContainer::changeCurrentLrcColor ( QAction *  action)
slot
void MusicLrcContainer::changeCurrentLrcColor ( int  index)
slot

Change current lrc linear color by index.

Definition at line 105 of file musiclrccontainer.cpp.

References setLinearGradientColor(), and TTKStaticCast.

void MusicLrcContainer::clearAllMusicLRCManager ( )
protected
void MusicLrcContainer::currentLrcCustom ( )
slot
void MusicLrcContainer::currentLrcUpdated ( )
signal
void MusicLrcContainer::linearGradientColorChanged ( )
signal

Linear gradient color changed.

Referenced by setLinearGradientColor().

void MusicLrcContainer::linkLrcStateChanged ( )
slot

Link current lrc state changed.

Definition at line 125 of file musiclrccontainer.cpp.

References m_linkLocalLrc, m_lrcManagers, and qAsConst.

Referenced by MusicLrcContainerForDesktop::contextMenuEvent(), and MusicLrcContainerForInterior::contextMenuEvent().

MusicLrcAnalysis* MusicLrcContainer::lrcAnalysisModel ( ) const
inline

Get lrc analysis model.

Definition at line 93 of file musiclrccontainer.h.

void MusicLrcContainer::maskLinearGradientColorChanged ( )
signal

Mask linear gradient color changed.

void MusicLrcContainer::searchMusicLrcs ( )
slot
void MusicLrcContainer::setCurrentSongName ( const QString &  name)
inline

Set current song name.

Definition at line 76 of file musiclrccontainer.h.

References name.

Referenced by MusicRightAreaWidget::loadCurrentSongLrc().

void MusicLrcContainer::setCurrentTime ( qint64  time,
qint64  total 
)

Set current play total time.

Definition at line 64 of file musiclrccontainer.cpp.

References m_currentTime, and m_totalTime.

Referenced by MusicRightAreaWidget::updateCurrentLrc().

void MusicLrcContainer::setLinearGradientColor ( MusicLrcColor::Color  color)
void MusicLrcContainer::setLinearGradientColor ( const MusicLrcColor color)
void MusicLrcContainer::setLrcAnalysisModel ( MusicLrcAnalysis analysis)
inline
void MusicLrcContainer::showCurrentLrcColorSetting ( )
signal

Show current setting widget to color setting widget.

Referenced by currentLrcCustom().

void MusicLrcContainer::showCurrentLrcSetting ( )
signal

Show current setting widget to setting widget.

Referenced by currentLrcCustom().

void MusicLrcContainer::showLrcMakedWidget ( )
slot
virtual void MusicLrcContainer::startDrawLrc ( )
pure virtual

Start timer clock to draw lrc. Subclass should implement this function.

Implemented in MusicLrcContainerForDesktop, MusicLrcContainerForInterior, and MusicLrcContainerForWallpaper.

virtual void MusicLrcContainer::stopDrawLrc ( )
pure virtual

Stop timer clock to draw lrc. Subclass should implement this function.

Implemented in MusicLrcContainerForDesktop, MusicLrcContainerForInterior, and MusicLrcContainerForWallpaper.

qint64 MusicLrcContainer::totalTime ( ) const

Get current play total time.

Definition at line 70 of file musiclrccontainer.cpp.

References m_totalTime.

Member Data Documentation

QString MusicLrcContainer::m_containerType
protected
QString MusicLrcContainer::m_currentSongName
protected
qint64 MusicLrcContainer::m_currentTime
protected
bool MusicLrcContainer::m_linkLocalLrc
protected
MusicLrcAnalysis* MusicLrcContainer::m_lrcAnalysis
protected
QList<MusicLrcManager*> MusicLrcContainer::m_lrcManagers
protected

Definition at line 153 of file musiclrccontainer.h.

Referenced by MusicLrcContainerForWallpaper::applyParameter(), MusicLrcContainerForDesktop::applyParameter(), applyParameter(), clearAllMusicLRCManager(), MusicLrcContainerForDesktop::initCurrentLrc(), MusicLrcContainerForWallpaper::initCurrentLrc(), MusicLrcContainerHorizontalDesktop::initCurrentLrc(), MusicLrcContainerVerticalDesktop::initCurrentLrc(), MusicLrcContainerForInterior::initCurrentLrc(), linkLrcStateChanged(), MusicLrcContainerForInterior::mouseMoveEvent(), MusicLrcContainerForInterior::MusicLrcContainerForInterior(), MusicLrcContainerHorizontalDesktop::MusicLrcContainerHorizontalDesktop(), MusicLrcContainerVerticalDesktop::MusicLrcContainerVerticalDesktop(), MusicLrcContainerForDesktop::resizeLrcSizeArea(), MusicLrcContainerHorizontalDesktop::resizeLrcSizeArea(), MusicLrcContainerVerticalDesktop::resizeLrcSizeArea(), MusicLrcContainerForInterior::resizeWidth(), MusicLrcContainerForWallpaper::setItemStyleSheet(), MusicLrcContainerForInterior::setItemStyleSheet(), setLinearGradientColor(), MusicLrcContainerForWallpaper::setLrcAnalysisModel(), MusicLrcContainerForInterior::setLrcSize(), MusicLrcContainerForInterior::setLrcSizeProperty(), MusicLrcContainerForDesktop::setSelfPosition(), MusicLrcContainerForDesktop::setSingleLineTypeChanged(), MusicLrcContainerHorizontalDesktop::setSingleLineTypeChanged(), MusicLrcContainerVerticalDesktop::setSingleLineTypeChanged(), MusicLrcContainerForWallpaper::startDrawLrc(), MusicLrcContainerForInterior::startDrawLrc(), MusicLrcContainerForDesktop::startDrawLrc(), MusicLrcContainerForWallpaper::stopDrawLrc(), MusicLrcContainerForInterior::stopDrawLrc(), MusicLrcContainerForDesktop::stopDrawLrc(), MusicLrcContainerForInterior::text(), MusicLrcContainerForWallpaper::updateAnimationLrc(), MusicLrcContainerForInterior::updateAnimationLrc(), MusicLrcContainerForInterior::updateCurrentLrc(), MusicLrcContainerForWallpaper::updateCurrentLrc(), and MusicLrcContainerForDesktop::updateCurrentLrc().

MusicLrcSearchWidget* MusicLrcContainer::m_lrcSearchWidget
protected

Definition at line 154 of file musiclrccontainer.h.

Referenced by searchMusicLrcs(), and ~MusicLrcContainer().

qint64 MusicLrcContainer::m_totalTime
protected

Definition at line 150 of file musiclrccontainer.h.

Referenced by setCurrentTime(), showLrcMakedWidget(), and totalTime().


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