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 download abstract table widget. More...
#include <musicabstractdownloadtablewidget.h>
Public Slots | |
virtual void | removeItemAt () overridefinal |
void | itemDoubleClicked (int row, int column) |
void | downloadProgressChanged (float percent, const QString &total, qint64 time) |
void | createDownloadItem (const QString &name, qint64 time) |
![]() | |
virtual void | removeItemAt () |
void | playClicked () |
void | clearItems () |
void | openFileDir () |
void | showFileInformation () |
void | showMovieQueryWidget () |
void | showAlbumQueryWidget () |
void | showSimilarQueryWidget () |
void | showSongSharedWidget () |
void | showDownloadWidget () |
void | showPlayedMovieQueryWidget () |
void | showPlayedSimilarQueryWidget () |
void | showPlayedSongSharedWidget () |
![]() | |
void | timeToAnimation () |
void | valueChanged (int value) |
![]() | |
virtual void | itemCellEntered (int row, int column) |
virtual void | itemCellClicked (int row, int column) |
virtual void | removeItems () |
Signals | |
void | updateItemTitle (int index) |
![]() | |
void | isCurrentPlaylistRow (bool &state) |
Protected Member Functions | |
virtual void | contextMenuEvent (QContextMenuEvent *event) override |
virtual void | addCellItem (int index, const MusicSong &record)=0 |
![]() | |
void | createMoreMenu (QMenu *menu) |
QString | currentSongPath () const |
QString | songPath (int index) const |
QString | currentSongName () const |
QString | songName (int index) const |
![]() | |
virtual void | wheelEvent (QWheelEvent *event) override |
![]() | |
virtual void | leaveEvent (QEvent *event) override |
void | setRowColor (int row, const QColor &color) const |
bool | isValid () const |
Protected Attributes | |
TTK::Record | m_type |
TTKProgressBarItemDelegate * | m_progressBarDelegate |
![]() | |
int | m_playlistRow |
int | m_playRowIndex |
MusicSongList * | m_songs |
![]() | |
bool | m_initialized |
int | m_previousValue |
int | m_deltaValue |
QScrollBar * | m_scrollBar |
QTimer * | m_animationTimer |
QPropertyAnimation * | m_slowAnimation |
![]() | |
int | m_previousColorRow |
int | m_previousClickRow |
QColor | m_backgroundColor |
The class of the download abstract table widget.
Definition at line 30 of file musicabstractdownloadtablewidget.h.
|
explicit |
Object constructor.
Definition at line 6 of file musicabstractdownloadtablewidget.cpp.
References itemDoubleClicked(), m_progressBarDelegate, TTK::UI::ProgressBar01, and TTKAbstractItemDelegate::setStyleSheet().
MusicAbstractDownloadTableWidget::~MusicAbstractDownloadTableWidget | ( | ) |
Object destructor.
Definition at line 15 of file musicabstractdownloadtablewidget.cpp.
References TTKAbstractXml::load(), m_progressBarDelegate, MusicAbstractSongsListTableWidget::m_songs, m_type, TTKAbstractTableWidget::removeItems(), TTK::toString(), and MusicDownloadRecordConfigManager::writeBuffer().
|
protectedpure virtual |
Create cell item by input record. Subclass should implement this function.
Implemented in MusicCloudUploadTableWidget, MusicCloudDownloadTableWidget, and MusicDownloadRecordTableWidget.
Referenced by createDownloadItem(), and updateSongsList().
|
overrideprotectedvirtual |
Override the widget event.
Reimplemented in MusicCloudUploadTableWidget.
Definition at line 122 of file musicabstractdownloadtablewidget.cpp.
References MusicAbstractSongsListTableWidget::clearItems(), MusicAbstractSongsListTableWidget::createMoreMenu(), MusicAbstractSongsListTableWidget::currentSongPath(), TTK::String::isNetworkUrl(), MusicAbstractSongsListTableWidget::m_songs, TTK::UI::MenuStyle02, MusicAbstractSongsListTableWidget::openFileDir(), MusicAbstractSongsListTableWidget::playClicked(), removeItemAt(), MusicAbstractSongsListTableWidget::showAlbumQueryWidget(), MusicAbstractSongsListTableWidget::showDownloadWidget(), and MusicAbstractSongsListTableWidget::showFileInformation().
|
slot |
Create download item from download name and total time.
Definition at line 106 of file musicabstractdownloadtablewidget.cpp.
References addCellItem(), MusicAbstractSongsListTableWidget::m_playlistRow, MusicAbstractSongsListTableWidget::m_songs, MusicSong::setAddTimeStr(), MusicSong::setName(), MusicSong::setPath(), MusicSong::setSizeStr(), and updateItemTitle().
|
slot |
Update download percent total time and current time progress.
Definition at line 90 of file musicabstractdownloadtablewidget.cpp.
References TTK_PROGRESS_ROLE, and TTK_TIME_ROLE.
Table widget item cell double clicked.
Definition at line 76 of file musicabstractdownloadtablewidget.cpp.
References MusicSongsContainerWidget::addSongToPlaylist(), MusicSongsContainerWidget::instance(), TTKAbstractTableWidget::isValid(), and MusicAbstractSongsListTableWidget::m_songs.
Referenced by MusicAbstractDownloadTableWidget().
|
finaloverridevirtualslot |
Remove item from list at current row.
Definition at line 50 of file musicabstractdownloadtablewidget.cpp.
References MusicAbstractMoveDialog::exec(), MusicAbstractSongsListTableWidget::m_playlistRow, MusicAbstractSongsListTableWidget::m_songs, TTKAbstractTableWidget::selectedIndexList(), MusicMessageBox::setText(), MusicAbstractSongsListTableWidget::totalHeight(), and updateItemTitle().
Referenced by contextMenuEvent(), and MusicCloudUploadTableWidget::contextMenuEvent().
|
signal |
Update item title.
Referenced by createDownloadItem(), and removeItemAt().
|
finaloverridevirtual |
Update songs files in table.
Reimplemented from MusicAbstractSongsListTableWidget.
Definition at line 29 of file musicabstractdownloadtablewidget.cpp.
References addCellItem(), MusicSong::addTimeStr(), TTKAbstractXml::fromFile(), G_DOWNLOAD_MANAGER_PTR, MusicAbstractSongsListTableWidget::m_songs, m_type, MusicDownloadRecordConfigManager::readBuffer(), and TTK::toString().
|
protected |
Definition at line 85 of file musicabstractdownloadtablewidget.h.
Referenced by MusicAbstractDownloadTableWidget(), MusicDownloadRecordTableWidget::MusicDownloadRecordTableWidget(), and ~MusicAbstractDownloadTableWidget().
|
protected |
Definition at line 84 of file musicabstractdownloadtablewidget.h.
Referenced by MusicCloudUploadTableWidget::MusicCloudUploadTableWidget(), MusicDownloadRecordTableWidget::MusicDownloadRecordTableWidget(), updateSongsList(), and ~MusicAbstractDownloadTableWidget().