summaryrefslogtreecommitdiff
path: root/src/gui/windows/registerdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-16 12:22:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-16 12:28:10 +0300
commit0d73f54f842a9690c65faedf094112017fd07430 (patch)
treeca009ae0b366a95ad9c0fef1fa518ad60f8dbac2 /src/gui/windows/registerdialog.cpp
parent85e89895c4f7a53721a6bd93b47a79d5537d263a (diff)
downloadManaVerse-0d73f54f842a9690c65faedf094112017fd07430.tar.gz
ManaVerse-0d73f54f842a9690c65faedf094112017fd07430.tar.bz2
ManaVerse-0d73f54f842a9690c65faedf094112017fd07430.tar.xz
ManaVerse-0d73f54f842a9690c65faedf094112017fd07430.zip
move actionevent into events directory.
Diffstat (limited to 'src/gui/windows/registerdialog.cpp')
-rw-r--r--src/gui/windows/registerdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/windows/registerdialog.cpp b/src/gui/windows/registerdialog.cpp
index fd5ab8f5a..a89b09d5b 100644
--- a/src/gui/windows/registerdialog.cpp
+++ b/src/gui/windows/registerdialog.cpp
@@ -54,7 +54,7 @@ void WrongDataNoticeListener::setTarget(TextField *const textField)
mTarget = textField;
}
-void WrongDataNoticeListener::action(const gcn::ActionEvent &event)
+void WrongDataNoticeListener::action(const ActionEvent &event)
{
if (event.getId() == "ok" && mTarget)
mTarget->requestFocus();
@@ -172,7 +172,7 @@ RegisterDialog::~RegisterDialog()
mWrongDataNoticeListener = nullptr;
}
-void RegisterDialog::action(const gcn::ActionEvent &event)
+void RegisterDialog::action(const ActionEvent &event)
{
const std::string &eventId = event.getId();
if (eventId == "cancel")
@@ -292,12 +292,12 @@ void RegisterDialog::keyPressed(gcn::KeyEvent &keyEvent)
&keyEvent)->getActionId();
if (actionId == static_cast<int>(Input::KEY_GUI_CANCEL))
{
- action(gcn::ActionEvent(nullptr, mCancelButton->getActionEventId()));
+ action(ActionEvent(nullptr, mCancelButton->getActionEventId()));
}
else if (actionId == static_cast<int>(Input::KEY_GUI_SELECT)
|| actionId == static_cast<int>(Input::KEY_GUI_SELECT2))
{
- action(gcn::ActionEvent(nullptr, mRegisterButton->getActionEventId()));
+ action(ActionEvent(nullptr, mRegisterButton->getActionEventId()));
}
else
{