mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user