mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
Message Timeouts: add possibilty to change timeout for static messages
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -238,7 +238,7 @@ int CMsgBox::exec()
|
||||
ccw_footer->getSelectedButtonObject()->setButtonAlias(mb_show_button);
|
||||
int selected = ccw_footer->getSelectedButton();
|
||||
if (timeout == NO_TIMEOUT)
|
||||
timeout = 0;
|
||||
timeout = MSGBOX_DEFAULT_TIMEOUT;
|
||||
|
||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd(timeout);
|
||||
|
||||
|
@@ -38,6 +38,7 @@
|
||||
#define MSGBOX_MIN_WIDTH HINTBOX_MIN_WIDTH
|
||||
#define MSGBOX_MIN_HEIGHT HINTBOX_MIN_HEIGHT + 75
|
||||
|
||||
#define MSGBOX_DEFAULT_TIMEOUT g_settings.timing[SNeutrinoSettings::TIMING_STATIC_MESSAGES]
|
||||
#define DEFAULT_MSGBOX_TEXT_MODE (CMsgBox::CENTER | CMsgBox::AUTO_WIDTH | CMsgBox::AUTO_HIGH)
|
||||
|
||||
//! Sub class of CHintBox. Shows a window as a messagebox
|
||||
|
@@ -2434,6 +2434,7 @@ typedef enum
|
||||
LOCALE_TIMING_MENU,
|
||||
LOCALE_TIMING_NUMERICZAP,
|
||||
LOCALE_TIMING_POPUP_MESSAGES,
|
||||
LOCALE_TIMING_STATIC_MESSAGES,
|
||||
LOCALE_TIMING_VOLUMEBAR,
|
||||
LOCALE_TMDB_API_KEY,
|
||||
LOCALE_TMDB_ENABLED,
|
||||
|
@@ -2434,6 +2434,7 @@ const char * locale_real_names[] =
|
||||
"timing.menu",
|
||||
"timing.numericzap",
|
||||
"timing.popup_messages",
|
||||
"timing.static_messages",
|
||||
"timing.volumebar",
|
||||
"tmdb.api_key",
|
||||
"tmdb.enabled",
|
||||
|
@@ -406,6 +406,7 @@ struct SNeutrinoSettings
|
||||
TIMING_FILEBROWSER = 7,
|
||||
TIMING_NUMERICZAP = 8,
|
||||
TIMING_POPUP_MESSAGES = 9,
|
||||
TIMING_STATIC_MESSAGES = 10,
|
||||
|
||||
TIMING_SETTING_COUNT
|
||||
};
|
||||
@@ -875,7 +876,8 @@ const time_settings_struct_t timing_setting[SNeutrinoSettings::TIMING_SETTING_CO
|
||||
{ 3, LOCALE_TIMING_VOLUMEBAR },
|
||||
{ 60, LOCALE_TIMING_FILEBROWSER },
|
||||
{ 3, LOCALE_TIMING_NUMERICZAP },
|
||||
{ 6, LOCALE_TIMING_POPUP_MESSAGES}
|
||||
{ 6, LOCALE_TIMING_POPUP_MESSAGES},
|
||||
{ 0, LOCALE_TIMING_STATIC_MESSAGES}
|
||||
};
|
||||
|
||||
// lcdd
|
||||
|
Reference in New Issue
Block a user