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 
24 class QString;
25 class QStringList;
26 class QIcon;
27 class QPixmap;
28 
29 template <typename T>
30 class QList;
31 
32 
33 namespace Gui
34 {
39  namespace Icons
40  {
41 
46  enum IconMode
47  {
48  Automatic,
49  ForceStdIcon,
50  ForceSayonaraIcon
51  };
52 
57  enum IconName
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  Lyrics,
79  New,
80  Next,
81  Open,
82  Pause,
83  Play,
84  PlayBorder,
85  PlaylistFile,
86  PlaySmall,
87  Preferences,
88  Previous,
89  Record,
90  Refresh,
91  Remove,
92  Rename,
93  Repeat1,
94  RepeatAll,
95  Save,
96  SaveAs,
97  Search,
98  Shuffle,
99  Shutdown,
100  Star,
101  StarDisabled,
102  Stop,
103  Table,
104  Undo,
105  Vol1,
106  Vol2,
107  Vol3,
108  VolMute
109  };
110 
116  QIcon icon(IconName name);
117  QIcon icon(IconName name, IconMode mode);
118 
124  QPixmap pixmap(IconName name);
125  QPixmap pixmap(IconName name, IconMode mode);
126 
131  void setStandardTheme(const QString& name);
132 
137  QString standardTheme();
138 
143  void forceStandardIcons(bool b);
144 
148  void changeTheme();
149  }
150 }
151 
152 #endif
void setStandardTheme(const QString &name)
set_standard_theme
void forceStandardIcons(bool b)
force_standard_icons
void changeTheme()
change_theme
QPixmap pixmap(IconName name)
pixmap
QIcon icon(IconName name)
icon
Definition: LocalLibrary.h:35
IconName
The IconName enum.
Definition: Icons.h:57
QString standardTheme()
standard_theme
IconMode
The IconMode enum.
Definition: Icons.h:46
Definition: EngineUtils.h:33