refs #338 Added class CLogSubscriber, a helper for subscribing to log messages matching a certain pattern, with the ability to change the pattern at runtime.

This commit is contained in:
Mathew Sutcliffe
2014-10-24 17:21:48 +01:00
parent 0f888b8d89
commit 7a133bde11
4 changed files with 89 additions and 2 deletions

View File

@@ -32,6 +32,7 @@
#include "blackgui/models/statusmessagelistmodel.h"
#include "blackgui/models/keyboardkeylistmodel.h"
#include "blackmisc/nwtextmessage.h"
#include "blackmisc/loghandler.h"
#include "blacksound/soundgenerator.h"
#include <QMainWindow>
#include <QTextEdit>
@@ -88,6 +89,8 @@ private:
GuiModes::WindowMode m_windowMode;
BlackInput::IKeyboard *m_keyboard; //!< hotkeys
BlackMisc::CLogSubscriber m_logSubscriber { this, &MainWindow::ps_displayStatusMessageInGui };
// contexts
bool m_coreAvailable;
bool m_contextNetworkAvailable;