|
TTKMusicPlayer
4.2.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 download abstract table widget. More...
#include <musicabstractdownloadtablewidget.h>
Inheritance diagram for MusicAbstractDownloadTableWidget: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) |
Public Slots inherited from MusicAbstractSongsListTableWidget | |
| 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 () |
Public Slots inherited from TTKAbstractTableWidget | |
| virtual void | itemCellEntered (int row, int column) |
| virtual void | itemCellClicked (int row, int column) |
| virtual void | removeItems () |
Signals | |
| void | updateItemTitle (int index) |
Signals inherited from MusicAbstractSongsListTableWidget | |
| void | isCurrentPlaylistRow (bool &state) |
Public Member Functions | |
| MusicAbstractDownloadTableWidget (QWidget *parent=nullptr) | |
| ~MusicAbstractDownloadTableWidget () | |
| virtual void | updateSongsList (const MusicSongList &songs) overridefinal |
Public Member Functions inherited from MusicAbstractSongsListTableWidget | |
| MusicAbstractSongsListTableWidget (QWidget *parent=nullptr) | |
| ~MusicAbstractSongsListTableWidget () | |
| virtual void | setSongsList (MusicSongList *songs) |
| virtual void | selectRow (int index) |
| void | setPlaylistRow (int index) noexcept |
| void | setPlayRowIndex (int index) noexcept |
| int | playRowIndex () const noexcept |
Public Member Functions inherited from MusicSmoothMovingTableWidget | |
| MusicSmoothMovingTableWidget (QWidget *parent=nullptr) | |
| void | setMovedScrollBar (QScrollBar *bar=nullptr) |
Public Member Functions inherited from MusicAbstractTableWidget | |
| MusicAbstractTableWidget (QWidget *parent=nullptr) | |
Public Member Functions inherited from TTKAbstractTableWidget | |
| TTKAbstractTableWidget (QWidget *parent=nullptr) | |
| ~TTKAbstractTableWidget () | |
| TTKIntList | selectedIndexList () const |
Protected Member Functions | |
| virtual void | contextMenuEvent (QContextMenuEvent *event) override |
| virtual void | addCellItem (int index, const MusicSong &record)=0 |
Protected Member Functions inherited from MusicAbstractSongsListTableWidget | |
| int | totalRowHeight () const |
| void | createMoreMenu (QMenu *menu) |
| QString | currentSongPath () const |
| QString | songPath (int index) const |
| QString | currentSongName () const |
| QString | songName (int index) const |
Protected Member Functions inherited from MusicSmoothMovingTableWidget | |
| virtual void | wheelEvent (QWheelEvent *event) override |
| QScrollBar * | scrollBar () const noexcept |
Protected Member Functions inherited from TTKAbstractTableWidget | |
| virtual void | leaveEvent (QEvent *event) override |
| void | setRowColor (int row, const QColor &color) const |
| bool | isValid () const noexcept |
Protected Attributes | |
| TTK::Record | m_type |
| TTKProgressBarItemDelegate * | m_progressBarDelegate |
Protected Attributes inherited from MusicAbstractSongsListTableWidget | |
| int | m_playlistRow |
| int | m_playRowIndex |
| MusicSongList * | m_songs |
Protected Attributes inherited from TTKAbstractTableWidget | |
| 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(), MusicAbstractSongsListTableWidget::currentSongPath(), MusicSongsContainerWidget::instance(), and TTKAbstractTableWidget::isValid().
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::totalRowHeight(), 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().
1.8.8