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
MusicTimerWidget Class Reference

The class of the timer widget. More...

#include <musictimerwidget.h>

+ Inheritance diagram for MusicTimerWidget:

Public Slots

void changeWidgetIndex (int index)
 
void saveParameterSettings ()
 
void buttonClicked (int index)
 
- Public Slots inherited from MusicAbstractMoveDialog
void backgroundChanged ()
 
virtual int exec ()
 
void show ()
 

Public Member Functions

 MusicTimerWidget (QWidget *parent=nullptr)
 
 ~MusicTimerWidget ()
 
void setSongStringList (const QStringList &list)
 
- Public Member Functions inherited from MusicAbstractMoveDialog
 MusicAbstractMoveDialog (QWidget *parent=nullptr)
 
 MusicAbstractMoveDialog (bool transparent, QWidget *parent=nullptr)
 
 ~MusicAbstractMoveDialog ()
 
- Public Member Functions inherited from TTKAbstractMoveDialog
 TTKAbstractMoveDialog (QWidget *parent=nullptr)
 
 TTKAbstractMoveDialog (bool transparent, QWidget *parent=nullptr)
 
void drawWindowShadow (bool show)
 
void blockMoveOption (bool block)
 

Private Member Functions

void initFirstWidget ()
 
void initSecondWidget ()
 
void initThreeWidget ()
 
void setEnabledFirstControl (bool enabled)
 
void setEnabledSecondControl (bool enabled)
 
void setEnabledThreeControl (bool enabled)
 
void initComboParameter ()
 
void initParemeter ()
 
void writeParemeter () const
 

Private Attributes

Ui::MusicTimerWidget * m_ui
 
QStringList m_hour
 
QStringList m_second
 
QStringList m_repeat
 

Additional Inherited Members

- Protected Member Functions inherited from MusicWidgetRenderer
void setBackgroundPixmap (const QSize &size)
 
 MusicWidgetRenderer ()
 
void setBackgroundLabel (QLabel *label)
 

Detailed Description

The class of the timer widget.

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

Definition at line 31 of file musictimerwidget.h.

Constructor & Destructor Documentation

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

Object destructor.

Definition at line 75 of file musictimerwidget.cpp.

References m_ui.

Member Function Documentation

void MusicTimerWidget::buttonClicked ( int  index)
slot

Widget interface control enable or not.

Definition at line 243 of file musictimerwidget.cpp.

References setEnabledFirstControl(), setEnabledSecondControl(), and setEnabledThreeControl().

Referenced by MusicTimerWidget().

void MusicTimerWidget::changeWidgetIndex ( int  index)
slot
void MusicTimerWidget::initComboParameter ( )
private

Init combobox parameter.

Definition at line 151 of file musictimerwidget.cpp.

References m_hour, m_repeat, m_second, TTK_DN_D2H, and TTK_DN_H2M.

Referenced by MusicTimerWidget().

void MusicTimerWidget::initFirstWidget ( )
private

Init time to play widget.

Definition at line 182 of file musictimerwidget.cpp.

References TTK::Widget::generateComboBoxFormat(), m_hour, m_repeat, m_second, m_ui, and TTK::UI::RadioButtonStyle01.

Referenced by MusicTimerWidget().

void MusicTimerWidget::initParemeter ( )
private
void MusicTimerWidget::initSecondWidget ( )
private

Init time to stop widget.

Definition at line 202 of file musictimerwidget.cpp.

References TTK::Widget::generateComboBoxFormat(), m_hour, m_repeat, m_second, m_ui, and TTK::UI::RadioButtonStyle01.

Referenced by MusicTimerWidget().

void MusicTimerWidget::initThreeWidget ( )
private

Init time to shutdown widget.

Definition at line 219 of file musictimerwidget.cpp.

References TTK::Widget::generateComboBoxFormat(), m_hour, m_repeat, m_second, m_ui, and TTK::UI::RadioButtonStyle01.

Referenced by MusicTimerWidget().

void MusicTimerWidget::saveParameterSettings ( )
slot

Save the parameter setting results.

Definition at line 236 of file musictimerwidget.cpp.

References MusicApplicationModule::instance(), MusicApplicationModule::runTimerAutoModule(), and writeParemeter().

Referenced by MusicTimerWidget().

void MusicTimerWidget::setEnabledFirstControl ( bool  enabled)
private

Init play widget control enable or not.

Definition at line 257 of file musictimerwidget.cpp.

References m_ui.

Referenced by buttonClicked(), and initParemeter().

void MusicTimerWidget::setEnabledSecondControl ( bool  enabled)
private

Init stop widget control enable or not..

Definition at line 266 of file musictimerwidget.cpp.

References m_ui.

Referenced by buttonClicked(), and initParemeter().

void MusicTimerWidget::setEnabledThreeControl ( bool  enabled)
private

Init shutdown widget control enable or not..

Definition at line 273 of file musictimerwidget.cpp.

References m_ui.

Referenced by buttonClicked(), and initParemeter().

void MusicTimerWidget::setSongStringList ( const QStringList &  list)
void MusicTimerWidget::writeParemeter ( ) const
private

Member Data Documentation

QStringList MusicTimerWidget::m_hour
private
QStringList MusicTimerWidget::m_repeat
private
QStringList MusicTimerWidget::m_second
private
Ui::MusicTimerWidget* MusicTimerWidget::m_ui
private

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