summaryrefslogtreecommitdiff
path: root/plugingui/frame.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-17 16:33:45 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-17 16:33:58 +0200
commitcbb0f0f34e71630cb59ac4a831daf445f58a6427 (patch)
tree1114dd2b50aa4a63832e595bec445170f6ba12fb /plugingui/frame.h
parentfebd5dec458e9fb066dab218b07d6c42b53ea5b1 (diff)
Connect humanizer controls to settings.
Diffstat (limited to 'plugingui/frame.h')
-rw-r--r--plugingui/frame.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugingui/frame.h b/plugingui/frame.h
index 1a07db0..04cfeb2 100644
--- a/plugingui/frame.h
+++ b/plugingui/frame.h
@@ -26,6 +26,8 @@
*/
#pragma once
+#include <notifier.h>
+
#include "font.h"
#include "powerbutton.h"
#include "widget.h"
@@ -33,7 +35,8 @@
namespace GUI
{
-class FrameWidget : public Widget
+class FrameWidget
+ : public Widget
{
public:
FrameWidget(Widget* parent, bool has_switch = false);
@@ -48,6 +51,10 @@ public:
void setTitle(std::string const& title);
void setContent(Widget* content);
+ void setOnSwitch(bool on);
+
+ Notifier<bool> onSwitchChangeNotifier; // (bool on)
+
protected:
// From Widget:
virtual void repaintEvent(RepaintEvent* repaintEvent) override;