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.


Origin commit data
------------------
Commit: 4eb6a315fc
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-03-20 (Mon, 20 Mar 2017)
This commit is contained in:
2017-03-20 22:51:54 +01:00
parent 267889edb0
commit c7fc3dcf34
6 changed files with 104 additions and 65 deletions

View File

@@ -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);