TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MusicLrcFloatPhotoWidget Class Reference

The class of the lrc photo float widget. More...

#include <musiclrcfloatphotowidget.h>

+ Inheritance diagram for MusicLrcFloatPhotoWidget:

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
 

Detailed Description

The class of the lrc photo float widget.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 98 of file musiclrcfloatphotowidget.h.

Constructor & Destructor Documentation

MusicLrcFloatPhotoWidget::MusicLrcFloatPhotoWidget ( QWidget *  parent = nullptr)
explicit
MusicLrcFloatPhotoWidget::~MusicLrcFloatPhotoWidget ( )

Object destructor.

Definition at line 189 of file musiclrcfloatphotowidget.cpp.

References m_checkBox, m_next, m_planes, and m_previous.

Member Function Documentation

void MusicLrcFloatPhotoWidget::artistNameChanged ( )
slot
void MusicLrcFloatPhotoWidget::close ( )
slot
void MusicLrcFloatPhotoWidget::confirmButtonClicked ( )
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().

virtual void MusicLrcFloatPhotoWidget::enterEvent ( QtEnterEvent )
inlinefinaloverrideprivatevirtual

Override the widget event.

Reimplemented from MusicAbstractFloatWidget.

Definition at line 168 of file musiclrcfloatphotowidget.h.

virtual void MusicLrcFloatPhotoWidget::leaveEvent ( QEvent *  )
inlinefinaloverrideprivatevirtual

Reimplemented from MusicAbstractFloatWidget.

Definition at line 169 of file musiclrcfloatphotowidget.h.

void MusicLrcFloatPhotoWidget::manageButtonClicked ( )
slot

Manage button clicked.

Definition at line 218 of file musiclrcfloatphotowidget.cpp.

References close(), and MusicAbstractMoveDialog::exec().

Referenced by MusicLrcFloatPhotoWidget().

void MusicLrcFloatPhotoWidget::parentClose ( )
inlineslot

Close current widget.

Definition at line 129 of file musiclrcfloatphotowidget.h.

Referenced by close().

void MusicLrcFloatPhotoWidget::photoNext ( )
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().

void MusicLrcFloatPhotoWidget::photoPrevious ( )
slot

To selected previous artist pic.

Definition at line 259 of file musiclrcfloatphotowidget.cpp.

References m_currentIndex, and showArtistPhoto().

Referenced by MusicLrcFloatPhotoWidget().

void MusicLrcFloatPhotoWidget::resizeGeometry ( int  width,
int  height 
)

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().

void MusicLrcFloatPhotoWidget::selectAllStateChanged ( bool  state)
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().

void MusicLrcFloatPhotoWidget::sendUserSelectArtBackground ( int  index)
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().

void MusicLrcFloatPhotoWidget::show ( )
slot

Override show function.

Definition at line 205 of file musiclrcfloatphotowidget.cpp.

References MusicAbstractFloatWidget::animationLeave(), and showArtistPhoto().

Referenced by MusicLrcFloatWidget::showArtistPhotoWidget().

void MusicLrcFloatPhotoWidget::showArtistPhoto ( ) const
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().

void MusicLrcFloatPhotoWidget::userSelectCheckBoxChecked ( int  index)
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().

Member Data Documentation

QLabel* MusicLrcFloatPhotoWidget::m_artistLabel
private

Definition at line 178 of file musiclrcfloatphotowidget.h.

Referenced by artistNameChanged(), and MusicLrcFloatPhotoWidget().

QCheckBox* MusicLrcFloatPhotoWidget::m_checkBox
private
int MusicLrcFloatPhotoWidget::m_currentIndex
private
QPushButton * MusicLrcFloatPhotoWidget::m_next
private
QStringList MusicLrcFloatPhotoWidget::m_photos
private
QList<MusicLrcFloatPhotoItem*> MusicLrcFloatPhotoWidget::m_planes
private
QPushButton* MusicLrcFloatPhotoWidget::m_previous
private
TTKIntSet MusicLrcFloatPhotoWidget::m_selectNum
private

The documentation for this class was generated from the following files: