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 float gif label widget. More...
#include <musicgiflabelwidget.h>
Public Slots | |
void | updateRender () |
Public Member Functions | |
MusicGifLabelWidget (QWidget *parent=nullptr) | |
MusicGifLabelWidget (Module type, QWidget *parent=nullptr) | |
~MusicGifLabelWidget () | |
void | setType (Module type) |
Module | type () const |
void | setInterval (int value) |
int | interval () const |
void | setInfinited (bool s) |
bool | infinited () const |
void | run (bool run) |
bool | isRunning () const |
void | start () |
void | stop () |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
bool | infinitedModeCheck () |
Private Attributes | |
int | m_index |
Module | m_type |
QTimer * | m_timer |
QPixmap | m_renderer |
bool | m_isRunning |
bool | m_infinited |
The class of the float gif label widget.
Definition at line 30 of file musicgiflabelwidget.h.
|
strong |
Definition at line 35 of file musicgiflabelwidget.h.
|
explicit |
Object constructor.
Definition at line 18 of file musicgiflabelwidget.cpp.
References GIF_CICLE_BLUE, m_timer, TTK_DN_MS, and updateRender().
|
explicit |
Definition at line 32 of file musicgiflabelwidget.cpp.
References setType().
MusicGifLabelWidget::~MusicGifLabelWidget | ( | ) |
bool MusicGifLabelWidget::infinited | ( | ) | const |
Get the gif infinited mode.
Definition at line 82 of file musicgiflabelwidget.cpp.
References m_infinited.
|
private |
Infinited mode check.
Definition at line 240 of file musicgiflabelwidget.cpp.
References m_index, m_infinited, and stop().
Referenced by updateRender().
int MusicGifLabelWidget::interval | ( | ) | const |
|
inline |
Get current running state.
Definition at line 93 of file musicgiflabelwidget.h.
Referenced by MusicGifLabelMaskWidget::isRunning(), and MusicGifLabelMaskWidget::run().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 232 of file musicgiflabelwidget.cpp.
References m_renderer.
void MusicGifLabelWidget::run | ( | bool | run | ) |
Run the gif.
Definition at line 87 of file musicgiflabelwidget.cpp.
References start(), and stop().
Referenced by MusicGifLabelMaskWidget::run(), and MusicQueryTableWidget::setLoadingStatus().
void MusicGifLabelWidget::setInfinited | ( | bool | s | ) |
Set the gif infinited mode.
Definition at line 77 of file musicgiflabelwidget.cpp.
References m_infinited.
Referenced by MusicApplicationModule::windowCloseAnimationFinished().
void MusicGifLabelWidget::setInterval | ( | int | value | ) |
Set the gif interval.
Definition at line 67 of file musicgiflabelwidget.cpp.
References m_timer.
Referenced by MusicSongsListPlayedWidget::MusicSongsListPlayedWidget(), and MusicApplicationModule::windowCloseAnimationFinished().
void MusicGifLabelWidget::setType | ( | Module | type | ) |
Set the gif type.
Definition at line 43 of file musicgiflabelwidget.cpp.
References BallonWhite, CheckBlue, CicleBlue, CloseWhite, GIF_BALLON_WHITE, GIF_CHECK_BLUE, GIF_CICLE_BLUE, GIF_CLOSE_WHITE_HEIGHT, GIF_CLOSE_WHITE_WIDTH, GIF_HOURGLASS_WHITE, GIF_RADIO_BLUE, GIF_RECORD_RED, GIF_RICE_FONT_BLACK, GIF_RICE_FONT_BLACK_BIG, GIF_RICE_FONT_WHITE, HourglassWhite, m_index, m_type, RadioBlue, RecordRed, RiceFontBlack, RiceFontBlackBig, and RiceFontWhite.
Referenced by MusicGifLabelWidget(), MusicTimeSliderWidget::MusicTimeSliderWidget(), and MusicApplicationModule::windowCloseAnimationFinished().
void MusicGifLabelWidget::start | ( | ) |
Start the gif.
Definition at line 101 of file musicgiflabelwidget.cpp.
References m_isRunning, and m_timer.
Referenced by MusicSongsListPlayedWidget::initialize(), run(), MusicTimeSliderWidget::setCurrentPlayState(), and MusicApplicationModule::windowCloseAnimationFinished().
void MusicGifLabelWidget::stop | ( | ) |
Stop the gif.
Definition at line 107 of file musicgiflabelwidget.cpp.
References m_isRunning, and m_timer.
Referenced by infinitedModeCheck(), run(), and MusicTimeSliderWidget::setCurrentPlayState().
MusicGifLabelWidget::Module MusicGifLabelWidget::type | ( | ) | const |
|
slot |
Change the current gif index.
Definition at line 113 of file musicgiflabelwidget.cpp.
References BallonWhite, CheckBlue, CicleBlue, CloseWhite, GIF_BALLON_WHITE, GIF_CHECK_BLUE, GIF_CICLE_BLUE, GIF_CLOSE_WHITE_WIDTH, GIF_HOURGLASS_WHITE, GIF_RADIO_BLUE, GIF_RECORD_RED, GIF_RICE_FONT_BLACK, GIF_RICE_FONT_BLACK_BIG, GIF_RICE_FONT_WHITE, HourglassWhite, infinitedModeCheck(), m_index, m_renderer, m_type, RadioBlue, RecordRed, RiceFontBlack, RiceFontBlackBig, and RiceFontWhite.
Referenced by MusicGifLabelWidget().
|
private |
Definition at line 120 of file musicgiflabelwidget.h.
Referenced by infinitedModeCheck(), setType(), and updateRender().
|
private |
Definition at line 124 of file musicgiflabelwidget.h.
Referenced by infinited(), infinitedModeCheck(), and setInfinited().
|
private |
Definition at line 124 of file musicgiflabelwidget.h.
|
private |
Definition at line 123 of file musicgiflabelwidget.h.
Referenced by paintEvent(), and updateRender().
|
private |
Definition at line 122 of file musicgiflabelwidget.h.
Referenced by interval(), MusicGifLabelWidget(), setInterval(), start(), stop(), and ~MusicGifLabelWidget().
|
private |
Definition at line 121 of file musicgiflabelwidget.h.
Referenced by setType(), type(), and updateRender().