Plasma Engine  2.0
Loading...
Searching...
No Matches
StatVisWidget.moc.h
1#pragma once
2
3#include <Foundation/Basics.h>
4#include <Foundation/Containers/Map.h>
5#include <Foundation/Strings/String.h>
6#include <Foundation/Time/Time.h>
7#include <Inspector/ui_StatVisWidget.h>
8#include <QAction>
9#include <QGraphicsView>
10#include <QListWidgetItem>
11#include <ads/DockWidget.h>
12
13class plQtStatVisWidget : public ads::CDockWidget, public Ui_StatVisWidget
14{
15public:
16 Q_OBJECT
17
18public:
19 static const plUInt8 s_uiMaxColors = 9;
20
21 plQtStatVisWidget(QWidget* pParent, plInt32 iWindowNumber);
23
24 void UpdateStats();
25
26 static plQtStatVisWidget* s_pWidget;
27
28 void AddStat(const plString& sStatPath, bool bEnabled = true, bool bRaiseWindow = true);
29
30 void Save();
31 void Load();
32
33private Q_SLOTS:
34
35 void on_ComboTimeframe_currentIndexChanged(int index);
36 void on_LineName_textChanged(const QString& text);
37 void on_SpinMin_valueChanged(double val);
38 void on_SpinMax_valueChanged(double val);
39 void on_ToggleVisible();
40 void on_ButtonRemove_clicked();
41 void on_ListStats_currentItemChanged(QListWidgetItem* current, QListWidgetItem* previous);
42
43public:
44 QAction m_ShowWindowAction;
45
46private:
47 QGraphicsPathItem* m_pPath[s_uiMaxColors];
48 QGraphicsPathItem* m_pPathMax;
49 QGraphicsScene m_Scene;
50
51 static plInt32 s_iCurColor;
52
53 plTime m_DisplayInterval;
54
55 plInt32 m_iWindowNumber;
56
57 struct StatsData
58 {
59 QListWidgetItem* m_pListItem = nullptr;
60 plUInt8 m_uiColor = 0;
61 };
62
64};
65
Definition Map.h:408
Definition StatVisWidget.moc.h:14
The time class encapsulates a double value storing the time in seconds.
Definition Time.h:12