Sayonara Player
src
Gui
Utils
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
24
class
QString;
25
class
QStringList;
26
class
QIcon;
27
class
QPixmap;
28
class
QSize;
29
30
template
<
typename
T>
31
class
QList
;
32
33
34
namespace
Gui
35
{
40
namespace
Icons
41
{
42
47
enum
IconMode
48
{
49
Automatic,
50
ForceStdIcon,
51
ForceSayonaraIcon
52
};
53
58
enum
IconName
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,
78
LocalLibrary
,
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
131
void
changeTheme
();
132
133
QString defaultSystemTheme();
134
void
setDefaultSystemTheme(
const
QString& themeName);
135
}
136
}
137
138
#endif
QList
Definition:
EngineUtils.h:33
Gui::Icons::pixmap
QPixmap pixmap(IconName name, const QSize &size)
pixmap
Gui::Icons::changeTheme
void changeTheme()
change_theme
Gui::Icons::IconName
IconName
The IconName enum.
Definition:
Icons.h:59
LocalLibrary
Definition:
LocalLibrary.h:38
Gui::Icons::IconMode
IconMode
The IconMode enum.
Definition:
Icons.h:48
Gui::Icons::icon
QIcon icon(IconName name)
icon
Generated on Fri Jul 16 2021 00:00:00 for Sayonara Player by
1.8.20