/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Inspector/StatVisWidget.moc.h
64 строки
1 KB
Jan Krassnigg
Updated ADS and fixed document layout restoration (#1497)
28 фев 2025, 12:35
Не верифицирован
28 фев 2025, 12:35
2e065c5
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Foundation/Containers/Map.h> #include <Foundation/Strings/String.h> #include <Foundation/Time/Time.h> #include <Inspector/ui_StatVisWidget.h> #include <QAction> #include <QGraphicsView> #include <QListWidgetItem> #include <ads/DockWidget.h> class ezQtStatVisWidget : public ads::CDockWidget, public Ui_StatVisWidget { public: Q_OBJECT public: static const ezUInt8 s_uiMaxColors = 9; ezQtStatVisWidget(ads::CDockManager* pDockManager, QWidget* pParent, ezInt32 iWindowNumber); ~ezQtStatVisWidget(); void UpdateStats(); static ezQtStatVisWidget* s_pWidget; void AddStat(const ezString& sStatPath, bool bEnabled = true, bool bRaiseWindow = true); void Save(); void Load(); private Q_SLOTS: void on_ComboTimeframe_currentIndexChanged(int index); void on_LineName_textChanged(const QString& text); void on_SpinMin_valueChanged(double val); void on_SpinMax_valueChanged(double val); void on_ToggleVisible(); void on_ButtonRemove_clicked(); void on_ListStats_currentItemChanged(QListWidgetItem* current, QListWidgetItem* previous); public: QAction m_ShowWindowAction; private: QGraphicsPathItem* m_pPath[s_uiMaxColors]; QGraphicsPathItem* m_pPathMax; QGraphicsScene m_Scene; static ezInt32 s_iCurColor; ezTime m_DisplayInterval; ezInt32 m_iWindowNumber; struct StatsData { QListWidgetItem* m_pListItem = nullptr; ezUInt8 m_uiColor = 0; }; ezMap<ezString, StatsData> m_Stats; };