mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CMsgBox: add option for No Yes button arrangement
Useful if order of red and green buttons must be changed.
Return values are untouched.
Origin commit data
------------------
Branch: ni/coolstream
Commit: f1e4723964
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-27 (Thu, 27 Oct 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -179,6 +179,22 @@ void CMsgBox::initButtons()
|
||||
btn.btn_alias = mbBack;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
if (mb_show_button & mbNoYes){
|
||||
btn.button = NEUTRINO_ICON_BUTTON_GREEN;
|
||||
btn.text = BTN_TEXT(mbNo);
|
||||
btn.directKey = CRCInput::RC_green;
|
||||
btn.directKeyAlt = CRCInput::RC_home;
|
||||
btn.btn_result = mbrNo;
|
||||
btn.btn_alias = mbNo;
|
||||
v_buttons.push_back(btn);
|
||||
btn.button = NEUTRINO_ICON_BUTTON_RED;
|
||||
btn.text = BTN_TEXT(mbYes);
|
||||
btn.directKey = CRCInput::RC_red;
|
||||
btn.directKeyAlt = CRCInput::RC_ok;
|
||||
btn.btn_result = mbrYes;
|
||||
btn.btn_alias = mbYes;
|
||||
v_buttons.push_back(btn);
|
||||
}
|
||||
|
||||
ccw_footer->setButtonLabels(v_buttons, 0, 125);
|
||||
ccw_footer->getButtonChainObject()->setColorBody(col_body);
|
||||
|
Reference in New Issue
Block a user