Sayonara Player
Icons.h
1 /* Icons.h */
2 
3 /* Copyright (C) 2011-2017 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  enum IconMode
42  {
43  Automatic,
44  ForceStdIcon,
45  ForceSayonaraIcon
46  };
47 
48  enum IconName
49  {
50  Append=0, // Playlist
51  AudioFile,
52  Backward,
53  Clear,
54  Close,
55  Delete,
56  Dynamic,
57  Edit,
58  Exit,
59  File,
60  FileManager,
61  Folder,
62  FolderOpen,
63  FolderVisiting,
64  Forward,
65  Gapless,
66  Image,
67  ImageFile,
68  Info,
70  Lyrics,
71  New,
72  Next,
73  Open,
74  Pause,
75  Play,
76  PlayBorder,
77  PlaylistFile,
78  PlaySmall,
79  Preferences,
80  Previous,
81  Record,
82  Refresh,
83  Remove,
84  Rename,
85  Repeat1,
86  RepeatAll,
87  Save,
88  SaveAs,
89  Search,
90  Shuffle,
91  Shutdown,
92  Star,
93  StarDisabled,
94  Stop,
95  Table,
96  Undo,
97  Vol1,
98  Vol2,
99  Vol3,
100  VolMute
101  };
102 
103  QIcon icon(IconName name);
104  QIcon icon(IconName name, IconMode mode);
105 
106  QPixmap pixmap(IconName name);
107  QPixmap pixmap(IconName name, IconMode mode);
108 
109  void set_standard_theme(const QString& name);
110  QString standard_theme();
111 
112  void force_standard_icons(bool b);
113 
114  void change_theme();
115  }
116 }
117 
118 #endif
Definition: LocalLibrary.h:35
Definition: Lyrics.h:34
Definition: org_mpris_media_player2_adaptor.h:20