diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-03 17:23:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-03 17:23:05 +0300 |
commit | d5eb424dcd214b4646a960e04b9271e70b096856 (patch) | |
tree | f36891e6406861ab0d4a82d233545e3f33a46ab4 /src/gui/setupitem.h | |
parent | 634149ac7d248d2e078ee9707379a5056d31077e (diff) | |
download | plus-d5eb424dcd214b4646a960e04b9271e70b096856.tar.gz plus-d5eb424dcd214b4646a960e04b9271e70b096856.tar.bz2 plus-d5eb424dcd214b4646a960e04b9271e70b096856.tar.xz plus-d5eb424dcd214b4646a960e04b9271e70b096856.zip |
Add separator field to setup settings tabs.
Diffstat (limited to 'src/gui/setupitem.h')
-rw-r--r-- | src/gui/setupitem.h | 26 |
1 files changed, 25 insertions, 1 deletions
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 |