diff --git a/src/gui/widget/messagebox.cpp b/src/gui/widget/messagebox.cpp index 04009753a..5bc690a6e 100644 --- a/src/gui/widget/messagebox.cpp +++ b/src/gui/widget/messagebox.cpp @@ -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); - //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 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); } + +void DisplayInfoMessage(const char * const ErrorMsg) +{ + ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, ErrorMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO); +} diff --git a/src/gui/widget/messagebox.h b/src/gui/widget/messagebox.h index cb06a57be..54e94f5f8 100644 --- a/src/gui/widget/messagebox.h +++ b/src/gui/widget/messagebox.h @@ -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 void DisplayErrorMessage(const char * const ErrorMsg); // UTF-8 +void DisplayInfoMessage(const char * const InfoMsg); // UTF-8 #endif