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/CoinListGroupModel.cpp | 38 +++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'sigmodr/models/CoinListGroupModel.cpp') diff --git a/sigmodr/models/CoinListGroupModel.cpp b/sigmodr/models/CoinListGroupModel.cpp index f884a4ad..9fa5a714 100644 --- a/sigmodr/models/CoinListGroupModel.cpp +++ b/sigmodr/models/CoinListGroupModel.cpp @@ -21,9 +21,9 @@ // Model includes #include "CoinListModel.h" -// Pokemod includes -#include "../../pokemod/CoinList.h" -#include "../../pokemod/Pokemod.h" +// Sigmod includes +#include "../../sigmod/CoinList.h" +#include "../../sigmod/Sigmod.h" // Qt includes #include @@ -31,31 +31,31 @@ // KDE includes #include -Pokemodr::CoinListGroupModel::CoinListGroupModel(BaseModel* parent, Pokemod::Pokemod* pokemod) : - GroupModel(parent, pokemod, "Coin Lists") +Sigmodr::CoinListGroupModel::CoinListGroupModel(BaseModel* parent, Sigmod::Sigmod* sigmod) : + GroupModel(parent, sigmod, "Coin Lists") { - for (int i = 0; i < pokemod->coinListCount(); ++i) - addObject(pokemod->coinList(i)); + for (int i = 0; i < sigmod->coinListCount(); ++i) + addObject(sigmod->coinList(i)); } -Pokemodr::CoinListGroupModel::~CoinListGroupModel() +Sigmodr::CoinListGroupModel::~CoinListGroupModel() { } -QVariant Pokemodr::CoinListGroupModel::data(const int role) const +QVariant Sigmodr::CoinListGroupModel::data(const int role) const { - if (role == Pokemodr::BaseModel::ContextMenuRole) + if (role == Sigmodr::BaseModel::ContextMenuRole) { KMenu* menu = new KMenu; menu->addAction("&Add Coin List", this, SLOT(addObject())); return QVariant::fromValue(menu); } - return Pokemodr::GroupModel::data(role); + return Sigmodr::GroupModel::data(role); } -bool Pokemodr::CoinListGroupModel::setData(const QVariant& value, int role) +bool Sigmodr::CoinListGroupModel::setData(const QVariant& value, int role) { - if (role == Pokemodr::BaseModel::XmlRole) + if (role == Sigmodr::BaseModel::XmlRole) { if (value.canConvert()) { @@ -65,7 +65,7 @@ bool Pokemodr::CoinListGroupModel::setData(const QVariant& value, int role) { if (xml.doctype().name() == "CoinList") { - addObject(qobject_cast(m_object)->newCoinList(xml.documentElement())); + addObject(qobject_cast(m_object)->newCoinList(xml.documentElement())); return true; } file.close(); @@ -75,20 +75,20 @@ bool Pokemodr::CoinListGroupModel::setData(const QVariant& value, int role) return false; } -void Pokemodr::CoinListGroupModel::addObject(Pokemod::Object* object) +void Sigmodr::CoinListGroupModel::addObject(Sigmod::Object* object) { if (!object) - object = qobject_cast(m_object)->newCoinList(); + object = qobject_cast(m_object)->newCoinList(); if (object->className() == "CoinList") - m_objects.append(new CoinListModel(this, qobject_cast(object))); + m_objects.append(new CoinListModel(this, qobject_cast(object))); } -void Pokemodr::CoinListGroupModel::deleteObject(BaseObjectModel* model) +void Sigmodr::CoinListGroupModel::deleteObject(BaseObjectModel* model) { const int index = m_objects.indexOf(model); if (0 <= index) { - qobject_cast(m_object)->deleteCoinList(index); + qobject_cast(m_object)->deleteCoinList(index); m_objects[index]->deleteLater(); m_objects.removeAt(index); } -- cgit