summaryrefslogtreecommitdiff
path: root/src/gui/setupitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-19 21:00:17 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-19 21:00:17 +0300
commit2881720bca7168ca181a13bfd4dd69115a46c2f9 (patch)
tree13d52ee1266e7dbcd9532f3324a5de039df88b46 /src/gui/setupitem.h
parent5eba7b23b7002a3f399afa7e51066a6b16a1f9a6 (diff)
downloadmanaverse-2881720bca7168ca181a13bfd4dd69115a46c2f9.tar.gz
manaverse-2881720bca7168ca181a13bfd4dd69115a46c2f9.tar.bz2
manaverse-2881720bca7168ca181a13bfd4dd69115a46c2f9.tar.xz
manaverse-2881720bca7168ca181a13bfd4dd69115a46c2f9.zip
Redesign Chat setup page.
Diffstat (limited to 'src/gui/setupitem.h')
-rw-r--r--src/gui/setupitem.h36
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