Sayonara Player
Loading...
Searching...
No Matches
Icons.h
1/* Icons.h */
2
3/* Copyright (C) 2011-2024 Michael Lugmair (Lucio Carreras)
4 *
5 * This file is part of sayonara player
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef ICON_LOADER_H_
22#define ICON_LOADER_H_
23
24class QString;
25class QStringList;
26class QIcon;
27class QPixmap;
28class QSize;
29
30template<typename T>
31class QList;
32
33namespace Gui
34{
39 namespace Icons
40 {
41
47 {
48 Automatic,
49 ForceStdIcon,
50 ForceSayonaraIcon
51 };
52
58 {
59 Append = 0, // Playlist
60 AudioFile,
61 Backward,
62 Clear,
63 Close,
64 Delete,
65 Dynamic,
66 Edit,
67 Exit,
68 File,
69 FileManager,
70 Folder,
71 FolderOpen,
72 Forward,
73 Gapless,
74 Grid,
75 ImageFile,
76 Info,
78 Lock,
79 Logo,
80 Lyrics,
81 New,
82 Next,
83 Open,
84 Pause,
85 Play,
86 PlayBorder,
87 PlaylistFile,
88 PlaySmall,
89 Preferences,
90 Previous,
91 Record,
92 Refresh,
93 Remove,
94 Rename,
95 Repeat1,
96 RepeatAll,
97 Save,
98 SaveAs,
99 Search,
100 Shuffle,
101 Shutdown,
102 Star,
103 StarDisabled,
104 Stop,
105 Table,
106 Undo,
107 Unlock,
108 Vol1,
109 Vol2,
110 Vol3,
111 VolMute
112 };
113
119 QIcon icon(IconName name);
120 QIcon icon(IconName name, IconMode mode);
121
127 QPixmap pixmap(IconName name, const QSize& size);
128 QPixmap pixmap(IconName name, const QSize& size, IconMode mode);
129
134
135 QString defaultSystemTheme();
136 void setDefaultSystemTheme(const QString& themeName);
137 }
138}
139
140#endif
Definition LocalLibrary.h:38
Definition EngineUtils.h:33
Definition Shutdown.h:33
IconName
The IconName enum.
Definition Icons.h:58
IconMode
The IconMode enum.
Definition Icons.h:47
QPixmap pixmap(IconName name, const QSize &size)
pixmap
void changeTheme()
change_theme
QIcon icon(IconName name)
icon