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 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) noexcept |
void | blockOption (bool block) noexcept |
Private Member Functions | |
void | clearItems () |
void | selectedItemsToPlaylist () |
![]() | |
MusicItemSearchInterface () noexcept | |
bool | hasSearchResult () const noexcept |
void | clearSearchResult () noexcept |
void | mappedSearchRow (int pos, int &row) const noexcept |
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) noexcept |
![]() | |
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 107 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 156 of file musicmobilesongsmanagerwidget.cpp.
References clearItems(), m_thread, m_ui, TTKAbstractThread::stop(), and TTKRemoveSingleWidget.
|
slot |
Music song audition play.
Definition at line 187 of file musicmobilesongsmanagerwidget.cpp.
References m_ui, MusicToastLabel::popup(), and selectedItemsToPlaylist().
Referenced by MusicMobileSongsManagerWidget().
|
private |
Clear All Items.
Definition at line 258 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 165 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 204 of file musicmobilesongsmanagerwidget.cpp.
References itemDoubleClicked().
Referenced by MusicMobileSongsManagerWidget().
Item cell on double click by row and col.
Definition at line 214 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 221 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 234 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 174 of file musicmobilesongsmanagerwidget.cpp.
References m_ui.
Referenced by MusicMobileSongsManagerWidget().
|
private |
Set current item or items selected.
Definition at line 267 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().