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 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 Vol1,
108 Vol2,
109 Vol3,
110 VolMute
111 };
112
118 QIcon icon(IconName name);
119 QIcon icon(IconName name, IconMode mode);
120
126 QPixmap pixmap(IconName name, const QSize& size);
127 QPixmap pixmap(IconName name, const QSize& size, IconMode mode);
128
133
134 QString defaultSystemTheme();
135 void setDefaultSystemTheme(const QString& themeName);
136 }
137}
138
139#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