diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-15 01:16:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-15 01:16:34 +0300 |
commit | c3b87f283a5a99ed8bac513c516bc5a184406391 (patch) | |
tree | 78cce6c60cb82b8e191e633ec2c4fce1e1672708 /src/gui/widgets/setupitem.h | |
parent | 1b7fa30e602ae18a68153d4e5acec8e4d9ea9e33 (diff) | |
download | manaverse-c3b87f283a5a99ed8bac513c516bc5a184406391.tar.gz manaverse-c3b87f283a5a99ed8bac513c516bc5a184406391.tar.bz2 manaverse-c3b87f283a5a99ed8bac513c516bc5a184406391.tar.xz manaverse-c3b87f283a5a99ed8bac513c516bc5a184406391.zip |
add option for edit screenshot dir.
Diffstat (limited to 'src/gui/widgets/setupitem.h')
-rw-r--r-- | src/gui/widgets/setupitem.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/widgets/setupitem.h b/src/gui/widgets/setupitem.h index 40a20a985..91547733f 100644 --- a/src/gui/widgets/setupitem.h +++ b/src/gui/widgets/setupitem.h @@ -63,7 +63,7 @@ class SetupItem : public gcn::ActionListener, void load(); - void save() const; + virtual void save(); virtual void fromWidget() = 0; @@ -188,7 +188,8 @@ class SetupItemTextField final : public SetupItem const std::string &restrict keyName, SetupTabScroll *restrict const parent, const std::string &restrict eventName, - const bool mainConfig = true); + const bool mainConfig = true, + const bool useBase64 = false); SetupItemTextField(const std::string &restrict text, const std::string &restrict description, @@ -196,7 +197,8 @@ class SetupItemTextField final : public SetupItem SetupTabScroll *restrict const parent, const std::string &restrict eventName, const std::string &restrict def, - const bool mainConfig = true); + const bool mainConfig = true, + const bool useBase64 = false); A_DELETE_COPY(SetupItemTextField) @@ -212,12 +214,18 @@ class SetupItemTextField final : public SetupItem void apply(const std::string &eventName) override final; + void save() override final; + + void setUseBase64(const bool b) + { mUseBase64 = b; } + protected: HorizontContainer *mHorizont; Label *mLabel; TextField *mTextField; Button *mButton; EditDialog *mEditDialog; + bool mUseBase64; }; class SetupItemIntTextField final : public SetupItem |