TTKMusicPlayer
3.7.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) |
Public Slots inherited from MusicAbstractMoveWidget | |
void | backgroundChanged () |
void | show () |
Signals | |
void | addSongToPlaylist (const QStringList &items) |
Public Member Functions | |
MusicMobileSongsManagerWidget (QWidget *parent=nullptr) | |
~MusicMobileSongsManagerWidget () | |
void | findExtraDevicePath (const QString &dir) |
Public Member Functions inherited from MusicAbstractMoveWidget | |
MusicAbstractMoveWidget (QWidget *parent=nullptr) | |
MusicAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
~MusicAbstractMoveWidget () | |
Public Member Functions inherited from TTKAbstractMoveWidget | |
TTKAbstractMoveWidget (QWidget *parent=nullptr) | |
TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
void | drawWindowShadow (bool show) |
void | blockMoveOption (bool block) |
Private Member Functions | |
void | clearItems () |
void | selectedItemsToPlaylist () |
Private Member Functions inherited from MusicItemSearchInterface< QStringList > | |
MusicItemSearchInterface () | |
bool | hasSearchResult () const |
void | clearSearchResult () |
void | mappedSearchRow (int pos, int &row) const |
Private Attributes | |
Ui::MusicMobileSongsManagerWidget * | m_ui |
MusicSongsManagerThread * | m_thread |
Private Attributes inherited from MusicItemSearchInterface< QStringList > | |
QStringList | m_containerItems |
int | m_searchResultLevel |
TTKSearchItems | m_searchResultItems |
Additional Inherited Members | |
Protected Member Functions inherited from TTKAbstractMoveWidget | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
Protected Member Functions inherited from MusicWidgetRenderer | |
void | setBackgroundPixmap (const QSize &size) |
MusicWidgetRenderer () | |
void | setBackgroundLabel (QLabel *label) |
Protected Attributes inherited from TTKAbstractMoveWidget | |
QPoint | m_pressAt |
bool | m_moveOption |
bool | m_showShadow |
bool | m_leftButtonPress |
Private Types inherited from MusicItemSearchInterface< QStringList > | |
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 109 of file musicmobilesongsmanagerwidget.cpp.
References auditionButtonClick(), TTK::UI::BackgroundStyle03, TTK::UI::BackgroundStyle10, TTK::UI::CheckBoxStyle03, MusicGifLabelWidget::CicleBlue, G_CONNECTION_PTR, 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 161 of file musicmobilesongsmanagerwidget.cpp.
References clearItems(), G_CONNECTION_PTR, m_thread, m_ui, TTKAbstractThread::stop(), and TTKRemoveSingleWidget.
|
signal |
Add current selected song to playlist.
Referenced by itemDoubleClicked(), and selectedItemsToPlaylist().
|
slot |
Music song audition play.
Definition at line 193 of file musicmobilesongsmanagerwidget.cpp.
References m_ui, MusicToastLabel::popup(), and selectedItemsToPlaylist().
Referenced by MusicMobileSongsManagerWidget().
|
private |
Clear All Items.
Definition at line 264 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 171 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 210 of file musicmobilesongsmanagerwidget.cpp.
References itemDoubleClicked().
Referenced by MusicMobileSongsManagerWidget().
Item cell on double click by row and col.
Definition at line 220 of file musicmobilesongsmanagerwidget.cpp.
References addSongToPlaylist(), 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 227 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 240 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 180 of file musicmobilesongsmanagerwidget.cpp.
References m_ui.
Referenced by MusicMobileSongsManagerWidget().
|
private |
Set current item or items selected.
Definition at line 273 of file musicmobilesongsmanagerwidget.cpp.
References addSongToPlaylist(), MusicItemSearchInterface< QStringList >::m_containerItems, m_ui, MusicItemSearchInterface< QStringList >::mappedSearchRow(), and qAsConst.
Referenced by auditionButtonClick().
|
private |
Definition at line 137 of file musicmobilesongsmanagerwidget.h.
Referenced by findExtraDevicePath(), MusicMobileSongsManagerWidget(), and ~MusicMobileSongsManagerWidget().
|
private |
Definition at line 135 of file musicmobilesongsmanagerwidget.h.
Referenced by auditionButtonClick(), clearItems(), findExtraDevicePath(), itemDoubleClicked(), MusicMobileSongsManagerWidget(), searchFilePathChanged(), searchResultChanged(), selectedAllItems(), selectedItemsToPlaylist(), and ~MusicMobileSongsManagerWidget().