mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
refs #316 Removed old logging mechanism in contexts.
This commit is contained in:
@@ -323,13 +323,6 @@ void MainWindow::ps_displayStatusMessagesInGui(const CStatusMessageList &message
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::displayRedirectedOutput(const CStatusMessage &statusMessage, qint64 contextId)
|
||||
{
|
||||
if (!this->getIContextApplication()) return;
|
||||
if (this->getIContextApplication()->getUniqueId() == contextId) return; //self triggered
|
||||
this->ui->comp_MainInfoArea->getLogComponent()->appendStatusMessageToConsole(statusMessage);
|
||||
}
|
||||
|
||||
void MainWindow::ps_onChangedSetttings(uint typeValue)
|
||||
{
|
||||
IContextSettings::SettingsType type = static_cast<IContextSettings::SettingsType>(typeValue);
|
||||
|
||||
@@ -187,9 +187,6 @@ private slots:
|
||||
//! Display status messages
|
||||
void ps_displayStatusMessagesInGui(const BlackMisc::CStatusMessageList &messages);
|
||||
|
||||
//! Redirected output
|
||||
void displayRedirectedOutput(const BlackMisc::CStatusMessage &sendStatusMessage, qint64 contextId);
|
||||
|
||||
//! Settings have been changed
|
||||
void ps_onChangedSetttings(uint typeValue);
|
||||
|
||||
|
||||
@@ -98,7 +98,6 @@ void MainWindow::init(const CRuntimeConfig &runtimeConfig)
|
||||
bool connect;
|
||||
this->connect(this->getIContextApplication(), &IContextApplication::statusMessage, this, &MainWindow::ps_displayStatusMessageInGui);
|
||||
this->connect(this->getIContextApplication(), &IContextApplication::statusMessages, this, &MainWindow::ps_displayStatusMessagesInGui);
|
||||
this->connect(this->getIContextApplication(), &IContextApplication::redirectedOutput, this, &MainWindow::displayRedirectedOutput);
|
||||
this->connect(this->getIContextNetwork(), &IContextNetwork::connectionTerminated, this, &MainWindow::ps_onConnectionTerminated);
|
||||
this->connect(this->getIContextNetwork(), &IContextNetwork::connectionStatusChanged, this, &MainWindow::ps_onConnectionStatusChanged);
|
||||
connect = this->connect(this->getIContextNetwork(), SIGNAL(textMessagesReceived(BlackMisc::Network::CTextMessageList)), this->ui->comp_MainInfoArea->getTextMessageComponent(), SLOT(appendTextMessagesToGui(BlackMisc::Network::CTextMessageList)));
|
||||
|
||||
Reference in New Issue
Block a user