diff options
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); } |
