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/StoreUI.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'sigmodr/StoreUI.cpp') diff --git a/sigmodr/StoreUI.cpp b/sigmodr/StoreUI.cpp index 38eb9883..28132186 100644 --- a/sigmodr/StoreUI.cpp +++ b/sigmodr/StoreUI.cpp @@ -18,64 +18,64 @@ // Header include #include "StoreUI.h" -// Pokemod includes -#include "../pokemod/Item.h" -#include "../pokemod/Pokemod.h" -#include "../pokemod/Store.h" +// Sigmod includes +#include "../sigmod/Item.h" +#include "../sigmod/Sigmod.h" +#include "../sigmod/Store.h" -Pokemodr::StoreUI::StoreUI(Pokemod::Store* store, QWidget* parent) : +Sigmodr::StoreUI::StoreUI(Sigmod::Store* store, QWidget* parent) : ObjectUI(parent) { setupUi(this); - setObjects(store, new Pokemod::Store(*store)); + setObjects(store, new Sigmod::Store(*store)); } -Pokemodr::StoreUI::~StoreUI() +Sigmodr::StoreUI::~StoreUI() { } -void Pokemodr::StoreUI::refreshGui() +void Sigmodr::StoreUI::refreshGui() { varItems->clear(); - for (int i = 0; i < pokemod()->itemCount(); ++i) + for (int i = 0; i < sigmod()->itemCount(); ++i) { - const Pokemod::Item* item = pokemod()->item(i); + const Sigmod::Item* item = sigmod()->item(i); QListWidgetItem* widgetItem = new QListWidgetItem(item->name(), varItems); widgetItem->setData(Qt::UserRole, item->id()); } } -void Pokemodr::StoreUI::setGui() +void Sigmodr::StoreUI::setGui() { - varName->setText(qobject_cast(modified())->name()); + varName->setText(qobject_cast(modified())->name()); for (int i = 0; i < varItems->count(); ++i) { QListWidgetItem* widgetItem = varItems->item(i); - widgetItem->setSelected(qobject_cast(modified())->item(widgetItem->data(Qt::UserRole).toInt())); + widgetItem->setSelected(qobject_cast(modified())->item(widgetItem->data(Qt::UserRole).toInt())); } } -void Pokemodr::StoreUI::apply() +void Sigmodr::StoreUI::apply() { - *qobject_cast(original()) = *qobject_cast(modified()); + *qobject_cast(original()) = *qobject_cast(modified()); emit(changed(false)); } -void Pokemodr::StoreUI::discard() +void Sigmodr::StoreUI::discard() { - *qobject_cast(modified()) = *qobject_cast(original()); + *qobject_cast(modified()) = *qobject_cast(original()); setGui(); emit(changed(false)); } -void Pokemodr::StoreUI::on_varName_textChanged(const QString& name) +void Sigmodr::StoreUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); - qobject_cast(modified())->setName(name); + qobject_cast(modified())->setName(name); varName->setCursorPosition(cursor); } -void Pokemodr::StoreUI::on_varItems_itemClicked(QListWidgetItem* item) +void Sigmodr::StoreUI::on_varItems_itemClicked(QListWidgetItem* item) { - qobject_cast(modified())->setItem(item->data(Qt::UserRole).toInt(), item->isSelected()); + qobject_cast(modified())->setItem(item->data(Qt::UserRole).toInt(), item->isSelected()); } -- cgit