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 | |
parent | a16629925147248c01ee7d967c38fdeb65d55def (diff) | |
download | mana-client-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.gz mana-client-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.bz2 mana-client-d90dffbf4240650cf95f3dddf2273cb92d0cc39d.tar.xz mana-client-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')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/textfield.h | 25 |
2 files changed, 8 insertions, 20 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index d830f8d4..75144658 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -42,8 +42,7 @@ ImageRect TextField::skin; TextField::TextField(const std::string &text): gcn::TextField(text), - mNumeric(false), - mListener(0) + mNumeric(false) { setFrameSize(2); 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 |