Sayonara Player
Icons.h
1 /* Icons.h */
2 
3 /* Copyright (C) 2011-2019 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  ImageFile,
75  Info,
77  Lyrics,
78  New,
79  Next,
80  Open,
81  Pause,
82  Play,
83  PlayBorder,
84  PlaylistFile,
85  PlaySmall,
87  Previous,
88  Record,
89  Refresh,
90  Remove,
91  Rename,
92  Repeat1,
93  RepeatAll,
94  Save,
95  SaveAs,
96  Search,
97  Shuffle,
98  Shutdown,
99  Star,
100  StarDisabled,
101  Stop,
102  Table,
103  Undo,
104  Vol1,
105  Vol2,
106  Vol3,
107  VolMute
108  };
109 
115  QIcon icon(IconName name);
116  QIcon icon(IconName name, IconMode mode);
117 
123  QPixmap pixmap(IconName name);
124  QPixmap pixmap(IconName name, IconMode mode);
125 
130  void set_standard_theme(const QString& name);
131 
136  QString standard_theme();
137 
142  void force_standard_icons(bool b);
143 
147  void change_theme();
148  }
149 }
150 
151 #endif
QPixmap pixmap(IconName name)
pixmap
QIcon icon(IconName name)
icon
Definition: AbstractLibrary.h:36
void force_standard_icons(bool b)
force_standard_icons
Definition: LocalLibrary.h:35
IconName
The IconName enum.
Definition: Icons.h:57
QString standard_theme()
standard_theme
Definition: PreferenceAction.h:29
void set_standard_theme(const QString &name)
set_standard_theme
void change_theme()
change_theme
IconMode
The IconMode enum.
Definition: Icons.h:46
Definition: LyricLookup.h:36
Definition: EngineUtils.h:33