From 60a2ed8ee8aa994c83d382af2ec477e171beb950 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 9 Jun 2008 00:50:59 +0000 Subject: [FIX] All modules now use their own namespace git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@201 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/CoinListUI.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'pokemodr/CoinListUI.cpp') diff --git a/pokemodr/CoinListUI.cpp b/pokemodr/CoinListUI.cpp index 72450e5a..52039433 100644 --- a/pokemodr/CoinListUI.cpp +++ b/pokemodr/CoinListUI.cpp @@ -22,44 +22,44 @@ #include "../pokemod/CoinList.h" #include "../pokemod/Pokemod.h" -CoinListUI::CoinListUI(CoinList* coinList, QWidget* parent) : +Pokemodr::CoinListUI::CoinListUI(Pokemod::CoinList* coinList, QWidget* parent) : ObjectUI(parent) { setupUi(this); - setObjects(coinList, new CoinList(*coinList)); + setObjects(coinList, new Pokemod::CoinList(*coinList)); } -CoinListUI::~CoinListUI() +Pokemodr::CoinListUI::~CoinListUI() { } -void CoinListUI::setGui() +void Pokemodr::CoinListUI::setGui() { - varName->setText(static_cast(modified())->name()); - varScript->setValue(static_cast(modified())->script()); + varName->setText(static_cast(modified())->name()); + varScript->setValue(static_cast(modified())->script()); } -void CoinListUI::apply() +void Pokemodr::CoinListUI::apply() { - *static_cast(original()) = *static_cast(modified()); + *static_cast(original()) = *static_cast(modified()); emit(changed(false)); } -void CoinListUI::discard() +void Pokemodr::CoinListUI::discard() { - *static_cast(modified()) = *static_cast(original()); + *static_cast(modified()) = *static_cast(original()); setGui(); emit(changed(false)); } -void CoinListUI::on_varName_textChanged(const QString& name) +void Pokemodr::CoinListUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); - static_cast(modified())->setName(name); + static_cast(modified())->setName(name); varName->setCursorPosition(cursor); } -void CoinListUI::on_varScript_valueChanged(const Script& script) +void Pokemodr::CoinListUI::on_varScript_valueChanged(const Pokemod::Script& script) { - static_cast(modified())->setScript(script); + static_cast(modified())->setScript(script); } -- cgit