diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-09-06 04:12:30 +0000 |
| commit | 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 (patch) | |
| tree | a2031b9d0016fcbd49a51c0d1a2292d1f2d8b566 /sigscript/SoundWrapper.cpp | |
| parent | b81f5bffa2772eb9bd3c67fb35485ab1ee2d96e7 (diff) | |
| download | sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.gz sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.tar.xz sigen-0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9.zip | |
[FIX] Renamed everything (in use) away from Poké- prefixes
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'sigscript/SoundWrapper.cpp')
| -rw-r--r-- | sigscript/SoundWrapper.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sigscript/SoundWrapper.cpp b/sigscript/SoundWrapper.cpp index ebecdfc2..0e48d5cc 100644 --- a/sigscript/SoundWrapper.cpp +++ b/sigscript/SoundWrapper.cpp @@ -18,8 +18,8 @@ // Header include #include "SoundWrapper.h" -// Pokescripting includes -#include "PokemodWrapper.h" +// Sigscript includes +#include "SigmodWrapper.h" // Qt includes #include <QtCore/QBuffer> @@ -28,39 +28,39 @@ #include <Phonon/MediaObject> #include <Phonon/MediaSource> -Pokescripting::SoundWrapper* Pokescripting::SoundWrapper::create(const Pokemod::Sound* sound, PokemodWrapper* parent) +Sigscript::SoundWrapper* Sigscript::SoundWrapper::create(const Sigmod::Sound* sound, SigmodWrapper* parent) { if (!m_instances.contains(Signiture(parent, sound->id()))) m_instances[Signiture(parent, sound->id())] = new SoundWrapper(sound, parent); return qobject_cast<SoundWrapper*>(m_instances[Signiture(parent, sound->id())]); } -Pokescripting::SoundWrapper::SoundWrapper(const Pokemod::Sound* sound, PokemodWrapper* parent) : +Sigscript::SoundWrapper::SoundWrapper(const Sigmod::Sound* sound, SigmodWrapper* parent) : ObjectWrapper(sound, parent), m_sound(sound) { } -Pokemod::Sound::Type Pokescripting::SoundWrapper::type(const QString& name) const +Sigmod::Sound::Type Sigscript::SoundWrapper::type(const QString& name) const { if (name == "Sound Effect") - return Pokemod::Sound::SoundEffect; + return Sigmod::Sound::SoundEffect; else if (name == "Music") - return Pokemod::Sound::Music; - return QVariant(-1).value<Pokemod::Sound::Type>(); + return Sigmod::Sound::Music; + return QVariant(-1).value<Sigmod::Sound::Type>(); } -QString Pokescripting::SoundWrapper::name() const +QString Sigscript::SoundWrapper::name() const { return m_sound->name(); } -Pokemod::Sound::Type Pokescripting::SoundWrapper::type() const +Sigmod::Sound::Type Sigscript::SoundWrapper::type() const { return m_sound->type(); } -Phonon::MediaObject* Pokescripting::SoundWrapper::audio() +Phonon::MediaObject* Sigscript::SoundWrapper::audio() { Phonon::MediaObject* media = new Phonon::MediaObject(this); QBuffer* buffer = new QBuffer(media); |
