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 | Static Public 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)
 
void stackedSongListWidgetChanged ()
 
void stackedLocalWidgetChanged ()
 
void stackedCloudWidgetChanged ()
 
void stackedRadioWidgetChanged ()
 
void stackedMyDownWidgetChanged ()
 

Signals

void currentLoveStateChanged ()
 
void currentDownloadStateChanged ()
 

Public Member Functions

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

Static Public Member Functions

static MusicLeftAreaWidgetinstance ()
 

Private Attributes

Ui::MusicApplication * m_ui
 
int m_currentIndex
 
QWidget * m_stackedWidget
 
MusicConnectLocalWidgetm_localSharedSongWidget
 
MusicCloudSharedSongWidgetm_cloudSharedSongWidget
 

Static Private Attributes

static MusicLeftAreaWidgetm_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 16 of file musicleftareawidget.cpp.

References m_instance.

MusicLeftAreaWidget::~MusicLeftAreaWidget ( )

Object destructor.

Definition at line 26 of file musicleftareawidget.cpp.

References m_cloudSharedSongWidget, m_localSharedSongWidget, and m_stackedWidget.

Member Function Documentation

void MusicLeftAreaWidget::currentDownloadStateChanged ( )
signal

Current music download icon state changed.

Referenced by downloadSongFinished().

void MusicLeftAreaWidget::currentLoveStateChanged ( )
signal

Current music love icon state changed.

Referenced by setLoveState().

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

To download music data from net to load.

Definition at line 91 of file musicleftareawidget.cpp.

References MusicDownloadMgmtWidget::initialize(), m_ui, and MusicAbstractQueryRequest::Music.

Referenced by setupUi().

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

Reset current music love icon state.

Definition at line 85 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 ( )
slot
void MusicLeftAreaWidget::stackedLocalWidgetChanged ( )
slot

Change to shared local widget.

Definition at line 120 of file musicleftareawidget.cpp.

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

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::stackedMyDownWidgetChanged ( )
slot

Change to my download widget.

Definition at line 193 of file musicleftareawidget.cpp.

References m_currentIndex, m_stackedWidget, and m_ui.

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::stackedRadioWidgetChanged ( )
slot

Change to radio widget.

Definition at line 177 of file musicleftareawidget.cpp.

References m_currentIndex, m_stackedWidget, and m_ui.

Referenced by switchToSelectedItemStyle().

void MusicLeftAreaWidget::stackedSongListWidgetChanged ( )
slot

Change to song list widget.

Definition at line 105 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 115 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: