Sayonara Player
Language.h
1 /* Language.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 LANGUAGE_H
22 #define LANGUAGE_H
23 
24 #include <QObject>
25 
26 class LanguageString : public QString
27 {
28 public:
29  LanguageString(const QString& str);
30  LanguageString toFirstUpper() const;
31  LanguageString space() const;
32  LanguageString question() const;
33  LanguageString triplePt() const;
34 };
35 
36 class Lang :
37  public QObject
38 {
39  Q_OBJECT
40 
41 public:
42  enum Term
43  {
44  About=0,
45  Action,
46  Actions,
47  Activate,
48  Active,
49  AddTab,
50  Album,
51  AlbumArtists,
52  Albums,
53  All,
54  Append,
56  Apply,
57  Artist,
58  Artists,
59  Ascending,
60  Automatic,
61  Bitrate,
62  Bookmarks,
63  Broadcast,
64  By,
65  Cancel,
66  CannotFindLame,
67  Continue,
68  Covers,
69  Clear,
70  Close,
71  CloseOthers,
72  CloseTab,
73  Date,
74  Days,
75  DaysShort,
76  Default,
77  Delete,
78  Descending,
79  Directory,
80  Directories,
81  Duration,
82  DurationShort,
83  DynamicPlayback,
84  Edit,
85  EmptyInput,
86  EnterName,
87  EnterUrl,
88  Entries,
89  Entry,
90  Error,
91  Fast,
92  File,
93  Filename,
94  Files,
95  Filesize,
96  First,
97  Font,
98  Fonts,
99  Fulltext,
100  GaplessPlayback,
101  Genre,
102  Genres,
103  Hours,
104  HoursShort,
105  ImportDir,
106  ImportFiles,
107  Inactive,
108  Info,
109  InvalidChars,
110  Library,
111  LibraryPath,
112  Listen,
113  Loading,
114  LoadingArg,
115  Logger,
116  Lyrics,
117  Menu,
118  Minutes,
119  MinutesShort,
120  Missing,
121  Months,
122  MoveDown,
123  MoveUp,
124  MuteOn,
125  MuteOff,
126  Name,
127  New,
128  NextTrack,
129  No,
130  None,
131  NumTracks,
132  OK,
133  On,
134  Open,
135  OpenDir,
136  OpenFile,
137  Or,
138  Overwrite,
139  Pause,
140  Play,
141  PlayPause,
142  PlayingTime,
143  Playlist,
144  Playlists,
145  PlayNext,
146  Preferences,
147  PreviousTrack,
148  Quit,
149  Radio,
150  RadioStation,
151  Rating,
152  Really,
153  Refresh,
154  ReloadLibrary,
155  Remove,
156  Rename,
157  Repeat1,
158  RepeatAll,
159  Reset,
160  Retry,
161  Sampler,
162  Save,
163  SaveAs,
164  SaveToFile,
165  SearchNoun,
166  SearchVerb,
167  SearchNext,
168  Second,
169  Seconds,
170  SecondsShort,
171  SeekForward,
172  SeekBackward,
173  Show,
174  ShowAlbumArtists,
175  Shuffle,
176  Shutdown,
178  SortBy,
179  Stop,
180  StreamUrl,
181  Success,
182  Th,
183  Third,
184  Title,
185  Track,
186  TrackOn,
187  TrackNo,
188  Tracks,
189  Tree,
190  Undo,
191  UnknownPlaceholder,
192  Various,
193  VariousAlbums,
194  VariousArtists,
195  VariousTracks,
196  Version,
197  VolumeDown,
198  VolumeUp,
199  Warning,
200  Weeks,
201  Year,
202  Years,
203  Yes,
204  Zoom,
205  NUMBER_OF_LANGUAGE_KEYS
206  };
207 
208 public:
209  Lang();
210  ~Lang();
211 
212  static LanguageString get(Lang::Term term, bool* ok=nullptr);
213 };
214 
215 #endif // LANGUAGE_H
The Logger class.
Definition: Logger.h:67
Definition: Language.h:26
Definition: Lyrics.h:34
Definition: Application.h:30
Definition: GUI_PreferenceDialog.h:29
Definition: SimilarArtists.h:30
Definition: Language.h:36
Definition: Genre.h:27
The Album class.
Definition: Album.h:38
An interface class needed when implementing a library plugin.
Definition: LibraryManager.h:36
The Artist class.
Definition: Artist.h:35
The Bookmarks logic class.
Definition: Bookmarks.h:37
Definition: AbstractPlaylist.h:42