mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
port: message info added
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@955 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -99,7 +99,7 @@ void CMessageBox::paintButtons()
|
|||||||
|
|
||||||
m_window->paintBoxRel(0, m_height - (m_fheight << 1), m_width, (m_fheight << 1), (CFBWindow::color_t)COL_MENUCONTENT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
m_window->paintBoxRel(0, m_height - (m_fheight << 1), m_width, (m_fheight << 1), (CFBWindow::color_t)COL_MENUCONTENT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
||||||
|
|
||||||
//irgendwann alle vergleichen - aber cancel ist sicher der l<>ngste
|
//irgendwann alle vergleichen - aber cancel ist sicher der l<>ngste
|
||||||
int MaxButtonTextWidth = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(LOCALE_MESSAGEBOX_CANCEL), true); // UTF-8
|
int MaxButtonTextWidth = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(LOCALE_MESSAGEBOX_CANCEL), true); // UTF-8
|
||||||
|
|
||||||
int ButtonWidth = 20 + 33 + MaxButtonTextWidth;
|
int ButtonWidth = 20 + 33 + MaxButtonTextWidth;
|
||||||
@@ -297,3 +297,8 @@ void DisplayErrorMessage(const char * const ErrorMsg)
|
|||||||
{
|
{
|
||||||
ShowMsgUTF(LOCALE_MESSAGEBOX_ERROR, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
ShowMsgUTF(LOCALE_MESSAGEBOX_ERROR, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DisplayInfoMessage(const char * const ErrorMsg)
|
||||||
|
{
|
||||||
|
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, ErrorMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||||
|
}
|
||||||
|
@@ -83,5 +83,6 @@ int ShowMsgUTF(const neutrino_locale_t Caption, const char * const Text, const C
|
|||||||
int ShowMsgUTF(const neutrino_locale_t Caption, const std::string & Text, const CMessageBox::result_ Default, const uint32_t ShowButtons, const char * const Icon = NULL, const int Width = 450, const int timeout = -1, bool returnDefaultOnTimeout = false); // UTF-8
|
int ShowMsgUTF(const neutrino_locale_t Caption, const std::string & Text, const CMessageBox::result_ Default, const uint32_t ShowButtons, const char * const Icon = NULL, const int Width = 450, const int timeout = -1, bool returnDefaultOnTimeout = false); // UTF-8
|
||||||
|
|
||||||
void DisplayErrorMessage(const char * const ErrorMsg); // UTF-8
|
void DisplayErrorMessage(const char * const ErrorMsg); // UTF-8
|
||||||
|
void DisplayInfoMessage(const char * const InfoMsg); // UTF-8
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user