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

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

#include <musicbackgroundskindialog.h>

+ Inheritance diagram for MusicBackgroundSkinDialog:

Public Slots

void showPaletteDialog ()
 
void showPaletteDialog (const QString &path)
 
void showCustomSkinDialog ()
 
void backgroundListWidgetChanged (int index)
 
void classicalListWidgetItemClicked (int type, const QString &name)
 
void remoteListWidgetItemClicked (int type, const QString &name)
 
void currentColorChanged (const QString &path)
 
void windowTransparentChanged (bool state)
 
- Public Slots inherited from MusicAbstractMoveDialog
void backgroundChanged ()
 
virtual int exec ()
 
void show ()
 

Signals

void currentTextChanged (const QString &text)
 

Public Member Functions

 MusicBackgroundSkinDialog (QWidget *parent=nullptr)
 
 ~MusicBackgroundSkinDialog ()
 
void updateArtistFileTheme (const QString &theme)
 
void setCurrentBackgroundTheme (const QString &theme, int skin, int list)
 
int backgroundListAlpha () const
 
bool backgroundTransparentEnable () const
 
void setSkinTransToolText (int value)
 
void setListTransToolText (int value)
 
- 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)
 

Static Public Member Functions

static QPixmap setBackgroundUrl (QString &name)
 
static bool themeValidCheck (QString &name, QString &path)
 
static QString cpoyArtistFileToLocal (const QString &path)
 

Private Member Functions

void listWidgetItemClicked (MusicBackgroundListWidget *item, const QString &name)
 
void listWidgetItemClicked (MusicBackgroundRemoteWidget *item, const QString &name)
 
void addThemeListWidgetItem ()
 
void addThemeListWidgetItem (MusicBackgroundListWidget *item, const QString &dir, bool state)
 
void cpoyFileFromLocal (const QString &path)
 

Static Private Member Functions

static void findThemeListByPath (const QString &dir, TTKIntList &data)
 
static int cpoyFileToLocalIndex ()
 
static int cpoyFileToLocal (const QString &path)
 

Private Attributes

Ui::MusicBackgroundSkinDialog * m_ui
 
int m_stackThemeIndex
 
MusicBackgroundListWidgetm_cacheBackgroundList
 
MusicBackgroundListWidgetm_stackBackgroundList
 
MusicBackgroundDailyWidgetm_dailyBackgroundList
 
MusicBackgroundOnlineWidgetm_onlineBackgroundList
 

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

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

Definition at line 36 of file musicbackgroundskindialog.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void MusicBackgroundSkinDialog::addThemeListWidgetItem ( )
private

Add all theme into list.

Definition at line 335 of file musicbackgroundskindialog.cpp.

References m_cacheBackgroundList, m_stackBackgroundList, THEME_DIR_FULL, and USER_THEME_DIR_FULL.

Referenced by MusicBackgroundSkinDialog().

void MusicBackgroundSkinDialog::addThemeListWidgetItem ( MusicBackgroundListWidget item,
const QString &  dir,
bool  state 
)
private

Add all theme into list.

Definition at line 341 of file musicbackgroundskindialog.cpp.

References MusicBackgroundListWidget::addCellItem(), findThemeListByPath(), qAsConst, and TKM_FILE.

int MusicBackgroundSkinDialog::backgroundListAlpha ( ) const

Get list background skin alpha.

Definition at line 145 of file musicbackgroundskindialog.cpp.

References m_ui.

Referenced by MusicTopAreaWidget::backgroundListAlpha().

void MusicBackgroundSkinDialog::backgroundListWidgetChanged ( int  index)
slot
bool MusicBackgroundSkinDialog::backgroundTransparentEnable ( ) const

Get background window skin enable.

Definition at line 150 of file musicbackgroundskindialog.cpp.

References m_ui.

Referenced by MusicTopAreaWidget::backgroundTransparentEnable().

void MusicBackgroundSkinDialog::classicalListWidgetItemClicked ( int  type,
const QString &  name 
)
slot
QString MusicBackgroundSkinDialog::cpoyArtistFileToLocal ( const QString &  path)
static

Copy art file to local themes dir path.

Definition at line 117 of file musicbackgroundskindialog.cpp.

References cpoyFileToLocal().

Referenced by MusicTopAreaWidget::setAsArtistBackground().

