TTKMusicPlayer
3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the app left area widget. More...
#include <musicleftareawidget.h>
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 MusicLeftAreaWidget * | instance () |
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 |
The class of the app left area widget.
Definition at line 35 of file musicleftareawidget.h.
|
explicit |
MusicLeftAreaWidget::~MusicLeftAreaWidget | ( | ) |
Object destructor.
Definition at line 26 of file musicleftareawidget.cpp.
References m_cloudSharedSongWidget, m_localSharedSongWidget, and m_stackedWidget.
|
signal |
Current music download icon state changed.
Referenced by downloadSongFinished().
|
signal |
Current music love icon state changed.
Referenced by setLoveState().
|
slot |
To download music data from net finished.
Definition at line 97 of file musicleftareawidget.cpp.
References TTK::UI::BtnDownload, TTK::UI::BtnUnDownload, MusicApplication::containsDownloadItem(), currentDownloadStateChanged(), MusicApplication::instance(), and m_ui.
|
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().
|
static |
Get class object instance.
Definition at line 33 of file musicleftareawidget.cpp.
References m_instance.
Referenced by MusicDownloadResetWidget::MusicDownloadResetWidget(), MusicSongsListPlayedWidget::MusicSongsListPlayedWidget(), and MusicSongsListPlayWidget::MusicSongsListPlayWidget().
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 | ) |
Set up app ui.
Definition at line 38 of file musicleftareawidget.cpp.
References TTK::UI::BtnDKLrc, TTK::UI::BtnMore, TTK::UI::BtnNext, TTK::UI::BtnPlay, TTK::UI::BtnPrevious, TTK::UI::BtnUnDownload, TTK::UI::BtnUnLove, downloadSongToLocal(), MusicApplication::instance(), LEFT_SIDE_WIDTH_MIN, MusicAnimationStackedWidget::LeftToRight, m_ui, and switchToSelectedItemStyle().
Referenced by MusicApplication::MusicApplication().
|
slot |
Change to shared cloud widget.
Definition at line 148 of file musicleftareawidget.cpp.
References MusicCloudSharedSongWidget::initialize(), m_cloudSharedSongWidget, m_currentIndex, m_localSharedSongWidget, m_stackedWidget, and m_ui.
Referenced by switchToSelectedItemStyle().
|
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().
|
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().
|
slot |
Change to radio widget.
Definition at line 177 of file musicleftareawidget.cpp.
References m_currentIndex, m_stackedWidget, and m_ui.
Referenced by switchToSelectedItemStyle().
|
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().
|
slot |
Switch to selected item style.
Definition at line 209 of file musicleftareawidget.cpp.
References MusicRightAreaWidget::instance(), MusicRightAreaWidget::lrcDisplayAllClicked(), m_ui, stackedCloudWidgetChanged(), stackedLocalWidgetChanged(), stackedMyDownWidgetChanged(), stackedRadioWidgetChanged(), and stackedSongListWidgetChanged().
Referenced by setupUi().
|
private |
Definition at line 113 of file musicleftareawidget.h.
Referenced by stackedCloudWidgetChanged(), stackedLocalWidgetChanged(), and ~MusicLeftAreaWidget().
|
private |
Definition at line 110 of file musicleftareawidget.h.
Referenced by stackedCloudWidgetChanged(), stackedLocalWidgetChanged(), stackedMyDownWidgetChanged(), stackedRadioWidgetChanged(), and stackedSongListWidgetChanged().
|
staticprivate |
Definition at line 115 of file musicleftareawidget.h.
Referenced by instance(), and MusicLeftAreaWidget().
|
private |
Definition at line 112 of file musicleftareawidget.h.
Referenced by stackedCloudWidgetChanged(), stackedLocalWidgetChanged(), and ~MusicLeftAreaWidget().
|
private |
Definition at line 111 of file musicleftareawidget.h.
Referenced by stackedCloudWidgetChanged(), stackedLocalWidgetChanged(), stackedMyDownWidgetChanged(), stackedRadioWidgetChanged(), stackedSongListWidgetChanged(), and ~MusicLeftAreaWidget().
|
private |
Definition at line 109 of file musicleftareawidget.h.
Referenced by downloadSongFinished(), downloadSongToLocal(), setLoveState(), setupUi(), stackedCloudWidgetChanged(), stackedLocalWidgetChanged(), stackedMyDownWidgetChanged(), stackedRadioWidgetChanged(), stackedSongListWidgetChanged(), and switchToSelectedItemStyle().