mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
cc_frm_button: add signal OnPressedButton
Origin commit data
------------------
Commit: e77e13078d
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
This commit is contained in:
@@ -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<void> OnPressedButton;
|
||||
};
|
||||
|
||||
//! Sub class of CComponentsButton.
|
||||
|
Reference in New Issue
Block a user