From cbb0f0f34e71630cb59ac4a831daf445f58a6427 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 17 Apr 2017 16:33:45 +0200 Subject: Connect humanizer controls to settings. --- plugingui/frame.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugingui/frame.h') 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 + #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 onSwitchChangeNotifier; // (bool on) + protected: // From Widget: virtual void repaintEvent(RepaintEvent* repaintEvent) override; -- cgit v1.2.3