TTKMusicPlayer  4.3.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 - 2026 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
39 public:
43  explicit MusicBackgroundSkinDialog(QWidget *parent = nullptr);
48 
52  static QPixmap setBackgroundUrl(QString &name);
56  static bool isValid(QString &name, QString &path);
60  static QString cpoyArtistFileToLocal(const QString &path);
61 
65  void updateArtistFileTheme(const QString &theme);
69  void setCurrentBackgroundTheme(const QString &theme, int background, int list);
70 
74  int backgroundListTransparent() const;
78  bool backgroundTransparentEnabled() const;
79 
83  void setSkinTransToolText(int value);
87  void setListTransToolText(int value);
88 
89 Q_SIGNALS:
93  void currentTextChanged(const QString &text);
94 
95 public Q_SLOTS:
99  void showPaletteDialog();
103  void showPaletteDialog(const QString &path);
107  void showCustomSkinDialog();
111  void backgroundListWidgetChanged(int index);
115  void classicalListWidgetItemClicked(int type, const QString &name);
119  void remoteListWidgetItemClicked(int type, const QString &name);
123  void currentColorChanged(const QString &path);
127  void windowTransparentChanged(bool state);
128 
129 private:
133  void listWidgetItemClicked(MusicBackgroundListWidget *item, const QString &name);
137  void listWidgetItemClicked(MusicBackgroundRemoteWidget *item, const QString &name);
141  void addThemeListWidgetItem();
145  void addThemeListWidgetItem(MusicBackgroundListWidget *item, const QString &dir, bool state);
149  void cpoyFileFromLocal(const QString &path);
150 
154  static void findThemeListByPath(const QString &dir, TTKIntList &items);
158  static int cpoyFileToLocalIndex();
162  static int cpoyFileToLocal(const QString &path);
163 
164  Ui::MusicBackgroundSkinDialog *m_ui;
170 
171 };
172 
173 #endif // MUSICBACKGROUNDSKINDIALOG_H
#define TTK_MODULE_EXPORT
The class of the remote background widget.
MusicBackgroundDailyWidget * m_dailyBackgroundList
bool isValid(const QString &data)
Definition: qdlna.cpp:76
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:200
const char * name
Definition: http_parser.c:458
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