Ref T171, added statistics in emulated driver

* UI part
* fixed minor typo
* fixed setting of rendered flag
* UI connections Qt::QueuedConnection
This commit is contained in:
Klaus Basan
2017-10-10 22:21:14 +02:00
parent 8fcfcdaac6
commit 4cfa6189da
5 changed files with 197 additions and 21 deletions

View File

@@ -12,12 +12,14 @@
#ifndef BLACKSIMPLUGIN_EMULATED_SIMULATOREMULATEDMONITORDIALOG_H
#define BLACKSIMPLUGIN_EMULATED_SIMULATOREMULATEDMONITORDIALOG_H
#include <QDialog>
#include <QScopedPointer>
#include "blackmisc/simulation/simulatedaircraft.h"
#include "blackmisc/statusmessagelist.h"
#include "blackmisc/logcategorylist.h"
#include <QDialog>
#include <QScopedPointer>
#include <QTimer>
namespace Ui { class CSimulatorEmulatedMonitorDialog; }
namespace BlackSimPlugin
{
@@ -85,10 +87,17 @@ namespace BlackSimPlugin
void setSimulatorUiValues();
//! Set values from internal aircraft
void setInteralAircraftUiValues();
void setInternalAircraftUiValues();
//! Timer based UI updates (pulling)
void timerBasedUiUpdates();
//! Reset statistics
void resetStatistics();
QScopedPointer<Ui::CSimulatorEmulatedMonitorDialog> ui;
CSimulatorEmulated *m_simulator = nullptr;
QTimer m_uiUpdateTimer { this };
};
} // ns
} // ns