diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-23 20:24:14 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-23 20:28:12 -0500 |
| commit | cd9396d859cbba795c945796a6a0790a6c5c00a3 (patch) | |
| tree | 7ee18954a884e430b685b64686d8985ecf6c9a86 /sigmodr/widgets/CoinListUI.cpp | |
| parent | 3479836bc56ed61f53ecd4aefa4a83a5378901a8 (diff) | |
| download | sigen-cd9396d859cbba795c945796a6a0790a6c5c00a3.tar.gz sigen-cd9396d859cbba795c945796a6a0790a6c5c00a3.tar.xz sigen-cd9396d859cbba795c945796a6a0790a6c5c00a3.zip | |
Moved the sources into the Widgets namespace
Diffstat (limited to 'sigmodr/widgets/CoinListUI.cpp')
| -rw-r--r-- | sigmodr/widgets/CoinListUI.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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 <sigmod/CoinList.h> #include <sigmod/Sigmod.h> -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<Sigmod::CoinList*>(modified())->name()); varScript->setValue(qobject_cast<Sigmod::CoinList*>(modified())->script()); } -void Sigmodr::CoinListUI::apply() +void Sigmodr::Widgets::CoinListUI::apply() { *qobject_cast<Sigmod::CoinList*>(original()) = *qobject_cast<Sigmod::CoinList*>(modified()); emit(changed(false)); } -void Sigmodr::CoinListUI::discard() +void Sigmodr::Widgets::CoinListUI::discard() { *qobject_cast<Sigmod::CoinList*>(modified()) = *qobject_cast<Sigmod::CoinList*>(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<Sigmod::CoinList*>(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<Sigmod::CoinList*>(modified())->setScript(script); } |
