Sayonara Player
Icons.h
1/* Icons.h */
2
3/* Copyright (C) 2011-2020 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
33
34namespace Gui
35{
40 namespace Icons
41 {
42
48 {
49 Automatic,
50 ForceStdIcon,
51 ForceSayonaraIcon
52 };
53
59 {
60 Append=0, // Playlist
61 AudioFile,
62 Backward,
63 Clear,
64 Close,
65 Delete,
66 Dynamic,
67 Edit,
68 Exit,
69 File,
70 FileManager,
71 Folder,
72 FolderOpen,
73 Forward,
74 Gapless,
75 Grid,
76 ImageFile,
77 Info,
79 Lyrics,
80 New,
81 Next,
82 Open,
83 Pause,
84 Play,
85 PlayBorder,
86 PlaylistFile,
87 PlaySmall,
88 Preferences,
89 Previous,
90 Record,
91 Refresh,
92 Remove,
93 Rename,
94 Repeat1,
95 RepeatAll,
96 Save,
97 SaveAs,
98 Search,
99 Shuffle,
100 Shutdown,
101 Star,
102 StarDisabled,
103 Stop,
104 Table,
105 Undo,
106 Vol1,
107 Vol2,
108 Vol3,
109 VolMute
110 };
111
117 QIcon icon(IconName name);
118 QIcon icon(IconName name, IconMode mode);
119
125 QPixmap pixmap(IconName name, const QSize& size);
126 QPixmap pixmap(IconName name, const QSize& size, IconMode mode);
127
132
133 QString defaultSystemTheme();
134 void setDefaultSystemTheme(const QString& themeName);
135 }
136}
137
138#endif
Definition: LocalLibrary.h:38
Definition: EngineUtils.h:33
IconName
The IconName enum.
Definition: Icons.h:59
IconMode
The IconMode enum.
Definition: Icons.h:48
QPixmap pixmap(IconName name, const QSize &size)
pixmap
void changeTheme()
change_theme
QIcon icon(IconName name)
icon