summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widgetgroup.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-05 15:47:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-05 15:47:31 +0300
commit5aa5429c62096034769ffdaef92a0fcb5db08301 (patch)
tree15fb060f619c30c4e7349e2d18f3cf6cfba05928 /src/gui/widgets/widgetgroup.h
parentad3a223908a77d42ee97ef28b598e3c831bee7d1 (diff)
downloadmv-5aa5429c62096034769ffdaef92a0fcb5db08301.tar.gz
mv-5aa5429c62096034769ffdaef92a0fcb5db08301.tar.bz2
mv-5aa5429c62096034769ffdaef92a0fcb5db08301.tar.xz
mv-5aa5429c62096034769ffdaef92a0fcb5db08301.zip
Allow set pressed item in widgetgroup and child objects.
Diffstat (limited to 'src/gui/widgets/widgetgroup.h')
-rw-r--r--src/gui/widgets/widgetgroup.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/widgetgroup.h b/src/gui/widgets/widgetgroup.h
index 463145dde..ef6c26629 100644
--- a/src/gui/widgets/widgetgroup.h
+++ b/src/gui/widgets/widgetgroup.h
@@ -35,10 +35,12 @@ class WidgetGroup notfinal : public Container,
public:
A_DELETE_COPY(WidgetGroup)
- virtual void addButton(const std::string &tag);
+ virtual void addButton(const std::string &tag,
+ const bool pressed = false);
virtual void addButton(const std::string &restrict text,
- const std::string &restrict tag);
+ const std::string &restrict tag,
+ const bool pressed = false);
void action(const ActionEvent &event) override;
@@ -49,7 +51,8 @@ class WidgetGroup notfinal : public Container,
void widgetResized(const Event &event) override final;
- virtual Widget *createWidget(const std::string &name)
+ virtual Widget *createWidget(const std::string &name,
+ const bool pressed = false)
const A_WARN_UNUSED = 0;
protected: