#include <GenreType.h>
|
static QString | name (int id, bool localized) |
|
static int | fromID3 (const QString &tag) |
|
static int | id (const QString &name) |
|
static QStringList | allTypes () |
|
|
static QMap< int, const char * > | m_map |
|
Definition at line 31 of file GenreType.h.
◆ GenreType()
Kwave::GenreType::GenreType |
( |
| ) |
|
|
private |
◆ ~GenreType()
virtual Kwave::GenreType::~GenreType |
( |
| ) |
|
|
inlinevirtual |
◆ allTypes()
QStringList Kwave::GenreType::allTypes |
( |
| ) |
|
|
static |
◆ fill()
void Kwave::GenreType::fill |
( |
| ) |
|
|
staticprotected |
fills the map if it is empty
Definition at line 90 of file GenreType.cpp.
References m_map.
Referenced by allTypes(), fromID3(), id(), and name().
92 if (
m_map.count())
return;
94 static const char *map[] = {
97 I18N_NOOP(
"Classic Rock"),
103 I18N_NOOP(
"Hip-Hop"),
106 I18N_NOOP(
"New Age"),
110 I18N_NOOP(
"Rhythm and Blues"),
115 I18N_NOOP(
"Industrial"),
116 I18N_NOOP(
"Alternative"),
118 I18N_NOOP(
"Death Metal"),
120 I18N_NOOP(
"Soundtrack"),
121 I18N_NOOP(
"Euro-Techno"),
122 I18N_NOOP(
"Ambient"),
123 I18N_NOOP(
"Trip-Hop"),
125 I18N_NOOP(
"Jazz & Funk"),
128 I18N_NOOP(
"Classical"),
129 I18N_NOOP(
"Instrumental"),
133 I18N_NOOP(
"Sound Clip"),
136 I18N_NOOP(
"Alternative Rock"),
141 I18N_NOOP(
"Meditative"),
142 I18N_NOOP(
"Instrumental Pop"),
143 I18N_NOOP(
"Instrumental Rock"),
146 I18N_NOOP(
"Darkwave"),
147 I18N_NOOP(
"Techno-Industrial"),
148 I18N_NOOP(
"Electronic"),
149 I18N_NOOP(
"Pop-Folk"),
150 I18N_NOOP(
"Eurodance"),
152 I18N_NOOP(
"Southern Rock"),
155 I18N_NOOP(
"Gangsta"),
157 I18N_NOOP(
"Christian Rap"),
158 I18N_NOOP(
"Pop/Funk"),
160 I18N_NOOP(
"Native American"),
161 I18N_NOOP(
"Cabaret"),
162 I18N_NOOP(
"New Wave"),
163 I18N_NOOP(
"Psychedelic"),
165 I18N_NOOP(
"Showtunes"),
166 I18N_NOOP(
"Trailer"),
169 I18N_NOOP(
"Acid Punk"),
170 I18N_NOOP(
"Acid Jazz"),
173 I18N_NOOP(
"Musical"),
174 I18N_NOOP(
"Rock 'n' Roll"),
175 I18N_NOOP(
"Hard Rock"),
179 I18N_NOOP(
"Folk-Rock"),
180 I18N_NOOP(
"National Folk"),
182 I18N_NOOP(
"Fast Fusion"),
185 I18N_NOOP(
"Revival"),
187 I18N_NOOP(
"Bluegrass"),
188 I18N_NOOP(
"Avantgarde"),
189 I18N_NOOP(
"Gothic Rock"),
190 I18N_NOOP(
"Progressive Rock"),
191 I18N_NOOP(
"Psychedelic Rock"),
192 I18N_NOOP(
"Symphonic Rock"),
193 I18N_NOOP(
"Slow Rock"),
194 I18N_NOOP(
"Big Band"),
196 I18N_NOOP(
"Easy Listening"),
197 I18N_NOOP(
"Acoustic"),
200 I18N_NOOP(
"Chanson"),
202 I18N_NOOP(
"Chamber Music"),
204 I18N_NOOP(
"Symphony"),
205 I18N_NOOP(
"Booty Bass"),
207 I18N_NOOP(
"Porn Groove"),
209 I18N_NOOP(
"Slow Jam"),
213 I18N_NOOP(
"Folklore"),
215 I18N_NOOP(
"Power Ballad"),
216 I18N_NOOP(
"Rhythmic Soul"),
217 I18N_NOOP(
"Freestyle"),
219 I18N_NOOP(
"Punk Rock"),
220 I18N_NOOP(
"Drum Solo"),
221 I18N_NOOP(
"A Cappella"),
222 I18N_NOOP(
"Euro-House"),
223 I18N_NOOP(
"Dance Hall"),
225 I18N_NOOP(
"Drum & Bass"),
226 I18N_NOOP(
"Club-House"),
227 I18N_NOOP(
"Hardcore Techno"),
230 I18N_NOOP(
"BritPop"),
231 I18N_NOOP(
"Negerpunk"),
232 I18N_NOOP(
"Polsk Punk"),
234 I18N_NOOP(
"Christian Gangsta Rap"),
235 I18N_NOOP(
"Heavy Metal"),
236 I18N_NOOP(
"Black Metal"),
237 I18N_NOOP(
"Crossover"),
238 I18N_NOOP(
"Contemporary Christian"),
239 I18N_NOOP(
"Christian Rock"),
242 I18N_NOOP(
"Merengue"),
244 I18N_NOOP(
"Thrash Metal"),
247 I18N_NOOP(
"SynthPop"),
250 I18N_NOOP(
"Abstract"),
251 I18N_NOOP(
"Art Rock"),
252 I18N_NOOP(
"Baroque"),
253 I18N_NOOP(
"Bhangra"),
254 I18N_NOOP(
"Big Beat"),
255 I18N_NOOP(
"Breakbeat"),
256 I18N_NOOP(
"Chillout"),
257 I18N_NOOP(
"Downtempo"),
260 I18N_NOOP(
"Eclectic"),
261 I18N_NOOP(
"Electro"),
262 I18N_NOOP(
"Electroclash"),
264 I18N_NOOP(
"Experimental"),
268 I18N_NOOP(
"Illbient"),
269 I18N_NOOP(
"Industro-Goth"),
270 I18N_NOOP(
"Jam Band"),
271 I18N_NOOP(
"Krautrock"),
272 I18N_NOOP(
"Leftfield"),
274 I18N_NOOP(
"Math Rock"),
275 I18N_NOOP(
"New Romantic"),
276 I18N_NOOP(
"Nu-Breakz"),
277 I18N_NOOP(
"Post-Punk"),
278 I18N_NOOP(
"Post-Rock"),
279 I18N_NOOP(
"Psytrance"),
280 I18N_NOOP(
"Shoegaze"),
281 I18N_NOOP(
"Space Rock"),
282 I18N_NOOP(
"Trop Rock"),
283 I18N_NOOP(
"World Music"),
284 I18N_NOOP(
"Neoclassical"),
285 I18N_NOOP(
"Audiobook"),
286 I18N_NOOP(
"Audio Theatre"),
287 I18N_NOOP(
"Neue Deutsche Welle"),
288 I18N_NOOP(
"Podcast"),
289 I18N_NOOP(
"Indie Rock"),
291 I18N_NOOP(
"Dubstep"),
292 I18N_NOOP(
"Garage Rock"),
293 I18N_NOOP(
"Psybient")
296 for (
unsigned int i = 0; i <
sizeof(map) /
sizeof(map[0]); ++i)
297 m_map.insert(i, map[i]);
299 m_map.insert( -1, I18N_NOOP(
"Unknown"));
static QMap< int, const char * > m_map
◆ fromID3()
int Kwave::GenreType::fromID3 |
( |
const QString & |
tag | ) |
|
|
static |
◆ id()
int Kwave::GenreType::id |
( |
const QString & |
name | ) |
|
|
static |
try to find the numeric id from the name
Definition at line 63 of file GenreType.cpp.
References _, fill(), and m_map.
Referenced by fromID3(), and Kwave::FileInfoDialog::setupContentTab().
66 QMap<int, const char *>::Iterator it;
67 for (it =
m_map.begin(); it !=
m_map.end(); ++it) {
68 if (!
_(it.value()).compare(
name, Qt::CaseInsensitive))
70 if (i18n(it.value()).compare(
name, Qt::CaseInsensitive) == 0)
static QString name(int id, bool localized)
static QMap< int, const char * > m_map
◆ name()
QString Kwave::GenreType::name |
( |
int |
id, |
|
|
bool |
localized |
|
) |
| |
|
static |
◆ m_map
QMap< int, const char * > Kwave::GenreType::m_map |
|
staticprivate |
The documentation for this class was generated from the following files: