summaryrefslogtreecommitdiff
path: root/src/gui/npcintegerdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcintegerdialog.h')
-rw-r--r--src/gui/npcintegerdialog.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/npcintegerdialog.h b/src/gui/npcintegerdialog.h
index b9ce70be..10ec60b9 100644
--- a/src/gui/npcintegerdialog.h
+++ b/src/gui/npcintegerdialog.h
@@ -23,7 +23,6 @@
#define GUI_NPCINTEGERDIALOG_H
#include <guichan/actionlistener.hpp>
-#include <guichan/keylistener.hpp>
#include "window.h"
@@ -34,8 +33,7 @@ class IntTextField;
*
* \ingroup Interface
*/
-class NpcIntegerDialog : public Window, public gcn::ActionListener,
- public gcn::KeyListener
+class NpcIntegerDialog : public Window, public gcn::ActionListener
{
public:
/**
@@ -63,6 +61,16 @@ class NpcIntegerDialog : public Window, public gcn::ActionListener,
*/
void setRange(const int min, const int max);
+ /**
+ * Checks whether NpcStringDialog is Focused or not.
+ */
+ bool isInputFocused();
+
+ /**
+ * Requests the textfield to take focus for input.
+ */
+ void requestFocus();
+
private:
gcn::Button *mDecButton;
gcn::Button *mIncButton;