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 web music radio widget. More...
#include <musicwebfmradioplaywidget.h>
Public Slots | |
void | show () |
void | radioPlay () |
void | radioPrevious () |
void | radioNext () |
void | radioVolume (int num) |
void | radioResourceDownload () |
void | querySongInfoFinished () |
void | lrcDownloadStateChanged () |
void | picDownloadStateChanged () |
void | positionChanged (qint64 position) |
void | durationChanged (qint64 duration) |
![]() | |
void | backgroundChanged () |
void | show () |
Public Member Functions | |
MusicWebFMRadioPlayWidget (QWidget *parent=nullptr) | |
~MusicWebFMRadioPlayWidget () | |
![]() | |
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 | |
virtual void | closeEvent (QCloseEvent *event) overridefinal |
void | initialize () |
Private Attributes | |
Ui::MusicWebFMRadioPlayWidget * | m_ui |
bool | m_isPlaying |
QString | m_currentIndex |
MusicLrcAnalysis * | m_analysis |
MusicCoreMPlayer * | m_player |
MusicFMRadioSongRequest * | m_networkRequest |
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 |
The class of the web music radio widget.
Definition at line 35 of file musicwebfmradioplaywidget.h.
|
explicit |
Object constructor.
Definition at line 12 of file musicwebfmradioplaywidget.cpp.
References TTK::Widget::adjustWidgetPosition(), TTK::UI::BackgroundStyle01, TTK::UI::BtnUnDownload, initialize(), m_analysis, m_ui, radioNext(), radioPlay(), radioPrevious(), radioResourceDownload(), radioVolume(), MusicWidgetRenderer::setBackgroundLabel(), MusicLrcAnalysis::setLineMax(), TTK::UI::SliderStyle10, and TTK::UI::ToolButtonStyle04.
MusicWebFMRadioPlayWidget::~MusicWebFMRadioPlayWidget | ( | ) |
Object destructor.
Definition at line 69 of file musicwebfmradioplaywidget.cpp.
References m_analysis, m_networkRequest, m_player, and m_ui.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 176 of file musicwebfmradioplaywidget.cpp.
References m_isPlaying, m_player, and MusicCoreMPlayer::stop().
|
slot |
Current duration changed.
Definition at line 261 of file musicwebfmradioplaywidget.cpp.
References TTKTime::formatDuration(), m_ui, and TTK_DN_S2MS.
Referenced by initialize().
|
private |
Init parameters.
Definition at line 183 of file musicwebfmradioplaywidget.cpp.
References durationChanged(), m_networkRequest, m_player, positionChanged(), and querySongInfoFinished().
Referenced by MusicWebFMRadioPlayWidget().
|
slot |
Lrc download state changed.
Definition at line 193 of file musicwebfmradioplaywidget.cpp.
References TTK::generateSongName(), MusicFMRadioSongRequest::item(), MusicLrcAnalysis::loadFromLrcFile(), LRC_FILE, TTK::String::lrcDirPrefix(), m_analysis, TTK::MusicSongInformation::m_artistName, m_networkRequest, TTK::MusicSongInformation::m_songName, m_ui, and name.
Referenced by querySongInfoFinished().
|
slot |
Small pic download state changed.
Definition at line 206 of file musicwebfmradioplaywidget.cpp.
References ART_DIR_FULL, MusicFMRadioSongRequest::item(), TTK::MusicSongInformation::m_artistName, m_networkRequest, m_ui, TTK::Image::roundedPixmap(), and SKN_FILE.
Referenced by querySongInfoFinished().
|
slot |
Current position changed.
Definition at line 225 of file musicwebfmradioplaywidget.cpp.
References MusicLrcAnalysis::currentIndex(), MusicLrcAnalysis::findTime(), TTKTime::formatDuration(), MusicLrcAnalysis::isEmpty(), MusicLrcAnalysis::lineMax(), MusicLrcAnalysis::lineMiddle(), m_analysis, m_ui, MusicLrcAnalysis::setCurrentIndex(), MusicLrcAnalysis::text(), and TTK_DN_S2MS.
Referenced by initialize().
|
slot |
Query song information finished.
fix current play volume temporary
Definition at line 128 of file musicwebfmradioplaywidget.cpp.
References ART_DIR_FULL, TTK::Cover, TTK::generateSongName(), MusicFMRadioSongRequest::item(), LRC_FILE, TTK::String::lrcDirPrefix(), lrcDownloadStateChanged(), TTK::MusicSongInformation::m_artistName, TTK::MusicSongInformation::m_coverUrl, m_isPlaying, TTK::MusicSongInformation::m_lrcUrl, m_networkRequest, m_player, TTK::MusicSongInformation::m_songName, TTK::MusicSongInformation::m_songProps, m_ui, MusicCoreMPlayer::Music, name, picDownloadStateChanged(), MusicCoreMPlayer::play(), MusicCoreMPlayer::setMedia(), SKN_FILE, MusicWYDownLoadTextRequest::startToRequest(), and MusicDownloadDataRequest::startToRequest().
Referenced by initialize().
|
slot |
Set radio to next.
Definition at line 100 of file musicwebfmradioplaywidget.cpp.
References m_isPlaying, m_networkRequest, m_ui, and MusicFMRadioSongRequest::startToRequest().
Referenced by MusicWebFMRadioPlayWidget().
|
slot |
Set radio to play.
Definition at line 83 of file musicwebfmradioplaywidget.cpp.
References m_isPlaying, m_player, m_ui, and MusicCoreMPlayer::play().
Referenced by MusicWebFMRadioPlayWidget().
|
slot |
Set radio to previous.
Definition at line 90 of file musicwebfmradioplaywidget.cpp.
References m_isPlaying, m_networkRequest, m_ui, and MusicFMRadioSongRequest::startToRequest().
Referenced by MusicWebFMRadioPlayWidget().
|
slot |
Radio resource download.
Definition at line 115 of file musicwebfmradioplaywidget.cpp.
References MusicDownloadWidget::initialize(), MusicFMRadioSongRequest::item(), m_networkRequest, and MusicAbstractMoveWidget::show().
Referenced by MusicWebFMRadioPlayWidget().
|
slot |
Set radio volume.
Definition at line 110 of file musicwebfmradioplaywidget.cpp.
References m_player, and MusicCoreMPlayer::setVolume().
Referenced by MusicWebFMRadioPlayWidget().
|
slot |
Override show function.
Definition at line 77 of file musicwebfmradioplaywidget.cpp.
References m_networkRequest, MusicAbstractMoveWidget::show(), and MusicFMRadioSongRequest::startToRequest().
Referenced by MusicWebFMRadioWidget::itemDoubleClicked().
|
private |
Definition at line 108 of file musicwebfmradioplaywidget.h.
Referenced by lrcDownloadStateChanged(), MusicWebFMRadioPlayWidget(), positionChanged(), and ~MusicWebFMRadioPlayWidget().
|
private |
Definition at line 107 of file musicwebfmradioplaywidget.h.
|
private |
Definition at line 106 of file musicwebfmradioplaywidget.h.
Referenced by closeEvent(), querySongInfoFinished(), radioNext(), radioPlay(), and radioPrevious().
|
private |
Definition at line 110 of file musicwebfmradioplaywidget.h.
Referenced by initialize(), lrcDownloadStateChanged(), picDownloadStateChanged(), querySongInfoFinished(), radioNext(), radioPrevious(), radioResourceDownload(), show(), and ~MusicWebFMRadioPlayWidget().
|
private |
Definition at line 109 of file musicwebfmradioplaywidget.h.
Referenced by closeEvent(), initialize(), querySongInfoFinished(), radioPlay(), radioVolume(), and ~MusicWebFMRadioPlayWidget().
|
private |
Definition at line 105 of file musicwebfmradioplaywidget.h.
Referenced by durationChanged(), lrcDownloadStateChanged(), MusicWebFMRadioPlayWidget(), picDownloadStateChanged(), positionChanged(), querySongInfoFinished(), radioNext(), radioPlay(), radioPrevious(), and ~MusicWebFMRadioPlayWidget().