2025-08-20 23:06:28 +08:00
|
|
|
#ifndef P301_PUMPPAGE_H
|
|
|
|
|
#define P301_PUMPPAGE_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2025-09-15 22:28:43 +08:00
|
|
|
#include <QProgressBar>
|
|
|
|
|
#include <PublicFunctions/CurvePlotWidget.h>
|
2025-09-28 17:14:34 +08:00
|
|
|
#include <PublicFunctions/ObjLoader.h>
|
|
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class P301_PumpPage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class P301_PumpPage : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit P301_PumpPage(QWidget *parent = nullptr);
|
|
|
|
|
~P301_PumpPage();
|
2025-09-15 22:28:43 +08:00
|
|
|
void WinInit();
|
|
|
|
|
void SetProgressBar(QProgressBar *PB,uint16_t Value,uint8_t ColorIndex,QStringList Color);
|
2025-09-28 17:14:34 +08:00
|
|
|
void SetPos(float Zoom,QVector3D Move,QVector3D Pos);
|
2025-09-15 22:28:43 +08:00
|
|
|
private slots:
|
|
|
|
|
void UIRefreshTimeOut();
|
|
|
|
|
void TrailRefreshTimeOut();
|
2025-09-28 17:14:34 +08:00
|
|
|
void Show3D();
|
|
|
|
|
void RotateDev();
|
2025-08-20 23:06:28 +08:00
|
|
|
private:
|
|
|
|
|
Ui::P301_PumpPage *ui;
|
2025-09-15 22:28:43 +08:00
|
|
|
|
|
|
|
|
QStringList slOilTemp;
|
|
|
|
|
QStringList slOilLevel;
|
|
|
|
|
|
|
|
|
|
QStringList PercentageText;
|
|
|
|
|
QStringList TrueColor;
|
|
|
|
|
QStringList FalseColor;
|
2025-09-28 17:14:34 +08:00
|
|
|
QString DevName3D = "";
|
|
|
|
|
uint16_t mAngle = 0;
|
|
|
|
|
ObjLoader *mObjLoader;
|
2025-08-20 23:06:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // P301_PUMPPAGE_H
|