TTKMusicPlayer  4.3.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 | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
MusicLeftAreaWidget Class Reference

The class of the app left area widget. More...

#include <musicleftareawidget.h>

+ Inheritance diagram for MusicLeftAreaWidget:

Public Slots

void downloadSongToLocal ()
 
void downloadSongFinished ()
 
void switchToSelectedItemStyle (int index)
 

Signals

void currentLoveStateChanged ()
 
void currentDownloadStateChanged ()
 

Public Member Functions

 MusicLeftAreaWidget (QWidget *parent=nullptr)
 
 ~MusicLeftAreaWidget ()
 
void setupUi (Ui::MusicApplication *ui)
 
void setSongLoveState (bool state)
 

Static Public Member Functions

static MusicLeftAreaWidget * instance ()
 

Private Member Functions

void stackedSongListWidgetChanged ()
 
void stackedLocalWidgetChanged ()
 
void stackedCloudWidgetChanged ()
 
void stackedRadioWidgetChanged ()
 
void stackedMyDownWidgetChanged ()
 

Private Attributes

Ui::MusicApplication * m_ui
 
int m_currentIndex
 
QWidget * m_stackedWidget
 
MusicConnectLocalWidget * m_localSharedSongWidget
 
MusicCloudSharedSongWidget * m_cloudSharedSongWidget
 

Static Private Attributes

static MusicLeftAreaWidget * m_instance = nullptr
 

Detailed Description

The class of the app left area widget.

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

Definition at line 35 of file musicleftareawidget.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 15 of file musicleftareawidget.cpp.

References m_instance.

MusicLeftAreaWidget::~MusicLeftAreaWidget ( )

Object destructor.

Definition at line 25 of file musicleftareawidget.cpp.

References m_cloudSharedSongWidget, m_localSharedSongWidget, and m_stackedWidget.

Member Function Documentation

void MusicLeftAreaWidget::currentDownloadStateChanged ( )
signal

Current song download icon state changed.

Referenced by downloadSongFinished().

void MusicLeftAreaWidget::currentLoveStateChanged ( )
signal

Current song love icon state changed.

Referenced by setSongLoveState().

void MusicLeftAreaWidget::downloadSongFinished ( )
slot
void MusicLeftAreaWidget::downloadSongToLocal ( )
slot

To download song data from net to load.

Definition at line 90 of file musicleftareawidget.cpp.

References MusicDownloadMgmtWidget::initialize(), and m_ui.

Referenced by setupUi().

MusicLeftAreaWidget * MusicLeftAreaWidget::instance ( )
static
void MusicLeftAreaWidget::setSongLoveState ( bool  state)

Reset current song love state.

Definition at line 84 of file musicleftareawidget.cpp.

References TTK::UI::BtnLove, TTK::UI::BtnUnLove, currentLoveStateChanged(), and m_ui.

Referenced by MusicApplication::addSongToLovestList().

void MusicLeftAreaWidget::setupUi ( Ui::MusicApplication *  ui)
void MusicLeftAreaWidget::stackedCloudWidgetChanged ( )
private
void MusicLeftAreaWidget::stackedLocalWidgetChanged ( )
private

Change to shared local widget.

Definition at line 118 of file musicleftareawidget.cpp.

References m_cloudSharedSongWidget, m_currentIndex, m_localSharedSongWidget, m_stackedWidget, and m_ui.

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::stackedMyDownWidgetChanged ( )
private

Change to my download widget.

Definition at line 188 of file musicleftareawidget.cpp.

References m_currentIndex, m_stackedWidget, and m_ui.

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::stackedRadioWidgetChanged ( )
private

Change to radio widget.

Definition at line 173 of file musicleftareawidget.cpp.

References m_currentIndex, m_stackedWidget, and m_ui.

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::stackedSongListWidgetChanged ( )
private

Change to song list widget.

Definition at line 104 of file musicleftareawidget.cpp.

References m_currentIndex, m_stackedWidget, and m_ui.

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::switchToSelectedItemStyle ( int  index)
slot

Member Data Documentation

MusicCloudSharedSongWidget* MusicLeftAreaWidget::m_cloudSharedSongWidget
private
int MusicLeftAreaWidget::m_currentIndex
private
MusicLeftAreaWidget * MusicLeftAreaWidget::m_instance = nullptr
staticprivate

Definition at line 116 of file musicleftareawidget.h.

Referenced by instance(), and MusicLeftAreaWidget().

MusicConnectLocalWidget* MusicLeftAreaWidget::m_localSharedSongWidget
private
QWidget* MusicLeftAreaWidget::m_stackedWidget
private
Ui::MusicApplication* MusicLeftAreaWidget::m_ui
private

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