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 lrc photo float widget. More...
#include <musiclrcfloatphotowidget.h>
Public Slots | |
void | show () |
void | close () |
void | parentClose () |
void | manageButtonClicked () |
void | confirmButtonClicked () |
void | photoPrevious () |
void | photoNext () |
void | artistNameChanged () |
void | sendUserSelectArtBackground (int index) |
void | userSelectCheckBoxChecked (int index) |
void | selectAllStateChanged (bool state) |
Public Member Functions | |
MusicLrcFloatPhotoWidget (QWidget *parent=nullptr) | |
~MusicLrcFloatPhotoWidget () | |
void | resizeGeometry (int width, int height) |
Public Member Functions inherited from MusicAbstractFloatWidget | |
MusicAbstractFloatWidget (QWidget *parent=nullptr) | |
~MusicAbstractFloatWidget () | |
void | setBlockAnimation (bool b) |
Private Member Functions | |
virtual void | enterEvent (QtEnterEvent *) overridefinal |
virtual void | leaveEvent (QEvent *) overridefinal |
void | showArtistPhoto () const |
Private Attributes | |
int | m_currentIndex |
TTKIntSet | m_selectNum |
QStringList | m_photos |
QLabel * | m_artistLabel |
QCheckBox * | m_checkBox |
QPushButton * | m_previous |
QPushButton * | m_next |
QList< MusicLrcFloatPhotoItem * > | m_planes |
Additional Inherited Members | |
Protected Member Functions inherited from MusicAbstractFloatWidget | |
virtual void | contextMenuEvent (QContextMenuEvent *) overridefinal |
virtual void | mousePressEvent (QMouseEvent *) overridefinal |
virtual void | mouseMoveEvent (QMouseEvent *) overridefinal |
virtual void | mouseReleaseEvent (QMouseEvent *) overridefinal |
void | animationEnter () |
void | animationLeave () |
Protected Attributes inherited from MusicAbstractFloatWidget | |
QPropertyAnimation * | m_animation |
QRect | m_rectEnter |
QRect | m_rectLeave |
bool | m_blockAnimation |
The class of the lrc photo float widget.
Definition at line 98 of file musiclrcfloatphotowidget.h.
|
explicit |
Object constructor.
Definition at line 90 of file musiclrcfloatphotowidget.cpp.
References artistNameChanged(), TTK::UI::BackgroundStyle06, TTK::UI::BackgroundStyle07, TTK::UI::BorderStyle07, TTK::UI::CheckBoxStyle05, close(), TTK::UI::ColorStyle13, confirmButtonClicked(), G_BACKGROUND_PTR, TTK::UI::InteriorFloatPhotoNext, TTK::UI::InteriorFloatPhotoPrevious, TTK::UI::InteriorFloatSetting, m_artistLabel, m_checkBox, m_next, m_planes, m_previous, manageButtonClicked(), MIN_ITEM_COUNT, photoNext(), photoPrevious(), TTK::UI::PushButtonStyle06, selectAllStateChanged(), sendUserSelectArtBackground(), and userSelectCheckBoxChecked().
MusicLrcFloatPhotoWidget::~MusicLrcFloatPhotoWidget | ( | ) |
Object destructor.
Definition at line 189 of file musiclrcfloatphotowidget.cpp.
References m_checkBox, m_next, m_planes, and m_previous.
|
slot |
Update current artist pic.
Definition at line 268 of file musiclrcfloatphotowidget.cpp.
References close(), TTK::Widget::fontTextWidth(), G_BACKGROUND_PTR, m_artistLabel, m_checkBox, m_currentIndex, m_photos, m_selectNum, and name.
Referenced by MusicLrcFloatPhotoWidget().
|
slot |
Override close function.
Definition at line 212 of file musiclrcfloatphotowidget.cpp.
References MusicAbstractFloatWidget::animationEnter(), MusicAbstractFloatWidget::m_animation, parentClose(), TTK_SIGNLE_SHOT, and TTK_SLOT.
Referenced by artistNameChanged(), confirmButtonClicked(), manageButtonClicked(), and MusicLrcFloatPhotoWidget().
|
slot |
Confirm button clicked that show selected artist pics.
Definition at line 226 of file musiclrcfloatphotowidget.cpp.
References close(), G_BACKGROUND_PTR, m_photos, m_selectNum, and qAsConst.
Referenced by MusicLrcFloatPhotoWidget().
|
inlinefinaloverrideprivatevirtual |
Override the widget event.
Reimplemented from MusicAbstractFloatWidget.
Definition at line 168 of file musiclrcfloatphotowidget.h.
|
inlinefinaloverrideprivatevirtual |
Reimplemented from MusicAbstractFloatWidget.
Definition at line 169 of file musiclrcfloatphotowidget.h.
|
slot |
Manage button clicked.
Definition at line 218 of file musiclrcfloatphotowidget.cpp.
References close(), and MusicAbstractMoveDialog::exec().
Referenced by MusicLrcFloatPhotoWidget().
|
inlineslot |
Close current widget.
Definition at line 129 of file musiclrcfloatphotowidget.h.
Referenced by close().
|
slot |
To selected next artist pic.
Definition at line 290 of file musiclrcfloatphotowidget.cpp.
References m_currentIndex, m_photos, MIN_ITEM_COUNT, and showArtistPhoto().
Referenced by MusicLrcFloatPhotoWidget().
|
slot |
To selected previous artist pic.
Definition at line 259 of file musiclrcfloatphotowidget.cpp.
References m_currentIndex, and showArtistPhoto().
Referenced by MusicLrcFloatPhotoWidget().
Resize geometry bound by given width and height.
Definition at line 197 of file musiclrcfloatphotowidget.cpp.
References MusicAbstractFloatWidget::m_rectEnter, and MusicAbstractFloatWidget::m_rectLeave.
Referenced by MusicLrcFloatWidget::resizeGeometry().
|
slot |
User select check box checked by state.
Definition at line 331 of file musiclrcfloatphotowidget.cpp.
References m_photos, m_planes, m_selectNum, qAsConst, and showArtistPhoto().
Referenced by MusicLrcFloatPhotoWidget().
|
slot |
User selected the plane pic.
Definition at line 305 of file musiclrcfloatphotowidget.cpp.
References G_BACKGROUND_PTR, m_currentIndex, and MIN_ITEM_COUNT.
Referenced by MusicLrcFloatPhotoWidget().
|
slot |
Override show function.
Definition at line 205 of file musiclrcfloatphotowidget.cpp.
References MusicAbstractFloatWidget::animationLeave(), and showArtistPhoto().
Referenced by MusicLrcFloatWidget::showArtistPhotoWidget().
|
private |
Show all artist pics in displaying.
Definition at line 238 of file musiclrcfloatphotowidget.cpp.
References m_currentIndex, m_next, m_photos, m_planes, m_previous, m_selectNum, and MIN_ITEM_COUNT.
Referenced by photoNext(), photoPrevious(), selectAllStateChanged(), and show().
|
slot |
User select check box checked by index.
Definition at line 310 of file musiclrcfloatphotowidget.cpp.
References m_checkBox, m_currentIndex, m_planes, m_selectNum, and MIN_ITEM_COUNT.
Referenced by MusicLrcFloatPhotoWidget().
|
private |
Definition at line 178 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), and MusicLrcFloatPhotoWidget().
|
private |
Definition at line 179 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), MusicLrcFloatPhotoWidget(), userSelectCheckBoxChecked(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 175 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), photoNext(), photoPrevious(), sendUserSelectArtBackground(), showArtistPhoto(), and userSelectCheckBoxChecked().
|
private |
Definition at line 180 of file musiclrcfloatphotowidget.h.
Referenced by MusicLrcFloatPhotoWidget(), showArtistPhoto(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 177 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), confirmButtonClicked(), photoNext(), selectAllStateChanged(), and showArtistPhoto().
|
private |
Definition at line 181 of file musiclrcfloatphotowidget.h.
Referenced by MusicLrcFloatPhotoWidget(), selectAllStateChanged(), showArtistPhoto(), userSelectCheckBoxChecked(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 180 of file musiclrcfloatphotowidget.h.
Referenced by MusicLrcFloatPhotoWidget(), showArtistPhoto(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 176 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), confirmButtonClicked(), selectAllStateChanged(), showArtistPhoto(), and userSelectCheckBoxChecked().