From d5eb424dcd214b4646a960e04b9271e70b096856 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Jul 2011 17:23:05 +0300 Subject: Add separator field to setup settings tabs. --- src/gui/setupitem.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) (limited to 'src/gui/setupitem.h') diff --git a/src/gui/setupitem.h b/src/gui/setupitem.h index 81f85b0da..33fcbbf78 100644 --- a/src/gui/setupitem.h +++ b/src/gui/setupitem.h @@ -55,7 +55,8 @@ class SetupItem : public gcn::ActionListener { VBOOL = 0, VSTR, - VINT + VINT, + VNONE }; SetupItem(std::string text, std::string description, @@ -217,4 +218,27 @@ class SetupItemIntTextField : public SetupItem EditDialog *mEditDialog; }; +class SetupItemLabel : public SetupItem +{ + public: + SetupItemLabel(std::string text, std::string description, + SetupTabScroll *parent, bool separator = true); + + ~SetupItemLabel(); + + void createControls(); + + void fromWidget(); + + void toWidget(); + + void action(const gcn::ActionEvent &event); + + void apply(std::string eventName); + + protected: + Label *mLabel; + bool mIsSeparator; +}; + #endif -- cgit v1.2.3-60-g2f50