summaryrefslogtreecommitdiff
path: root/src/gui/setupitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-03 17:23:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-03 17:23:05 +0300
commitd5eb424dcd214b4646a960e04b9271e70b096856 (patch)
treef36891e6406861ab0d4a82d233545e3f33a46ab4 /src/gui/setupitem.h
parent634149ac7d248d2e078ee9707379a5056d31077e (diff)
downloadmv-d5eb424dcd214b4646a960e04b9271e70b096856.tar.gz
mv-d5eb424dcd214b4646a960e04b9271e70b096856.tar.bz2
mv-d5eb424dcd214b4646a960e04b9271e70b096856.tar.xz
mv-d5eb424dcd214b4646a960e04b9271e70b096856.zip
Add separator field to setup settings tabs.
Diffstat (limited to 'src/gui/setupitem.h')
-rw-r--r--src/gui/setupitem.h26
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