Sayonara Player
Toggle main menu visibility
Loading...
Searching...
No Matches
src
Gui
Utils
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
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
namespace
Gui
34
{
35
enum
IconMode
36
{
37
Automatic,
38
ForceStdIcon,
39
ForceSayonaraIcon
40
};
41
42
enum
IconName
43
{
44
Append = 0,
// Playlist
45
AudioFile,
46
Backward,
47
Cd,
48
Cds,
49
Clear,
50
Close,
51
Delete,
52
Dynamic,
53
Edit,
54
Exit,
55
File,
56
FileManager,
57
Folder,
58
FolderOpen,
59
Forward,
60
Gapless,
61
Grid,
62
ImageFile,
63
Info,
64
LocalLibrary,
65
Lock,
66
Logo,
67
Lyrics,
68
New,
69
Next,
70
Open,
71
Pause,
72
Play,
73
PlayBorder,
74
PlaylistFile,
75
PlaySmall,
76
Preferences,
77
Previous,
78
Record,
79
Refresh,
80
Remove,
81
Rename,
82
Repeat1,
83
RepeatAll,
84
Save,
85
SaveAs,
86
Search,
87
Shuffle,
88
Shutdown,
89
Star,
90
StarDisabled,
91
Stop,
92
Table,
93
ToolDisabled,
94
ToolGrey,
95
ToolDarkGrey,
96
Undo,
97
Unlock,
98
Vol1,
99
Vol2,
100
Vol3,
101
VolMute
102
};
103
104
QIcon icon(IconName iconName);
105
QIcon icon(IconName iconName, IconMode mode);
106
107
QPixmap pixmap(IconName iconName);
108
QPixmap pixmap(IconName iconName,
const
QSize& size);
109
QPixmap pixmap(IconName iconName,
const
QSize& size,
bool
keepAspectRatio);
110
QPixmap pixmap(IconName iconName,
const
QSize& size, IconMode mode,
bool
keepAspectRatio);
111
112
void
changeTheme();
113
114
QString defaultSystemTheme();
115
void
setDefaultSystemTheme(
const
QString& themeName);
116
}
117
118
#endif
QList
Definition
EngineUtils.h:33
Generated on
for Sayonara Player by
1.17.0