mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
Display[Error|Info]Message: Add optional parameter 'Caption'
This commit is contained in:
@@ -334,7 +334,27 @@ void DisplayErrorMessage(const char * const ErrorMsg)
|
|||||||
ShowMsg(LOCALE_MESSAGEBOX_ERROR, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
ShowMsg(LOCALE_MESSAGEBOX_ERROR, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayInfoMessage(const char * const ErrorMsg)
|
void DisplayErrorMessage(const char * const ErrorMsg, const neutrino_locale_t Caption)
|
||||||
{
|
{
|
||||||
ShowMsg(LOCALE_MESSAGEBOX_INFO, ErrorMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
ShowMsg(Caption, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisplayErrorMessage(const char * const ErrorMsg, const std::string &Caption)
|
||||||
|
{
|
||||||
|
ShowMsg(Caption, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisplayInfoMessage(const char * const InfoMsg)
|
||||||
|
{
|
||||||
|
ShowMsg(LOCALE_MESSAGEBOX_INFO, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisplayInfoMessage(const char * const InfoMsg, const neutrino_locale_t Caption)
|
||||||
|
{
|
||||||
|
ShowMsg(Caption, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DisplayInfoMessage(const char * const InfoMsg, const std::string &Caption)
|
||||||
|
{
|
||||||
|
ShowMsg(Caption, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||||
}
|
}
|
||||||
|
@@ -108,6 +108,10 @@ int ShowMsg(const std::string &Caption, const std::string & Text, const CMessage
|
|||||||
int ShowMsg(const std::string &Caption, const neutrino_locale_t 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 ShowMsg(const std::string &Caption, const neutrino_locale_t 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 DisplayErrorMessage(const char * const ErrorMsg, const neutrino_locale_t Caption); // UTF-8
|
||||||
|
void DisplayErrorMessage(const char * const ErrorMsg, const std::string &Caption); // UTF-8
|
||||||
void DisplayInfoMessage(const char * const InfoMsg); // UTF-8
|
void DisplayInfoMessage(const char * const InfoMsg); // UTF-8
|
||||||
|
void DisplayInfoMessage(const char * const InfoMsg, const neutrino_locale_t Caption); // UTF-8
|
||||||
|
void DisplayInfoMessage(const char * const InfoMsg, const std::string &Caption); // UTF-8
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user