TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the playlist music query widget. More...
#include <musicplaylistquerywidget.h>
Public Slots | |
void | createPlaylistItem (const MusicResultDataItem &item) |
void | currentPlaylistClicked (const MusicResultDataItem &item) |
void | backToPlaylistMenu () |
void | categoryChanged (const MusicResultsCategoryItem &category) |
void | buttonClicked (int index) |
![]() | |
void | downLoadFinished (const QByteArray &bytes) |
void | playAllButtonClicked () |
void | shareButtonClicked () |
void | playButtonClicked () |
void | downloadButtonClicked () |
void | addButtonClicked () |
Public Member Functions | |
MusicPlaylistQueryWidget (QWidget *parent=nullptr) | |
~MusicPlaylistQueryWidget () | |
void | setCurrentCategory (const MusicResultsCategoryItem &category) |
virtual void | setCurrentValue (const QString &value) overridefinal |
virtual void | setCurrentID (const QString &id) overridefinal |
virtual void | resizeWidget () overridefinal |
![]() | |
MusicAbstractItemQueryWidget (QWidget *parent=nullptr) | |
~MusicAbstractItemQueryWidget () | |
![]() | |
virtual | ~TTKAbstractResizeInterface ()=default |
Private Attributes | |
bool | m_initialized |
bool | m_categoryChanged |
QGridLayout * | m_gridLayout |
MusicPageQueryWidget * | m_pageQueryWidget |
MusicPlaylistQueryInfoWidget * | m_infoWidget |
MusicPlaylistFoundCategoryPopWidget * | m_categoryButton |
Additional Inherited Members | |
![]() | |
virtual void | mousePressEvent (QMouseEvent *event) overridefinal |
virtual void | mouseMoveEvent (QMouseEvent *event) overridefinal |
virtual void | mouseReleaseEvent (QMouseEvent *event) overridefinal |
void | initFirstWidget () |
void | initSecondWidget () |
void | setSongCountText () |
![]() | |
QString | m_value |
QWidget * | m_mainWindow |
QPushButton * | m_songButton |
QLabel * | m_iconLabel |
QLabel * | m_statusLabel |
QLabel * | m_infoLabel |
QStackedWidget * | m_container |
MusicResultDataItem | m_currentPlaylistItem |
MusicItemQueryTableWidget * | m_queryTableWidget |
MusicAbstractQueryRequest * | m_networkRequest |
MusicSongSharingWidget::Module | m_shareType |
QList< TTKResizeWidget > | m_resizeWidgets |
The class of the playlist music query widget.
Definition at line 84 of file musicplaylistquerywidget.h.
|
explicit |
Object constructor.
Definition at line 121 of file musicplaylistquerywidget.cpp.
References createPlaylistItem(), G_DOWNLOAD_QUERY_PTR, MusicAbstractItemQueryWidget::m_container, MusicAbstractItemQueryWidget::m_mainWindow, and MusicAbstractItemQueryWidget::m_networkRequest.
MusicPlaylistQueryWidget::~MusicPlaylistQueryWidget | ( | ) |
Object destructor.
Definition at line 139 of file musicplaylistquerywidget.cpp.
References m_categoryButton, m_gridLayout, m_infoWidget, and m_pageQueryWidget.
|
slot |
Set current index to playlist menu page.
Definition at line 279 of file musicplaylistquerywidget.cpp.
References MusicAbstractItemQueryWidget::m_container.
|
slot |
Page widget button has changed.
Definition at line 304 of file musicplaylistquerywidget.cpp.
References MusicPageQueryWidget::currentIndex(), m_gridLayout, MusicAbstractItemQueryWidget::m_networkRequest, m_pageQueryWidget, MusicAbstractItemQueryWidget::m_resizeWidgets, MusicPageQueryWidget::page(), MusicPageQueryRequest::pageTotalSize(), and MusicPageQueryRequest::startToPage().
Referenced by createPlaylistItem().
|
slot |
Current category changed.
Definition at line 284 of file musicplaylistquerywidget.cpp.
References MusicPlaylistFoundCategoryPopWidget::closeMenu(), m_categoryButton, m_categoryChanged, m_gridLayout, MusicResultsCategoryItem::m_key, MusicAbstractItemQueryWidget::m_networkRequest, MusicAbstractItemQueryWidget::m_resizeWidgets, MusicResultsCategoryItem::m_value, MusicAbstractItemQueryWidget::m_value, and MusicAbstractQueryRequest::startToSearchByID().
|
slot |
Query all quality musics is finished.
Definition at line 190 of file musicplaylistquerywidget.cpp.
References buttonClicked(), TTK::UI::ColorStyle07, TTK::UI::ColorStyle12, MusicPageQueryWidget::createPageWidget(), currentPlaylistClicked(), TTK::Widget::generateVScrollAreaStyle(), LINE_SPACING_SIZE, m_categoryButton, m_categoryChanged, MusicAbstractItemQueryWidget::m_container, m_gridLayout, m_initialized, MusicAbstractItemQueryWidget::m_mainWindow, MusicAbstractItemQueryWidget::m_networkRequest, m_pageQueryWidget, MusicAbstractItemQueryWidget::m_resizeWidgets, MusicAbstractItemQueryWidget::m_statusLabel, MusicPageQueryRequest::pageTotalSize(), qAsConst, QUERY_WIDGET_WIDTH, MusicAbstractQueryRequest::queryServer(), MusicPageQueryWidget::reset(), MusicPlaylistFoundCategoryPopWidget::setCategory(), MusicPlaylistQueryItemWidget::setResultDataItem(), and TTKObjectCast.
Referenced by MusicPlaylistQueryWidget().
|
slot |
Current play list clicked.
Definition at line 261 of file musicplaylistquerywidget.cpp.
References G_DOWNLOAD_QUERY_PTR, MusicAbstractItemQueryWidget::m_container, m_infoWidget, MusicPlaylistQueryInfoWidget::setQueryInput(), MusicPlaylistQueryInfoWidget::setResultDataItem(), MusicQueryPlaylistRequest::startToQueryInfo(), and TTKObjectCast.
Referenced by createPlaylistItem(), and setCurrentID().
|
finaloverridevirtual |
Resize widget bound by resize called.
Implements TTKAbstractResizeInterface.
Definition at line 168 of file musicplaylistquerywidget.cpp.
References LINE_SPACING_SIZE, m_gridLayout, m_infoWidget, MusicAbstractItemQueryWidget::m_resizeWidgets, qAsConst, QUERY_WIDGET_WIDTH, and MusicPlaylistQueryInfoWidget::resizeWidget().
void MusicPlaylistQueryWidget::setCurrentCategory | ( | const MusicResultsCategoryItem & | category | ) |
Set current category to search founds.
Definition at line 147 of file musicplaylistquerywidget.cpp.
References MusicResultsCategoryItem::m_key, MusicAbstractItemQueryWidget::m_networkRequest, MusicResultsCategoryItem::m_value, MusicAbstractItemQueryWidget::setCurrentValue(), and MusicAbstractQueryRequest::startToSearchByID().
Referenced by MusicRightAreaWidget::showPlaylistCategoryFound().
|
finaloverridevirtual |
Set current id to search founds.
Reimplemented from MusicAbstractItemQueryWidget.
Definition at line 159 of file musicplaylistquerywidget.cpp.
References currentPlaylistClicked(), MusicResultDataItem::m_id, and setCurrentValue().
Referenced by MusicRightAreaWidget::showPlaylistFound().
|
finaloverridevirtual |
Set current value to search founds.
Reimplemented from MusicAbstractItemQueryWidget.
Definition at line 153 of file musicplaylistquerywidget.cpp.
References MusicAbstractItemQueryWidget::m_networkRequest, MusicAbstractItemQueryWidget::setCurrentValue(), and MusicAbstractQueryRequest::startToSearchByID().
Referenced by MusicRightAreaWidget::functionClicked(), and setCurrentID().
|
private |
Definition at line 143 of file musicplaylistquerywidget.h.
Referenced by categoryChanged(), createPlaylistItem(), and ~MusicPlaylistQueryWidget().
|
private |
Definition at line 139 of file musicplaylistquerywidget.h.
Referenced by categoryChanged(), and createPlaylistItem().
|
private |
Definition at line 140 of file musicplaylistquerywidget.h.
Referenced by buttonClicked(), categoryChanged(), createPlaylistItem(), resizeWidget(), and ~MusicPlaylistQueryWidget().
|
private |
Definition at line 142 of file musicplaylistquerywidget.h.
Referenced by currentPlaylistClicked(), resizeWidget(), and ~MusicPlaylistQueryWidget().
|
private |
Definition at line 139 of file musicplaylistquerywidget.h.
Referenced by createPlaylistItem().
|
private |
Definition at line 141 of file musicplaylistquerywidget.h.
Referenced by buttonClicked(), createPlaylistItem(), and ~MusicPlaylistQueryWidget().