mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CMsgBox: add option to enable/disable button background
replaces var name btn_contour for better plausibility
Origin commit data
------------------
Branch: ni/coolstream
Commit: be740c1552
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-08-18 (Thu, 18 Aug 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -112,6 +112,9 @@ class CMsgBox : public CHintBox
|
||||
///assigned button captions
|
||||
std::string BTN_TEXT(const int& showed_button);
|
||||
|
||||
///enables/disable button background
|
||||
bool btn_enable_bg;
|
||||
|
||||
void initButtons();
|
||||
public:
|
||||
/* Constructor */
|
||||
@@ -181,6 +184,11 @@ class CMsgBox : public CHintBox
|
||||
*/
|
||||
void setButtonText(const int& showed_button, const std::string& text);
|
||||
|
||||
///enables background of buttons, parameter bool show, default= true
|
||||
void enableButtonBg(bool enable = true);
|
||||
///disables background of buttons
|
||||
void disableButtonBg(){enableButtonBg(false);}
|
||||
|
||||
// bool setText(const std::string* newText);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user