CComponentsFooter: simplify implementation of button labels

button_label_l and button_label_s are now
merged to button_label_cc with prepared default values for text and locales.This type contains all possible
button label properties. Values for locales and string
are evaluated in setButtonLabels(), so it's possible to remove some
overloaded methodes.
This commit is contained in:
2017-03-11 00:45:25 +01:00
parent ccb82083e2
commit c766a970dc
4 changed files with 23 additions and 67 deletions

View File

@@ -7,7 +7,7 @@
Günther@tuxbox.berlios.org
Implementation of CComponent Window class.
Copyright (C) 2014-2016 Thilo Graf 'dbt'
Copyright (C) 2014-2017 Thilo Graf 'dbt'
License: GPL
@@ -117,8 +117,8 @@ void CMsgBox::initTimeOut()
void CMsgBox::initButtons()
{
button_label_s btn;
vector<button_label_s> v_buttons;
button_label_cc btn;
vector<button_label_cc> v_buttons;
//evaluate combinations
if (mb_show_button & mbAll)