diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-02-16 18:52:24 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-02-16 18:52:24 +0000 |
commit | e1b66a9d88b43cee01ad15226c14fa6880fcbd04 (patch) | |
tree | c0953d44dc0f4f715715ba5e0f68b5973b68d923 /src/gui/inttextfield.h | |
parent | 91ee1c7b3e861d84c8aae51ad933ff6015adb5b8 (diff) | |
download | mana-e1b66a9d88b43cee01ad15226c14fa6880fcbd04.tar.gz mana-e1b66a9d88b43cee01ad15226c14fa6880fcbd04.tar.bz2 mana-e1b66a9d88b43cee01ad15226c14fa6880fcbd04.tar.xz mana-e1b66a9d88b43cee01ad15226c14fa6880fcbd04.zip |
Allow default value for IntTextField to be changed
Also check value and default value when range is changed
Diffstat (limited to 'src/gui/inttextfield.h')
-rw-r--r-- | src/gui/inttextfield.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/inttextfield.h b/src/gui/inttextfield.h index add78084..ec768bea 100644 --- a/src/gui/inttextfield.h +++ b/src/gui/inttextfield.h @@ -56,6 +56,11 @@ class IntTextField : public TextField void setValue(int value); /** + * Set the default value of the text box to the specified value. + */ + void setDefaultValue(int value); + + /** * Responds to key presses. */ void keyPressed(gcn::KeyEvent &event); |