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 lrc photo float widget. More...
#include <musiclrcfloatphotowidget.h>
Public Slots | |
void | show () |
void | close () |
void | parentClose () |
void | manageButtonClicked () |
void | confirmButtonClicked () |
void | imageNext () |
void | imagePrevious () |
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) |
![]() | |
MusicAbstractFloatWidget (QWidget *parent=nullptr) | |
~MusicAbstractFloatWidget () | |
void | setBlockAnimation (bool b) |
Private Member Functions | |
virtual void | enterEvent (QtEnterEvent *) overridefinal |
virtual void | leaveEvent (QEvent *) overridefinal |
void | showArtistImage () const |
Private Attributes | |
int | m_currentIndex |
TTKIntSet | m_selectNum |
QStringList | m_images |
QLabel * | m_artistLabel |
QCheckBox * | m_checkBox |
QPushButton * | m_previous |
QPushButton * | m_next |
QList< MusicLrcFloatPhotoItem * > | m_planes |
Additional Inherited Members | |
![]() | |
virtual void | contextMenuEvent (QContextMenuEvent *) overridefinal |
virtual void | mousePressEvent (QMouseEvent *) overridefinal |
virtual void | mouseMoveEvent (QMouseEvent *) overridefinal |
virtual void | mouseReleaseEvent (QMouseEvent *) overridefinal |
void | animationEnter () |
void | animationLeave () |
![]() | |
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::BorderStyle06, TTK::UI::CheckBoxStyle05, close(), TTK::UI::ColorStyle13, confirmButtonClicked(), G_BACKGROUND_PTR, imageNext(), imagePrevious(), TTK::UI::InteriorFloatPhotoNext, TTK::UI::InteriorFloatPhotoPrevious, TTK::UI::InteriorFloatSetting, m_artistLabel, m_checkBox, m_next, m_planes, m_previous, manageButtonClicked(), MIN_ITEM_COUNT, 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 image.
Definition at line 259 of file musiclrcfloatphotowidget.cpp.
References close(), TTK::Widget::fontTextWidth(), G_BACKGROUND_PTR, m_artistLabel, m_checkBox, m_currentIndex, m_images, 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_images, m_selectNum, and qAsConst.
Referenced by MusicLrcFloatPhotoWidget().
|
inlinefinaloverrideprivatevirtual |
Override the widget event.
Reimplemented from MusicAbstractFloatWidget.
Definition at line 168 of file musiclrcfloatphotowidget.h.
|
slot |
To selected next artist image.
Definition at line 281 of file musiclrcfloatphotowidget.cpp.
References m_currentIndex, m_images, MIN_ITEM_COUNT, and showArtistImage().
Referenced by MusicLrcFloatPhotoWidget().
|
slot |
To selected previous artist image.
Definition at line 296 of file musiclrcfloatphotowidget.cpp.
References m_currentIndex, and showArtistImage().
Referenced by MusicLrcFloatPhotoWidget().
|
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().
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_images, m_planes, m_selectNum, qAsConst, and showArtistImage().
Referenced by MusicLrcFloatPhotoWidget().
|
slot |
User selected the plane image.
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 showArtistImage().
Referenced by MusicLrcFloatWidget::showArtistPhotoWidget().
|
private |
Show all artist pics in displaying.
Definition at line 238 of file musiclrcfloatphotowidget.cpp.
References m_currentIndex, m_images, m_next, m_planes, m_previous, m_selectNum, and MIN_ITEM_COUNT.
Referenced by imageNext(), imagePrevious(), 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(), imageNext(), imagePrevious(), sendUserSelectArtBackground(), showArtistImage(), and userSelectCheckBoxChecked().
|
private |
Definition at line 177 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), confirmButtonClicked(), imageNext(), selectAllStateChanged(), and showArtistImage().
|
private |
Definition at line 180 of file musiclrcfloatphotowidget.h.
Referenced by MusicLrcFloatPhotoWidget(), showArtistImage(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 181 of file musiclrcfloatphotowidget.h.
Referenced by MusicLrcFloatPhotoWidget(), selectAllStateChanged(), showArtistImage(), userSelectCheckBoxChecked(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 180 of file musiclrcfloatphotowidget.h.
Referenced by MusicLrcFloatPhotoWidget(), showArtistImage(), and ~MusicLrcFloatPhotoWidget().
|
private |
Definition at line 176 of file musiclrcfloatphotowidget.h.
Referenced by artistNameChanged(), confirmButtonClicked(), selectAllStateChanged(), showArtistImage(), and userSelectCheckBoxChecked().