mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Ref T131, display in overlay window (BlackMisc::CStatusMessageList)
This commit is contained in:
@@ -45,4 +45,12 @@ namespace BlackGui
|
|||||||
m_mwaOverlayFrame->showOverlayMessage(message, timeOutMs);
|
m_mwaOverlayFrame->showOverlayMessage(message, timeOutMs);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IMainWindowAccess::displayInOverlayWindow(const CStatusMessageList &messages, int timeOutMs)
|
||||||
|
{
|
||||||
|
if (messages.isEmpty()) { return false; }
|
||||||
|
if (!m_mwaOverlayFrame) { return false; }
|
||||||
|
m_mwaOverlayFrame->showOverlayMessages(messages, false, timeOutMs);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#define BLACKGUI_MAINWINDOWACCESS_H
|
#define BLACKGUI_MAINWINDOWACCESS_H
|
||||||
|
|
||||||
#include "blackgui/blackguiexport.h"
|
#include "blackgui/blackguiexport.h"
|
||||||
#include "blackmisc/statusmessage.h"
|
#include "blackmisc/statusmessagelist.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
@@ -40,6 +40,9 @@ namespace BlackGui
|
|||||||
//! Display in overlay window
|
//! Display in overlay window
|
||||||
virtual bool displayInOverlayWindow(const BlackMisc::CStatusMessage &message, int timeOutMs = -1);
|
virtual bool displayInOverlayWindow(const BlackMisc::CStatusMessage &message, int timeOutMs = -1);
|
||||||
|
|
||||||
|
//! Display in overlay window
|
||||||
|
virtual bool displayInOverlayWindow(const BlackMisc::CStatusMessageList &messages, int timeOutMs = -1);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Components::CLogComponent *m_mwaLogComponent = nullptr; //!< the log component if any
|
Components::CLogComponent *m_mwaLogComponent = nullptr; //!< the log component if any
|
||||||
CManagedStatusBar *m_mwaStatusBar = nullptr; //!< status bar if any
|
CManagedStatusBar *m_mwaStatusBar = nullptr; //!< status bar if any
|
||||||
|
|||||||
Reference in New Issue
Block a user