mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +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
|
||||
{
|
||||
const CLogCategoryList &CInterpolationLogDisplay::getLogCategories()
|
||||
{
|
||||
static const CLogCategoryList cats { CLogCategory::interpolator(), CLogCategory::driver() };
|
||||
return cats;
|
||||
}
|
||||
|
||||
CInterpolationLogDisplay::CInterpolationLogDisplay(QWidget *parent) :
|
||||
COverlayMessagesFrame(parent),
|
||||
CIdentifiable(this),
|
||||
@@ -210,6 +216,7 @@ namespace BlackGui
|
||||
if (!m_simulator)
|
||||
{
|
||||
this->stop();
|
||||
CLogMessage(this).warning(u"Stopping logging (log.display), no simulator");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -239,6 +246,7 @@ namespace BlackGui
|
||||
{
|
||||
this->initPartsView();
|
||||
}
|
||||
CLogMessage(this).info(u"Starting logging (log.display) of '%1'") << m_callsign;
|
||||
}
|
||||
|
||||
void CInterpolationLogDisplay::onPseudoElevationToggled(bool checked)
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "blackmisc/simulation/interpolationlogger.h"
|
||||
#include "blackmisc/aviation/aircraftsituationlist.h"
|
||||
#include "blackmisc/aviation/callsign.h"
|
||||
#include "blackmisc/logcategorylist.h"
|
||||
#include "blackmisc/identifiable.h"
|
||||
|
||||
#include <QStringListModel>
|
||||
@@ -41,6 +42,9 @@ namespace BlackGui
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Categories
|
||||
static const BlackMisc::CLogCategoryList &getLogCategories();
|
||||
|
||||
//! Tabs
|
||||
enum Tab
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user