Ref T180, dot commands to set rendering setup

* enable parts/debug messages via dot command
* allow to log to console via application context
This commit is contained in:
Klaus Basan
2017-11-05 20:15:01 +01:00
parent 1bf2f63589
commit 482023b2c0
7 changed files with 64 additions and 5 deletions

View File

@@ -62,6 +62,7 @@ using namespace BlackMisc::Network;
using namespace BlackGui::Components;
using namespace BlackCore;
using namespace BlackCore::Data;
using namespace BlackCore::Context;
BlackGui::CGuiApplication *sGui = nullptr; // set by constructor
@@ -732,6 +733,14 @@ namespace BlackGui
return true;
}
void CGuiApplication::onCoreFacadeStarted()
{
if (this->supportsContexts())
{
connect(this->getIContextApplication(), &IContextApplication::requestDisplayOnConsole, this, &CGuiApplication::displayTextInConsole);
}
}
void CGuiApplication::checkNewVersion(bool onlyIfNew)
{
if (!m_installDialog)

View File

@@ -224,6 +224,9 @@ namespace BlackGui
//! Handle parsing of special GUI cmd arguments
virtual bool parsingHookIn() override;
//! \copydoc BlackCore::CApplication::onCoreFacadeStarted
virtual void onCoreFacadeStarted() override;
//! Check for a new version (update)
void checkNewVersion(bool onlyIfNew);