From cd9396d859cbba795c945796a6a0790a6c5c00a3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 23 Feb 2009 20:24:14 -0500 Subject: Moved the sources into the Widgets namespace --- sigmodr/widgets/CoinListUI.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sigmodr/widgets/CoinListUI.cpp') diff --git a/sigmodr/widgets/CoinListUI.cpp b/sigmodr/widgets/CoinListUI.cpp index 102a70ed..e35cce5e 100644 --- a/sigmodr/widgets/CoinListUI.cpp +++ b/sigmodr/widgets/CoinListUI.cpp @@ -22,44 +22,44 @@ #include #include -Sigmodr::CoinListUI::CoinListUI(Sigmod::CoinList* coinList, QWidget* parent) : +Sigmodr::Widgets::CoinListUI::CoinListUI(Sigmod::CoinList* coinList, QWidget* parent) : ObjectUI(parent) { setupUi(this); setObjects(coinList, new Sigmod::CoinList(*coinList)); } -Sigmodr::CoinListUI::~CoinListUI() +Sigmodr::Widgets::CoinListUI::~CoinListUI() { } -void Sigmodr::CoinListUI::setGui() +void Sigmodr::Widgets::CoinListUI::setGui() { varName->setText(qobject_cast(modified())->name()); varScript->setValue(qobject_cast(modified())->script()); } -void Sigmodr::CoinListUI::apply() +void Sigmodr::Widgets::CoinListUI::apply() { *qobject_cast(original()) = *qobject_cast(modified()); emit(changed(false)); } -void Sigmodr::CoinListUI::discard() +void Sigmodr::Widgets::CoinListUI::discard() { *qobject_cast(modified()) = *qobject_cast(original()); setGui(); emit(changed(false)); } -void Sigmodr::CoinListUI::on_varName_textChanged(const QString& name) +void Sigmodr::Widgets::CoinListUI::on_varName_textChanged(const QString& name) { const int cursor = varName->cursorPosition(); qobject_cast(modified())->setName(name); varName->setCursorPosition(cursor); } -void Sigmodr::CoinListUI::on_varScript_valueChanged(const Sigcore::Script& script) +void Sigmodr::Widgets::CoinListUI::on_varScript_valueChanged(const Sigcore::Script& script) { qobject_cast(modified())->setScript(script); } -- cgit