From 4044e78d4c473ae5e82d201c8aa79a415dece75e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Dec 2020 20:33:52 +0100 Subject: [PATCH] cc_frm_button: add signal OnPressedButton --- src/gui/components/cc_frm_button.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_button.h b/src/gui/components/cc_frm_button.h index 2c95e1830..e8d37ed0f 100644 --- a/src/gui/components/cc_frm_button.h +++ b/src/gui/components/cc_frm_button.h @@ -191,8 +191,8 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen * use setButtonDirectKeys(). * @see setButtonDirectKeys(), driver/rcinput.h for possible values */ - void setButtonDirectKey(const neutrino_msg_t& msg){cc_directKeys.clear(); cc_directKeys.push_back(msg);} + /** * Assigns a container with any event msg values to button object * @param[in] v_directKeys @@ -259,6 +259,9 @@ class CComponentsButton : public CComponentsFrmChain, public CCTextScreen void setButtonAlias(const int& alias_value){cc_btn_alias = alias_value;} ///returns an alias value from button object, see also cc_btn_alias int getButtonAlias(){return cc_btn_alias;} + + ///signal on pressed key/button + sigc::signal OnPressedButton; }; //! Sub class of CComponentsButton.