diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-18 19:47:28 +0300 |
commit | 7da95c7f4da447876458a0b1a17736b9a2865844 (patch) | |
tree | 4b6ac0ab5bc32a11234a5363de95d0cfec8cb7d5 /src/gui/windows/serverdialog.cpp | |
parent | 515ce6c1413b5e3da131f3e4997abdc39c003a2c (diff) | |
download | manaverse-7da95c7f4da447876458a0b1a17736b9a2865844.tar.gz manaverse-7da95c7f4da447876458a0b1a17736b9a2865844.tar.bz2 manaverse-7da95c7f4da447876458a0b1a17736b9a2865844.tar.xz manaverse-7da95c7f4da447876458a0b1a17736b9a2865844.zip |
Move inputaction into separate file.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index 74906dc25..5a0bf0478 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -29,6 +29,7 @@ #include "events/keyevent.h" +#include "input/inputaction.h" #include "input/keydata.h" #include "gui/gui.h" @@ -300,23 +301,23 @@ void ServerDialog::keyPressed(KeyEvent &event) { switch (event.getActionId()) { - case Input::KEY_GUI_CANCEL: + case InputAction::GUI_CANCEL: event.consume(); client->setState(STATE_EXIT); return; - case Input::KEY_GUI_SELECT: - case Input::KEY_GUI_SELECT2: + case InputAction::GUI_SELECT: + case InputAction::GUI_SELECT2: event.consume(); action(ActionEvent(nullptr, mConnectButton->getActionEventId())); return; - case Input::KEY_GUI_INSERT: + case InputAction::GUI_INSERT: (new EditServerDialog(this, ServerInfo(), -1))->postInit(); return; - case Input::KEY_GUI_DELETE: + case InputAction::GUI_DELETE: { const int index = mServersList->getSelected(); if (index >= 0) @@ -328,7 +329,7 @@ void ServerDialog::keyPressed(KeyEvent &event) return; } - case Input::KEY_GUI_BACKSPACE: + case InputAction::GUI_BACKSPACE: { const int index = mServersList->getSelected(); if (index >= 0) |