mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CComponentsButton: simplify assignment of button message values
Count of alternate message values was limited to 1 value. Now it is possible to add any count of message values. directKey and directKeyAlt were removed from struct type 'button_label_cc' and directKeys was added as container for possible message values. Some methods of CComponentsFooter had to be adapted for that.
This commit is contained in:
@@ -99,8 +99,7 @@ class CComponentsFooter : public CComponentsHeader
|
||||
const int& label_width = 0,
|
||||
const neutrino_msg_t& msg = CRCInput::RC_nokey,
|
||||
const int& result_value = -1,
|
||||
const int& alias_value = -1,
|
||||
const neutrino_msg_t& directKeyAlt = CRCInput::RC_nokey);
|
||||
const int& alias_value = -1);
|
||||
///add single button label with locale label type as content, chain_width as int, label width as int
|
||||
void setButtonLabel( const char *button_icon,
|
||||
const neutrino_locale_t& locale,
|
||||
@@ -108,8 +107,7 @@ class CComponentsFooter : public CComponentsHeader
|
||||
const int& label_width = 0,
|
||||
const neutrino_msg_t& msg = CRCInput::RC_nokey,
|
||||
const int& result_value = -1,
|
||||
const int& alias_value = -1,
|
||||
const neutrino_msg_t& directKeyAlt = CRCInput::RC_nokey);
|
||||
const int& alias_value = -1);
|
||||
|
||||
///enables background of buttons, parameter bool show, default= true
|
||||
void enableButtonBg(bool enable = true);
|
||||
|
Reference in New Issue
Block a user