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 local background widget. More...
#include <musicbackgroundskindialog.h>
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) |
![]() | |
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 background, int list) |
int | backgroundListTransparent () const |
bool | backgroundTransparentEnabled () const |
void | setSkinTransToolText (int value) |
void | setListTransToolText (int value) |
![]() | |
MusicAbstractMoveDialog (QWidget *parent=nullptr) | |
MusicAbstractMoveDialog (bool transparent, QWidget *parent=nullptr) | |
~MusicAbstractMoveDialog () | |
![]() | |
TTKAbstractMoveDialog (QWidget *parent=nullptr) | |
TTKAbstractMoveDialog (bool transparent, QWidget *parent=nullptr) | |
void | drawWindowShadow (bool show) |
void | blockOption (bool block) |
Static Public Member Functions | |
static QPixmap | setBackgroundUrl (QString &name) |
static bool | isValid (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 |
MusicBackgroundListWidget * | m_cacheBackgroundList |
MusicBackgroundListWidget * | m_stackBackgroundList |
MusicBackgroundDailyWidget * | m_dailyBackgroundList |
MusicBackgroundOnlineWidget * | m_onlineBackgroundList |
Additional Inherited Members | |
![]() | |
void | setBackgroundPixmap (const QSize &size) |
MusicWidgetRenderer () | |
void | setBackgroundLabel (QLabel *label) |
The class of the local background widget.
Definition at line 36 of file musicbackgroundskindialog.h.
|
explicit |
Object constructor.
Definition at line 15 of file musicbackgroundskindialog.cpp.
References addThemeListWidgetItem(), backgroundListWidgetChanged(), TTK::UI::BtnResetWindow, MusicBackgroundListWidget::CachedModule, TTK::UI::CheckBoxStyle04, classicalListWidgetItemClicked(), TTK::UI::ColorStyle03, TTK::Widget::generateVScrollAreaStyle(), MusicTopAreaWidget::instance(), MusicApplicationModule::instance(), m_cacheBackgroundList, m_dailyBackgroundList, m_onlineBackgroundList, m_stackBackgroundList, m_ui, TTK::UI::PushButtonStyle04, MusicAnimationStackedWidget::RightToLeft, MusicWidgetRenderer::setBackgroundLabel(), MusicBackgroundListWidget::setType(), showCustomSkinDialog(), showPaletteDialog(), MusicBackgroundListWidget::StackedModule, TTK::UI::ToolButtonStyle04, TTK::UI::ToolButtonStyle05, and windowTransparentChanged().
MusicBackgroundSkinDialog::~MusicBackgroundSkinDialog | ( | ) |
Object destructor.
Definition at line 78 of file musicbackgroundskindialog.cpp.
References m_cacheBackgroundList, m_dailyBackgroundList, m_onlineBackgroundList, m_stackBackgroundList, and m_ui.
|
private |
Add all theme into list.
Definition at line 336 of file musicbackgroundskindialog.cpp.
References m_cacheBackgroundList, m_stackBackgroundList, THEME_DIR_FULL, and USER_THEME_DIR_FULL.
Referenced by MusicBackgroundSkinDialog().
|
private |
Add all theme into list.
Definition at line 342 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::addCellItem(), findThemeListByPath(), qAsConst, and TKM_FILE.
int MusicBackgroundSkinDialog::backgroundListTransparent | ( | ) | const |
Get list background skin transparent.
Definition at line 145 of file musicbackgroundskindialog.cpp.
References m_ui.
Referenced by MusicTopAreaWidget::backgroundListTransparent().
|
slot |
Background list widget changed.
Definition at line 206 of file musicbackgroundskindialog.cpp.
References MusicBackgroundRemoteWidget::abort(), MusicBackgroundOnlineWidget::createFunctionsWidget(), MusicBackgroundDailyWidget::initialize(), MusicBackgroundOnlineWidget::initialize(), m_dailyBackgroundList, m_onlineBackgroundList, and m_ui.
Referenced by MusicBackgroundSkinDialog().
bool MusicBackgroundSkinDialog::backgroundTransparentEnabled | ( | ) | const |
Get background window skin enable.
Definition at line 150 of file musicbackgroundskindialog.cpp.
References m_ui.
Referenced by MusicTopAreaWidget::backgroundTransparentEnabled().
|
slot |
Classical list widget item has clicked.
Definition at line 237 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::addCellItem(), MusicBackgroundListWidget::CachedModule, MusicBackgroundListWidget::contains(), listWidgetItemClicked(), m_cacheBackgroundList, m_stackBackgroundList, THEME_DIR_FULL, TKM_FILE, and USER_THEME_DIR_FULL.
Referenced by MusicBackgroundSkinDialog().
|
static |
Copy art file to local themes dir path.
Definition at line 117 of file musicbackgroundskindialog.cpp.
References cpoyFileToLocal().
Referenced by MusicTopAreaWidget::setArtistBackground().
|
private |
Copy custom file to local themes dir path.
Definition at line 355 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::addCellItem(), cpoyFileToLocal(), m_stackBackgroundList, m_stackThemeIndex, TKM_FILE, and USER_THEME_DIR_FULL.
Referenced by showCustomSkinDialog(), and showPaletteDialog().
Copy custom file .
Definition at line 409 of file musicbackgroundskindialog.cpp.
References cpoyFileToLocalIndex(), MusicExtractWrapper::inputSkin(), MusicBackgroundImage::m_pix, TKM_FILE, and USER_THEME_DIR_FULL.
Referenced by cpoyArtistFileToLocal(), and cpoyFileFromLocal().
|
staticprivate |
Copy custom file index.
Definition at line 390 of file musicbackgroundskindialog.cpp.
References CURRENT_ITEMS_COUNT, findThemeListByPath(), and USER_THEME_DIR_FULL.
Referenced by cpoyFileToLocal(), listWidgetItemClicked(), and showCustomSkinDialog().
|
slot |
Update app background when user change the current background.
Definition at line 266 of file musicbackgroundskindialog.cpp.
References MusicTopAreaWidget::backgroundSkinChanged(), MusicTopAreaWidget::backgroundTransparentChanged(), G_BACKGROUND_PTR, MusicTopAreaWidget::instance(), and TTK_COLOR_FILE.
Referenced by showPaletteDialog().
|
signal |
Update app background when user change the current background.
|
staticprivate |
Find all theme in local directory.
Definition at line 366 of file musicbackgroundskindialog.cpp.
References qAsConst, TKM_FILE_SUFFIX, TTK_DEFAULT_STR, and TTK_FILE_SUFFIX.
Referenced by addThemeListWidgetItem(), and cpoyFileToLocalIndex().
|
static |
Theme is 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().
|
private |
Background list widget item has clicked changed.
Definition at line 291 of file musicbackgroundskindialog.cpp.
References MusicTopAreaWidget::backgroundSkinChanged(), MusicBackgroundListWidget::clearState(), G_BACKGROUND_PTR, MusicTopAreaWidget::instance(), isValid(), MusicBackgroundListWidget::setCurrentItemName(), TKM_FILE, and USER_THEME_DIR_FULL.
Referenced by classicalListWidgetItemClicked(), listWidgetItemClicked(), and remoteListWidgetItemClicked().
|
private |
Background list widget item has clicked changed.
Definition at line 305 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::addCellItem(), MusicBackgroundListWidget::clearState(), MusicBackgroundListWidget::contains(), cpoyFileToLocalIndex(), MusicBackgroundListItem::fileName(), MusicBackgroundListWidget::find(), MusicExtractWrapper::inputSkin(), MusicBackgroundImage::isValid(), listWidgetItemClicked(), m_cacheBackgroundList, m_stackBackgroundList, MusicBackgroundRemoteWidget::outputRemoteSkin(), TKM_FILE, and USER_THEME_DIR_FULL.
Remote background list widget item has clicked.
Definition at line 256 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::DailyModule, listWidgetItemClicked(), m_dailyBackgroundList, m_onlineBackgroundList, and MusicBackgroundListWidget::OnlineModule.
|
static |
Set artist background picture by name.
Definition at line 87 of file musicbackgroundskindialog.cpp.
References G_BACKGROUND_PTR, isValid(), MusicBackgroundImage::m_pix, MusicExtractWrapper::outputSkin(), TKM_FILE, and USER_THEME_DIR_FULL.
Referenced by MusicTopAreaWidget::drawWindowBackground().
void MusicBackgroundSkinDialog::setCurrentBackgroundTheme | ( | const QString & | theme, |
int | background, | ||
int | list | ||
) |
Select current item by name and background and list transparent when the widget show.
Definition at line 130 of file musicbackgroundskindialog.cpp.
References MusicSettingManager::BackgroundTransparentEnable, G_SETTING_PTR, m_cacheBackgroundList, m_stackBackgroundList, m_ui, MusicBackgroundListWidget::setCurrentItemName(), setListTransToolText(), and setSkinTransToolText().
Referenced by MusicTopAreaWidget::showSkinManagerWidget().
void MusicBackgroundSkinDialog::setListTransToolText | ( | int | value | ) |
Set list transparent tool text.
Definition at line 160 of file musicbackgroundskindialog.cpp.
References m_ui.
Referenced by MusicTopAreaWidget::playlistTransparentChanged(), 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().
|
slot |
Change index to custom skin dialog.
Definition at line 179 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::addCellItem(), cpoyFileFromLocal(), cpoyFileToLocalIndex(), TTK::File::getOpenFileName(), m_stackBackgroundList, m_stackThemeIndex, TKM_FILE, TKM_FILE_SUFFIX, TTK_FILE_SUFFIX, MusicBackgroundListWidget::updateLastItem(), and USER_THEME_DIR_FULL.
Referenced by MusicBackgroundSkinDialog().
|
slot |
Change index to palette dialog.
Definition at line 165 of file musicbackgroundskindialog.cpp.
References currentColorChanged(), and MusicBackgroundPaletteWidget::exec().
Referenced by MusicBackgroundSkinDialog().
|
slot |
Change index to palette dialog.
Definition at line 173 of file musicbackgroundskindialog.cpp.
References cpoyFileFromLocal(), m_stackBackgroundList, and MusicBackgroundListWidget::updateLastItem().
void MusicBackgroundSkinDialog::updateArtistFileTheme | ( | const QString & | theme | ) |
Update artist file theme.
Definition at line 123 of file musicbackgroundskindialog.cpp.
References MusicBackgroundListWidget::addCellItem(), m_stackBackgroundList, TKM_FILE, MusicBackgroundListWidget::updateLastItem(), and USER_THEME_DIR_FULL.
Referenced by MusicTopAreaWidget::setArtistBackground().
|
slot |
Window transparent changed.
Definition at line 280 of file musicbackgroundskindialog.cpp.
References MusicTopAreaWidget::backgroundTransparentChanged(), MusicSettingManager::BackgroundTransparentEnable, G_SETTING_PTR, MusicTopAreaWidget::instance(), and m_ui.
Referenced by MusicBackgroundSkinDialog().
|
private |
Definition at line 167 of file musicbackgroundskindialog.h.
Referenced by addThemeListWidgetItem(), classicalListWidgetItemClicked(), listWidgetItemClicked(), MusicBackgroundSkinDialog(), setCurrentBackgroundTheme(), and ~MusicBackgroundSkinDialog().
|
private |
Definition at line 169 of file musicbackgroundskindialog.h.
Referenced by backgroundListWidgetChanged(), MusicBackgroundSkinDialog(), remoteListWidgetItemClicked(), and ~MusicBackgroundSkinDialog().
|
private |
Definition at line 170 of file musicbackgroundskindialog.h.
Referenced by backgroundListWidgetChanged(), MusicBackgroundSkinDialog(), remoteListWidgetItemClicked(), and ~MusicBackgroundSkinDialog().
|
private |
Definition at line 168 of file musicbackgroundskindialog.h.
Referenced by addThemeListWidgetItem(), classicalListWidgetItemClicked(), cpoyFileFromLocal(), listWidgetItemClicked(), MusicBackgroundSkinDialog(), setCurrentBackgroundTheme(), showCustomSkinDialog(), showPaletteDialog(), updateArtistFileTheme(), and ~MusicBackgroundSkinDialog().
|
private |
Definition at line 166 of file musicbackgroundskindialog.h.
Referenced by cpoyFileFromLocal(), and showCustomSkinDialog().
|
private |
Definition at line 165 of file musicbackgroundskindialog.h.
Referenced by backgroundListTransparent(), backgroundListWidgetChanged(), backgroundTransparentEnabled(), MusicBackgroundSkinDialog(), setCurrentBackgroundTheme(), setListTransToolText(), setSkinTransToolText(), windowTransparentChanged(), and ~MusicBackgroundSkinDialog().