mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Ref T773, log.categories for log.display and messages if logging starts
This commit is contained in:
committed by
Mat Sutcliffe
parent
af12325856
commit
1d9fd71305
@@ -33,6 +33,12 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
|
const CLogCategoryList &CInterpolationLogDisplay::getLogCategories()
|
||||||
|
{
|
||||||
|
static const CLogCategoryList cats { CLogCategory::interpolator(), CLogCategory::driver() };
|
||||||
|
return cats;
|
||||||
|
}
|
||||||
|
|
||||||
CInterpolationLogDisplay::CInterpolationLogDisplay(QWidget *parent) :
|
CInterpolationLogDisplay::CInterpolationLogDisplay(QWidget *parent) :
|
||||||
COverlayMessagesFrame(parent),
|
COverlayMessagesFrame(parent),
|
||||||
CIdentifiable(this),
|
CIdentifiable(this),
|
||||||
@@ -210,6 +216,7 @@ namespace BlackGui
|
|||||||
if (!m_simulator)
|
if (!m_simulator)
|
||||||
{
|
{
|
||||||
this->stop();
|
this->stop();
|
||||||
|
CLogMessage(this).warning(u"Stopping logging (log.display), no simulator");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,6 +246,7 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
this->initPartsView();
|
this->initPartsView();
|
||||||
}
|
}
|
||||||
|
CLogMessage(this).info(u"Starting logging (log.display) of '%1'") << m_callsign;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CInterpolationLogDisplay::onPseudoElevationToggled(bool checked)
|
void CInterpolationLogDisplay::onPseudoElevationToggled(bool checked)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#include "blackmisc/simulation/interpolationlogger.h"
|
#include "blackmisc/simulation/interpolationlogger.h"
|
||||||
#include "blackmisc/aviation/aircraftsituationlist.h"
|
#include "blackmisc/aviation/aircraftsituationlist.h"
|
||||||
#include "blackmisc/aviation/callsign.h"
|
#include "blackmisc/aviation/callsign.h"
|
||||||
|
#include "blackmisc/logcategorylist.h"
|
||||||
#include "blackmisc/identifiable.h"
|
#include "blackmisc/identifiable.h"
|
||||||
|
|
||||||
#include <QStringListModel>
|
#include <QStringListModel>
|
||||||
@@ -41,6 +42,9 @@ namespace BlackGui
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
//! Categories
|
||||||
|
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||||
|
|
||||||
//! Tabs
|
//! Tabs
|
||||||
enum Tab
|
enum Tab
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user