summaryrefslogtreecommitdiff
path: root/plugingui/frame.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-05-09 20:52:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-05-09 20:52:47 +0200
commit15faa626f7df7a3024dda5d11001347ed4573568 (patch)
treeaad5c44d8906caef72e76f767b6895c0a4682a46 /plugingui/frame.h
parent751f01eea8c40f70d412e691e6677d3daae54c7a (diff)
Add tooltip buttons to frames.
Diffstat (limited to 'plugingui/frame.h')
-rw-r--r--plugingui/frame.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugingui/frame.h b/plugingui/frame.h
index e29bd3d..db26ea9 100644
--- a/plugingui/frame.h
+++ b/plugingui/frame.h
@@ -30,6 +30,7 @@
#include "font.h"
#include "powerbutton.h"
+#include "helpbutton.h"
#include "widget.h"
namespace GUI
@@ -39,7 +40,7 @@ class FrameWidget
: public Widget
{
public:
- FrameWidget(Widget* parent, bool has_switch = false);
+ FrameWidget(Widget* parent, bool has_switch = false, bool has_help_text = false);
virtual ~FrameWidget() = default;
// From Widget:
@@ -48,7 +49,8 @@ public:
bool isSwitchedOn() { return is_switched_on; }
- void setTitle(std::string const& title);
+ void setTitle(const std::string& title);
+ void setHelpText(const std::string& help_text);
void setContent(Widget* content);
void setOnSwitch(bool on);
@@ -81,6 +83,7 @@ private:
// switch
bool is_switched_on;
PowerButton power_button{this};
+ HelpButton help_button{this};
void powerButtonStateChanged(bool clicked);