mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
refs #485, moved central GUI functionality to sGui
* allow to send status message to main window (from everywhere) * Use sGui::changedStylesheet where possible * message when model is stashed * improved application startup
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b1353cefd4
commit
fb046ae1fb
@@ -54,6 +54,18 @@ SwiftGuiStd::SwiftGuiStd(BlackGui::CEnableForFramelessWindow::WindowMode windowM
|
||||
SwiftGuiStd::~SwiftGuiStd()
|
||||
{ }
|
||||
|
||||
bool SwiftGuiStd::displayInStatusBar(const CStatusMessage &message)
|
||||
{
|
||||
this->ps_displayStatusMessageInGui(message);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SwiftGuiStd::displayInOverlayWindow(const CStatusMessage &message)
|
||||
{
|
||||
this->ui->fr_CentralFrameInside->showOverlayMessage(message);
|
||||
return true;
|
||||
}
|
||||
|
||||
void SwiftGuiStd::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
if (!handleMouseMoveEvent(event)) { QMainWindow::mouseMoveEvent(event); }
|
||||
@@ -197,6 +209,7 @@ bool SwiftGuiStd::isContextAudioAvailableCheck()
|
||||
void SwiftGuiStd::ps_displayStatusMessageInGui(const CStatusMessage &statusMessage)
|
||||
{
|
||||
if (!this->m_init) { return; }
|
||||
// used with log subscriber
|
||||
if (statusMessage.wasHandledBy(this)) { return; }
|
||||
statusMessage.markAsHandledBy(this);
|
||||
this->m_statusBar.displayStatusMessage(statusMessage);
|
||||
|
||||
Reference in New Issue
Block a user