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 mobile songs manager widget. More...
#include <musicmobilesongsmanagerwidget.h>
Public Slots | |
void | selectedAllItems (bool checked) |
void | auditionButtonClick () |
void | itemCellClicked (int row, int column) |
void | itemDoubleClicked (int row, int column) |
void | searchFilePathChanged (const QStringList &path) |
void | searchResultChanged (int row, int column) |
![]() | |
void | backgroundChanged () |
void | show () |
Public Member Functions | |
MusicMobileSongsManagerWidget (QWidget *parent=nullptr) | |
~MusicMobileSongsManagerWidget () | |
void | findExtraDevicePath (const QString &dir) |
![]() | |
MusicAbstractMoveWidget (QWidget *parent=nullptr) | |
MusicAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
~MusicAbstractMoveWidget () | |
![]() | |
TTKAbstractMoveWidget (QWidget *parent=nullptr) | |
TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
void | drawWindowShadow (bool show) |
void | blockOption (bool block) |
Private Member Functions | |
void | clearItems () |
void | selectedItemsToPlaylist () |
![]() | |
MusicItemSearchInterface () | |
bool | hasSearchResult () const |
void | clearSearchResult () |
void | mappedSearchRow (int pos, int &row) const |
Private Attributes | |
Ui::MusicMobileSongsManagerWidget * | m_ui |
MusicSongsManagerThread * | m_thread |
![]() | |
QStringList | m_containerItems |
int | m_searchResultLevel |
TTKSearchItems | m_searchResultItems |
Additional Inherited Members | |
![]() | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
![]() | |
void | setBackgroundPixmap (const QSize &size) |
MusicWidgetRenderer () | |
void | setBackgroundLabel (QLabel *label) |
![]() | |
QPoint | m_mousePressedAt |
bool | m_blockOption |
bool | m_shadowOption |
bool | m_mouseLeftPressed |
![]() | |
using | TTKSearchItems = QMap< int, TTKIntList > |
using | MusicItemSearchInterfaceClass = MusicItemSearchInterface< QStringList > |
The class of the mobile songs manager widget.
Definition at line 74 of file musicmobilesongsmanagerwidget.h.
|
explicit |
Object constructor.
Definition at line 108 of file musicmobilesongsmanagerwidget.cpp.
References auditionButtonClick(), TTK::UI::BackgroundStyle03, TTK::UI::BackgroundStyle10, TTK::UI::CheckBoxStyle03, MusicGifLabelWidget::CicleBlue, itemCellClicked(), itemDoubleClicked(), m_thread, m_ui, searchFilePathChanged(), searchResultChanged(), selectedAllItems(), MusicWidgetRenderer::setBackgroundLabel(), TTK::UI::ToolButtonStyle01, TTK::UI::ToolButtonStyle02, and TTK::UI::ToolButtonStyle04.
MusicMobileSongsManagerWidget::~MusicMobileSongsManagerWidget | ( | ) |
Object destructor.
Definition at line 157 of file musicmobilesongsmanagerwidget.cpp.
References clearItems(), m_thread, m_ui, TTKAbstractThread::stop(), and TTKRemoveSingleWidget.
|
slot |
Music song audition play.
Definition at line 188 of file musicmobilesongsmanagerwidget.cpp.
References m_ui, MusicToastLabel::popup(), and selectedItemsToPlaylist().
Referenced by MusicMobileSongsManagerWidget().
|
private |
Clear All Items.
Definition at line 259 of file musicmobilesongsmanagerwidget.cpp.
References m_ui.
Referenced by searchFilePathChanged(), searchResultChanged(), and ~MusicMobileSongsManagerWidget().
void MusicMobileSongsManagerWidget::findExtraDevicePath | ( | const QString & | dir | ) |
Find extra device path.
Definition at line 166 of file musicmobilesongsmanagerwidget.cpp.
References m_thread, m_ui, MusicSongsManagerThread::setFindFilePath(), TTKAbstractThread::start(), TTKAbstractThread::stop(), and TTK_INFO_STREAM.
Referenced by MusicMobileDevicesWidget::showMobileManager().
Item cell on click by row and col.
Definition at line 205 of file musicmobilesongsmanagerwidget.cpp.
References itemDoubleClicked().
Referenced by MusicMobileSongsManagerWidget().
Item cell on double click by row and col.
Definition at line 215 of file musicmobilesongsmanagerwidget.cpp.
References MusicSongsContainerWidget::addSongToPlaylist(), MusicSongsContainerWidget::instance(), MusicItemSearchInterface< QStringList >::m_containerItems, m_ui, and MusicItemSearchInterface< QStringList >::mappedSearchRow().
Referenced by itemCellClicked(), and MusicMobileSongsManagerWidget().
|
slot |
Send the searched file or path.
Definition at line 222 of file musicmobilesongsmanagerwidget.cpp.
References clearItems(), MusicItemSearchInterface< QStringList >::clearSearchResult(), MusicItemSearchInterface< QStringList >::m_containerItems, m_ui, and TTK_INFO_STREAM.
Referenced by MusicMobileSongsManagerWidget().
Search result from list.
Definition at line 235 of file musicmobilesongsmanagerwidget.cpp.
References clearItems(), MusicItemSearchInterface< QStringList >::m_containerItems, MusicItemSearchInterface< QStringList >::m_searchResultItems, MusicItemSearchInterface< QStringList >::m_searchResultLevel, m_ui, and qAsConst.
Referenced by MusicMobileSongsManagerWidget().
|
slot |
Select all items.
Definition at line 175 of file musicmobilesongsmanagerwidget.cpp.
References m_ui.
Referenced by MusicMobileSongsManagerWidget().
|
private |
Set current item or items selected.
Definition at line 268 of file musicmobilesongsmanagerwidget.cpp.
References MusicSongsContainerWidget::addSongToPlaylist(), MusicSongsContainerWidget::instance(), MusicItemSearchInterface< QStringList >::m_containerItems, m_ui, MusicItemSearchInterface< QStringList >::mappedSearchRow(), and qAsConst.
Referenced by auditionButtonClick().
|
private |
Definition at line 131 of file musicmobilesongsmanagerwidget.h.
Referenced by findExtraDevicePath(), MusicMobileSongsManagerWidget(), and ~MusicMobileSongsManagerWidget().
|
private |
Definition at line 129 of file musicmobilesongsmanagerwidget.h.
Referenced by auditionButtonClick(), clearItems(), findExtraDevicePath(), itemDoubleClicked(), MusicMobileSongsManagerWidget(), searchFilePathChanged(), searchResultChanged(), selectedAllItems(), selectedItemsToPlaylist(), and ~MusicMobileSongsManagerWidget().