mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
- adapt ShowMsg handling from martii's neutrino-mp
This commit is contained in:
@@ -127,7 +127,7 @@ int CNetworkSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
}
|
||||
else if(actionKey=="restore")
|
||||
{
|
||||
int result = ShowMsgUTF(LOCALE_MAINSETTINGS_NETWORK, g_Locale->getText(LOCALE_NETWORKMENU_RESET_SETTINGS_NOW), CMessageBox::mbrNo,
|
||||
int result = ShowMsg(LOCALE_MAINSETTINGS_NETWORK, g_Locale->getText(LOCALE_NETWORKMENU_RESET_SETTINGS_NOW), CMessageBox::mbrNo,
|
||||
CMessageBox::mbYes |
|
||||
CMessageBox::mbNo ,
|
||||
NEUTRINO_ICON_QUESTION,
|
||||
@@ -535,7 +535,7 @@ bool CNetworkSetup::checkForIP()
|
||||
printf("[network setup] empty address %s\n", g_Locale->getText(n_settings[i].addr_name));
|
||||
char msg[64];
|
||||
snprintf(msg, 64, g_Locale->getText(LOCALE_NETWORKMENU_ERROR_NO_ADDRESS), g_Locale->getText(n_settings[i].addr_name));
|
||||
ShowMsgUTF(LOCALE_MAINSETTINGS_NETWORK, msg, CMessageBox::mbrOk, CMessageBox::mbOk, NEUTRINO_ICON_ERROR, width);
|
||||
ShowMsg(LOCALE_MAINSETTINGS_NETWORK, msg, CMessageBox::mbrOk, CMessageBox::mbOk, NEUTRINO_ICON_ERROR, width);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -578,7 +578,7 @@ void CNetworkSetup::applyNetworkSettings()
|
||||
int CNetworkSetup::saveChangesDialog()
|
||||
{
|
||||
// Save the settings after changes, if user wants to!
|
||||
int result = ShowMsgUTF(LOCALE_MAINSETTINGS_NETWORK, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS_NOW), CMessageBox::mbrYes,
|
||||
int result = ShowMsg(LOCALE_MAINSETTINGS_NETWORK, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS_NOW), CMessageBox::mbrYes,
|
||||
CMessageBox::mbYes |
|
||||
CMessageBox::mbNo ,
|
||||
NEUTRINO_ICON_QUESTION,
|
||||
@@ -696,7 +696,7 @@ void CNetworkSetup::showCurrentNetworkSettings()
|
||||
+ g_Locale->getText(LOCALE_NETWORKMENU_NAMESERVER) + ": " + nameserver + '\n'
|
||||
+ g_Locale->getText(LOCALE_NETWORKMENU_GATEWAY ) + ": " + router;
|
||||
}
|
||||
ShowMsgUTF(LOCALE_NETWORKMENU_SHOW, text, CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
ShowMsg(LOCALE_NETWORKMENU_SHOW, text, CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
}
|
||||
|
||||
const char * CNetworkSetup::mypinghost(std::string &host)
|
||||
@@ -792,7 +792,7 @@ void CNetworkSetup::testNetworkSettings()
|
||||
}
|
||||
}
|
||||
|
||||
ShowMsgUTF(LOCALE_NETWORKMENU_TEST, text, CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
ShowMsg(LOCALE_NETWORKMENU_TEST, text, CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
}
|
||||
|
||||
int CNetworkSetup::showWlanList()
|
||||
@@ -806,7 +806,7 @@ int CNetworkSetup::showWlanList()
|
||||
bool found = get_wlan_list(g_settings.ifname, networks);
|
||||
hintBox.hide();
|
||||
if (!found) {
|
||||
ShowMsgUTF(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_NETWORKMENU_SSID_SCAN_ERROR), CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
ShowMsg(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_NETWORKMENU_SSID_SCAN_ERROR), CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user