void MusicBackgroundSkinDialog::cpoyFileFromLocal ( const QString &  path)
private
int MusicBackgroundSkinDialog::cpoyFileToLocal ( const QString &  path)
staticprivate
int MusicBackgroundSkinDialog::cpoyFileToLocalIndex ( )
staticprivate
void MusicBackgroundSkinDialog::currentColorChanged ( const QString &  path)
slot
void MusicBackgroundSkinDialog::currentTextChanged ( const QString &  text)
signal

Update app background when user change the current background.

void MusicBackgroundSkinDialog::findThemeListByPath ( const QString &  dir,
TTKIntList data 
)
staticprivate

Find all theme in local directory.

Definition at line 365 of file musicbackgroundskindialog.cpp.

References qAsConst, TKM_FILE_SUFFIX, TTK_DEFAULT_STR, and TTK_FILE_SUFFIX.

Referenced by addThemeListWidgetItem(), and cpoyFileToLocalIndex().

void MusicBackgroundSkinDialog::listWidgetItemClicked ( MusicBackgroundListWidget item,
const QString &  name 
)
private
void MusicBackgroundSkinDialog::listWidgetItemClicked ( MusicBackgroundRemoteWidget item,
const QString &  name 
)
private
void MusicBackgroundSkinDialog::remoteListWidgetItemClicked ( int  type,
const QString &  name 
)
slot
QPixmap MusicBackgroundSkinDialog::setBackgroundUrl ( QString &  name)
static
void MusicBackgroundSkinDialog::setCurrentBackgroundTheme ( const QString &  theme,
int  skin,
int  list 
)
void MusicBackgroundSkinDialog::setListTransToolText ( int  value)

Set list transparent tool text.

Definition at line 160 of file musicbackgroundskindialog.cpp.

References m_ui.

Referenced by MusicTopAreaWidget::playlistTransparent(), and setCurrentBackgroundTheme().

void MusicBackgroundSkinDialog::setSkinTransToolText ( int  value)

Set skin transparent tool text.

Definition at line 155 of file musicbackgroundskindialog.cpp.

References m_ui.

Referenced by MusicTopAreaWidget::backgroundTransparentChanged(), and setCurrentBackgroundTheme().

void MusicBackgroundSkinDialog::showCustomSkinDialog ( )
slot
void MusicBackgroundSkinDialog::showPaletteDialog ( )
slot

Change index to palette dialog.

Definition at line 165 of file musicbackgroundskindialog.cpp.

References currentColorChanged(), and MusicBackgroundPaletteWidget::exec().

Referenced by MusicBackgroundSkinDialog().

void MusicBackgroundSkinDialog::showPaletteDialog ( const QString &  path)
slot

Change index to palette dialog.

Definition at line 173 of file musicbackgroundskindialog.cpp.

References cpoyFileFromLocal(), m_stackBackgroundList, and MusicBackgroundListWidget::updateLastedItem().

bool MusicBackgroundSkinDialog::themeValidCheck ( QString &  name,
QString &  path 
)
static

Theme valid check.

Definition at line 97 of file musicbackgroundskindialog.cpp.

References THEME_DIR_FULL, TKM_FILE, and USER_THEME_DIR_FULL.

Referenced by listWidgetItemClicked(), and setBackgroundUrl().

void MusicBackgroundSkinDialog::updateArtistFileTheme ( const QString &  theme)
void MusicBackgroundSkinDialog::windowTransparentChanged ( bool  state)
slot

Member Data Documentation

MusicBackgroundListWidget* MusicBackgroundSkinDialog::m_cacheBackgroundList
private
MusicBackgroundDailyWidget* MusicBackgroundSkinDialog::m_dailyBackgroundList
private
MusicBackgroundOnlineWidget* MusicBackgroundSkinDialog::m_onlineBackgroundList
private
MusicBackgroundListWidget* MusicBackgroundSkinDialog::m_stackBackgroundList
private
int MusicBackgroundSkinDialog::m_stackThemeIndex
private

Definition at line 166 of file musicbackgroundskindialog.h.

Referenced by cpoyFileFromLocal(), and showCustomSkinDialog().

Ui::MusicBackgroundSkinDialog* MusicBackgroundSkinDialog::m_ui
private

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