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 | Signals | Public Member Functions | Private Attributes | List of all members
MusicBackgroundPaletteWidget Class Reference

The class of the background palette widget. More...

#include <musicbackgroundpalettewidget.h>

+ Inheritance diagram for MusicBackgroundPaletteWidget:

Public Slots

void paletteColorClicked ()
 
void showPaletteDialog ()
 
void currentColorToFile (const QColor &color)
 
void currentColorToMemory (const QString &color)
 
virtual int exec ()
 
- Public Slots inherited from MusicAbstractMoveDialog
void backgroundChanged ()
 
virtual int exec ()
 
void show ()
 

Signals

void currentColorToFileChanged (const QString &path)
 
void currentColorToMemoryChanged (const QString &path)
 

Public Member Functions

 MusicBackgroundPaletteWidget (QWidget *parent=nullptr)
 
 ~MusicBackgroundPaletteWidget ()
 
void updateBackground (const QString &path)
 
- 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 Attributes

Ui::MusicBackgroundPaletteWidget * m_ui
 
QWidgetList m_container
 
QColor m_currentColor
 
QString m_previousBackground
 
bool m_confirmButtonClicked
 

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 background palette widget.

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

Definition at line 80 of file musicbackgroundpalettewidget.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void MusicBackgroundPaletteWidget::currentColorToFile ( const QColor &  color)
slot

Current color confirm.

Definition at line 217 of file musicbackgroundpalettewidget.cpp.

References currentColorToMemory(), m_currentColor, m_ui, and TTK_COLOR_FILE.

Referenced by MusicBackgroundPaletteWidget(), and showPaletteDialog().

void MusicBackgroundPaletteWidget::currentColorToFileChanged ( const QString &  path)
signal

Current color path confirm changed.

Referenced by MusicBackgroundPaletteWidget(), and paletteColorClicked().

void MusicBackgroundPaletteWidget::currentColorToMemory ( const QString &  color)
slot

Current color memory confirm.

Definition at line 231 of file musicbackgroundpalettewidget.cpp.

References currentColorToMemoryChanged(), and updateBackground().

Referenced by currentColorToFile(), and MusicBackgroundPaletteWidget().

void MusicBackgroundPaletteWidget::currentColorToMemoryChanged ( const QString &  path)
signal

Current color memory confirm changed.

Referenced by currentColorToMemory(), MusicBackgroundPaletteWidget(), and ~MusicBackgroundPaletteWidget().

int MusicBackgroundPaletteWidget::exec ( )
virtualslot
void MusicBackgroundPaletteWidget::paletteColorClicked ( )
slot
void MusicBackgroundPaletteWidget::showPaletteDialog ( )
slot

Change index to palette dialog.

Definition at line 208 of file musicbackgroundpalettewidget.cpp.

References currentColorToFile(), m_currentColor, and MusicColorDialog::popup().

Referenced by MusicBackgroundPaletteWidget().

void MusicBackgroundPaletteWidget::updateBackground ( const QString &  path)

Update this background when user change the current background.

Definition at line 179 of file musicbackgroundpalettewidget.cpp.

References MusicBackgroundImage::m_pix, m_ui, and MusicExtractWrapper::outputSkin().

Referenced by currentColorToMemory(), and exec().

Member Data Documentation

bool MusicBackgroundPaletteWidget::m_confirmButtonClicked
private
QWidgetList MusicBackgroundPaletteWidget::m_container
private
QColor MusicBackgroundPaletteWidget::m_currentColor
private
QString MusicBackgroundPaletteWidget::m_previousBackground
private

Definition at line 135 of file musicbackgroundpalettewidget.h.

Referenced by exec(), and ~MusicBackgroundPaletteWidget().

Ui::MusicBackgroundPaletteWidget* MusicBackgroundPaletteWidget::m_ui
private

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