summaryrefslogtreecommitdiff
path: root/src/gui/setup_input.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-21 22:44:44 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-21 23:18:20 +0300
commit62ffd2023d9073e452fe2e2f50cf6b2f11224d6f (patch)
tree8c45c7c16b0c20ac6a7b722d69c148149e6b651f /src/gui/setup_input.h
parentcfa5391c1be51ef49380e398a72c813255d6316e (diff)
downloadmv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.gz
mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.bz2
mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.tar.xz
mv-62ffd2023d9073e452fe2e2f50cf6b2f11224d6f.zip
next code style changes.
Diffstat (limited to 'src/gui/setup_input.h')
-rw-r--r--src/gui/setup_input.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/setup_input.h b/src/gui/setup_input.h
index 89b102881..bed487b68 100644
--- a/src/gui/setup_input.h
+++ b/src/gui/setup_input.h
@@ -24,6 +24,8 @@
#ifndef GUI_SETUP_INPUT_H
#define GUI_SETUP_INPUT_H
+#include "keydata.h"
+
#include "gui/widgets/setuptab.h"
#include <guichan/actionlistener.hpp>
@@ -58,12 +60,12 @@ class Setup_Input : public SetupTab
/**
* Get an update on the assigned key.
*/
- void refreshAssignedKey(int index);
+ void refreshAssignedKey(const int index);
/**
* The callback function when a new key has been pressed.
*/
- void newKeyCallback(int index);
+ void newKeyCallback(const int index);
/**
* Shorthand method to update all the keys.
@@ -75,15 +77,16 @@ class Setup_Input : public SetupTab
*/
void keyUnresolved();
- int keyToSetupData(int index);
+ int keyToSetupData(const int index) const;
- std::string keyToString(int index);
+ std::string keyToString(const int index) const;
private:
void fixTranslations();
- void fixTranslation(SetupActionData *actionDatas, int actionStart,
- int actionEnd, std::string text);
+ void fixTranslation(SetupActionData *const actionDatas,
+ const int actionStart, const int actionEnd,
+ const std::string &text) const;
class KeyListModel *mKeyListModel;
gcn::ListBox *mKeyList;