From 0b4b89cf8efdc15e5a8d4b6cb24a5c8a025227d9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 6 Sep 2008 04:12:30 +0000 Subject: [FIX] Renamed everything (in use) away from Poké- prefixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@250 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- sigmodr/models/SoundModel.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'sigmodr/models/SoundModel.cpp') diff --git a/sigmodr/models/SoundModel.cpp b/sigmodr/models/SoundModel.cpp index 3c2a6fc4..ef447018 100644 --- a/sigmodr/models/SoundModel.cpp +++ b/sigmodr/models/SoundModel.cpp @@ -21,12 +21,12 @@ // Model includes #include "GroupModel.h" -// Pokemodr includes +// Sigmodr includes #include "../SoundUI.h" -// Pokemod includes -#include "../../pokemod/Sound.h" -#include "../../pokemod/Pokemod.h" +// Sigmod includes +#include "../../sigmod/Sound.h" +#include "../../sigmod/Sigmod.h" // Qt includes #include @@ -34,42 +34,42 @@ // KDE includes #include -Pokemodr::SoundModel::SoundModel(BaseModel* parent, Pokemod::Sound* sound) : +Sigmodr::SoundModel::SoundModel(BaseModel* parent, Sigmod::Sound* sound) : ObjectModel(parent, sound) { } -Pokemodr::SoundModel::~SoundModel() +Sigmodr::SoundModel::~SoundModel() { } -QVariant Pokemodr::SoundModel::data(int role) const +QVariant Sigmodr::SoundModel::data(int role) const { if (role == Qt::DisplayRole) - return qobject_cast(m_object)->name(); - else if (role == Pokemodr::BaseModel::XmlRole) + return qobject_cast(m_object)->name(); + else if (role == Sigmodr::BaseModel::XmlRole) { QDomDocument xml(m_object->className()); xml.appendChild(m_object->save()); return xml.toString(); } - else if (role == Pokemodr::BaseModel::WidgetRole) + else if (role == Sigmodr::BaseModel::WidgetRole) { - QWidget* widget = new SoundUI(qobject_cast(m_object), NULL); + QWidget* widget = new SoundUI(qobject_cast(m_object), NULL); return QVariant::fromValue(widget); } - else if (role == Pokemodr::BaseModel::ContextMenuRole) + else if (role == Sigmodr::BaseModel::ContextMenuRole) { KMenu* menu = new KMenu; menu->addAction("&Delete Sound", this, SLOT(deleteSelf())); return QVariant::fromValue(menu); } - return Pokemodr::ObjectModel::data(role); + return Sigmodr::ObjectModel::data(role); } -bool Pokemodr::SoundModel::setData(const QVariant& value, int role) +bool Sigmodr::SoundModel::setData(const QVariant& value, int role) { - if (role == Pokemodr::BaseModel::XmlRole) + if (role == Sigmodr::BaseModel::XmlRole) { if (value.canConvert()) { @@ -89,7 +89,7 @@ bool Pokemodr::SoundModel::setData(const QVariant& value, int role) return false; } -void Pokemodr::SoundModel::deleteSelf() +void Sigmodr::SoundModel::deleteSelf() { // qobject_cast(m_parent)->deleteObject(this); } -- cgit