summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r--src/gui/widgets/textfield.h25
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