Ref T515, some minor adjustments

* use validation status messages for prerequisites
* SwiftGuiStd::onRequestedConsoleMessage
* displayInOverlayWindow for HTML messages
This commit is contained in:
Klaus Basan
2019-01-21 09:00:57 +01:00
committed by Mat Sutcliffe
parent cea6611656
commit 85cf339e04
6 changed files with 27 additions and 12 deletions

View File

@@ -53,4 +53,12 @@ namespace BlackGui
m_mwaOverlayFrame->showOverlayMessages(messages, false, timeOutMs);
return true;
}
bool IMainWindowAccess::displayInOverlayWindow(const QString &html, int timeOutMs)
{
if (html.isEmpty()) { return false; }
if (!m_mwaOverlayFrame) { return false; }
m_mwaOverlayFrame->showOverlayHTMLMessage(html, timeOutMs);
return true;
}
} // ns

View File

@@ -52,6 +52,9 @@ namespace BlackGui
//! Display in overlay window
virtual bool displayInOverlayWindow(const BlackMisc::CStatusMessageList &messages, int timeOutMs = -1);
//! Display in overlay window
virtual bool displayInOverlayWindow(const QString &html, int timeOutMs = -1);
protected:
Components::CLogComponent *m_mwaLogComponent = nullptr; //!< the log component if any
CManagedStatusBar *m_mwaStatusBar = nullptr; //!< status bar if any