mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +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:
@@ -124,8 +124,7 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const
|
||||
cc_btn_font = NULL;
|
||||
cc_btn_icon = icon_name;
|
||||
cc_btn_text = caption;
|
||||
cc_directKey = CRCInput::RC_nokey;
|
||||
cc_directKeyAlt = cc_directKey;
|
||||
cc_directKeys.push_back(CRCInput::RC_nokey);
|
||||
cc_btn_result = -1;
|
||||
cc_btn_alias = -1;
|
||||
|
||||
|
Reference in New Issue
Block a user