2025-08-20 23:06:28 +08:00
|
|
|
#ifndef P01_MianPage_H
|
|
|
|
|
#define P01_MianPage_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
2025-09-15 22:28:43 +08:00
|
|
|
#include <QProgressBar>
|
|
|
|
|
#include <QLCDNumber>
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
#include <PublicFunctions/BrushPad.h>
|
2025-08-20 23:06:28 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class P01_MianPage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class P01_MianPage : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit P01_MianPage(QWidget *parent = nullptr);
|
|
|
|
|
~P01_MianPage();
|
|
|
|
|
void PageInit();
|
|
|
|
|
void uiInitHaulSpeed(int Max);
|
|
|
|
|
void uiInitMining(int Max,int Min);
|
|
|
|
|
void uiInitTransportPos(int MaxX,int MaxY);
|
|
|
|
|
void uiSetHaulSpeed(int SpeedL,int SpeedR);
|
|
|
|
|
void uiSetMining(int Value);
|
|
|
|
|
void uiSetTransportPos(int rx,int ry);
|
2025-09-15 22:28:43 +08:00
|
|
|
void uiRollerPosition(uint8_t Index,uint16_t aX,uint16_t aY);
|
|
|
|
|
void PB_Refresh(QString Dev);
|
|
|
|
|
void SetProgressBar(QProgressBar *PB,uint16_t Value,uint8_t ColorIndex,QStringList Color);
|
|
|
|
|
private slots:
|
|
|
|
|
void UIRefreshTimeOut();
|
|
|
|
|
void TrailRefreshTimeOut();
|
2025-08-20 23:06:28 +08:00
|
|
|
private:
|
|
|
|
|
Ui::P01_MianPage *ui;
|
2025-09-15 22:28:43 +08:00
|
|
|
|
2025-08-20 23:06:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // P01_MianPage_H
|