Ref T270, interpolation log improvements

* last interpolation tab
* display scenery offset
* UI formatting
* using COverlayMessagesFrame
This commit is contained in:
Klaus Basan
2018-05-31 19:34:04 +02:00
parent 04110447c8
commit eeaa5d8bf6
3 changed files with 309 additions and 180 deletions

View File

@@ -12,6 +12,7 @@
#ifndef BLACKGUI_COMPONENTS_INTERPOLATIONLOGDISPLAY_H
#define BLACKGUI_COMPONENTS_INTERPOLATIONLOGDISPLAY_H
#include "blackgui/overlaymessagesframe.h"
#include "blackgui/blackguiexport.h"
#include "blackcore/simulatorcommon.h"
#include "blackmisc/aviation/callsign.h"
@@ -29,7 +30,7 @@ namespace BlackGui
/**
* Display live data of interpolation
*/
class BLACKGUI_EXPORT CInterpolationLogDisplay : public QFrame
class BLACKGUI_EXPORT CInterpolationLogDisplay : public COverlayMessagesFrame
{
Q_OBJECT
@@ -38,6 +39,7 @@ namespace BlackGui
enum Tab
{
TabFlow,
TabInterpolation,
TabTextLog
};
@@ -60,6 +62,9 @@ namespace BlackGui
//! Update log.
void updateLog();
//! Get last interpolation
void displayLastInterpolation();
//! Slider interval
void onSliderChanged(int timeSecs);