TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicbackgroundskindialog.h
Go to the documentation of this file.
1 #ifndef MUSICBACKGROUNDSKINDIALOG_H
2 #define MUSICBACKGROUNDSKINDIALOG_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Music Player project
6  * Copyright (C) 2015 - 2024 Greedysky Studio
7 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License along
19  * with this program; If not, see <http://www.gnu.org/licenses/>.
20  ***************************************************************************/
21 
23 
24 namespace Ui {
26 }
27 
32 
37 {
38  Q_OBJECT
40 public:
44  explicit MusicBackgroundSkinDialog(QWidget *parent = nullptr);
49 
53  static QPixmap setBackgroundUrl(QString &name);
57  static bool themeValidCheck(QString &name, QString &path);
61  static QString cpoyArtistFileToLocal(const QString &path);
62 
66  void updateArtistFileTheme(const QString &theme);
70  void setCurrentBackgroundTheme(const QString &theme, int skin, int list);
71 
75  int backgroundListAlpha() const;
79  bool backgroundTransparentEnable() const;
80 
84  void setSkinTransToolText(int value);
88  void setListTransToolText(int value);
89 
90 Q_SIGNALS:
94  void currentTextChanged(const QString &text);
95 
96 public Q_SLOTS:
100  void showPaletteDialog();
104  void showPaletteDialog(const QString &path);
108  void showCustomSkinDialog();
112  void backgroundListWidgetChanged(int index);
116  void classicalListWidgetItemClicked(int type, const QString &name);
120  void remoteListWidgetItemClicked(int type, const QString &name);
124  void currentColorChanged(const QString &path);
128  void windowTransparentChanged(bool state);
129 
130 private:
134  void listWidgetItemClicked(MusicBackgroundListWidget *item, const QString &name);
138  void listWidgetItemClicked(MusicBackgroundRemoteWidget *item, const QString &name);
142  void addThemeListWidgetItem();
146  void addThemeListWidgetItem(MusicBackgroundListWidget *item, const QString &dir, bool state);
150  void cpoyFileFromLocal(const QString &path);
151 
155  static void findThemeListByPath(const QString &dir, TTKIntList &data);
159  static int cpoyFileToLocalIndex();
163  static int cpoyFileToLocal(const QString &path);
164 
165  Ui::MusicBackgroundSkinDialog *m_ui;
171 
172 };
173 
174 #endif // MUSICBACKGROUNDSKINDIALOG_H
#define TTK_MODULE_EXPORT
The class of the remote background widget.
MusicBackgroundDailyWidget * m_dailyBackgroundList
The class of the local background widget.
The class of the daily background widget.
MusicBackgroundListWidget * m_cacheBackgroundList
Ui::MusicBackgroundSkinDialog * m_ui
The class of the background list widget.
QList< int > TTKIntList
Definition: ttkqtglobal.h:188
const char * name
Definition: http_parser.c:458
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
The class of the moving dialog base.
MusicBackgroundOnlineWidget * m_onlineBackgroundList
The class of the online background widget.
state
Definition: http_parser.c:279
MusicBackgroundListWidget * m_stackBackgroundList