diff options
Diffstat (limited to 'src/gui/setupitem.h')
-rw-r--r-- | src/gui/setupitem.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gui/setupitem.h b/src/gui/setupitem.h index d1cec0717..b5ea566da 100644 --- a/src/gui/setupitem.h +++ b/src/gui/setupitem.h @@ -44,6 +44,7 @@ class Configuration; class ContainerPlacer; class EditDialog; class HorizontContainer; +class IntTextField; class Label; class TextField; @@ -172,4 +173,39 @@ class SetupItemTextField : public SetupItem EditDialog *mEditDialog; }; +class SetupItemIntTextField : public SetupItem +{ + public: + SetupItemIntTextField(std::string text, std::string description, + std::string keyName, SetupTabScroll *parent, + std::string eventName, int min, int max, + bool mainConfig = true); + + SetupItemIntTextField(std::string text, std::string description, + std::string keyName, SetupTabScroll *parent, + std::string eventName, int min, int max, + std::string def, bool mainConfig = true); + + ~SetupItemIntTextField(); + + void createControls(); + + void fromWidget(); + + void toWidget(); + + void action(const gcn::ActionEvent &event); + + void apply(std::string eventName); + + protected: + HorizontContainer *mHorizont; + Label *mLabel; + IntTextField *mTextField; + Button *mButton; + int mMin; + int mMax; + EditDialog *mEditDialog; +}; + #endif |