diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-08 10:30:08 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-08 10:45:38 +0200 |
commit | d90dffbf4240650cf95f3dddf2273cb92d0cc39d (patch) | |
tree | a8f2fa7b464ce355299689412da7eb2f6b3b16bd /src/gui/widgets/textfield.h | |
parent | a16629925147248c01ee7d967c38fdeb65d55def (diff) | |
download | mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.gz mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.bz2 mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.xz mana-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.zip |
Got rid of the non-functional TextFieldListener
Pointed out by Jaxad0127. We might want to enable its intended
functionality in a different way later.
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r-- | src/gui/widgets/textfield.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h index 070d86ae..30ff2338 100644 --- a/src/gui/widgets/textfield.h +++ b/src/gui/widgets/textfield.h @@ -27,12 +27,6 @@ class ImageRect; class TextField; -class TextFieldListener -{ - public: - virtual void listen(const TextField *value) = 0; -}; - /** * A text field. * @@ -46,9 +40,6 @@ class TextField : public gcn::TextField */ TextField(const std::string &text = ""); - /** - * Destructor. - */ ~TextField(); /** @@ -69,7 +60,11 @@ class TextField : public gcn::TextField /** * Set the range on the field if it is numeric */ - void setRange(int min, int max) {mMinimum = min; mMaximum = max; } + void setRange(int min, int max) + { + mMinimum = min; + mMaximum = max; + } /** * Processes one keypress. @@ -79,23 +74,18 @@ class TextField : public gcn::TextField /** * Set the minimum value for a range */ - void setMinimum(int min) {mMinimum = min; } + void setMinimum(int min) { mMinimum = min; } /** * Set the maximum value for a range */ - void setMaximum(int max) {mMaximum = max; } + void setMaximum(int max) { mMaximum = max; } /** * Return the value for a numeric field */ int getValue() const; - /** - * Add a listener - */ - void addListener(TextFieldListener *listener) {mListener = listener; } - private: static int instances; static float mAlpha; @@ -103,7 +93,6 @@ class TextField : public gcn::TextField bool mNumeric; int mMinimum; int mMaximum; - TextFieldListener *mListener; }; #endif |