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  Forward,
64  Gapless,
65  ImageFile,
66  Info,
68  Lyrics,
69  New,
70  Next,
71  Open,
72  Pause,
73  Play,
74  PlayBorder,
75  PlaylistFile,
76  PlaySmall,
78  Previous,
79  Record,
80  Refresh,
81  Remove,
82  Rename,
83  Repeat1,
84  RepeatAll,
85  Save,
86  SaveAs,
87  Search,
88  Shuffle,
89  Shutdown,
90  Star,
91  StarDisabled,
92  Stop,
93  Table,
94  Undo,
95  Vol1,
96  Vol2,
97  Vol3,
98  VolMute
99  };
100 
101  QIcon icon(IconName name);
102  QIcon icon(IconName name, IconMode mode);
103 
104  QPixmap pixmap(IconName name);
105  QPixmap pixmap(IconName name, IconMode mode);
106 
107  void set_standard_theme(const QString& name);
108  QString standard_theme();
109 
110  void force_standard_icons(bool b);
111 
112  void change_theme();
113  }
114 }
115 
116 #endif
Definition: GUI_ControlsBase.h:43
Definition: LocalLibrary.h:35
Definition: Lyrics.h:30
Definition: GUI_PreferenceDialog.h:28
Definition: org_mpris_media_player2_adaptor.h:20