49 lines
1.4 KiB
C++
49 lines
1.4 KiB
C++
#ifndef P01_MianPage_H
|
|
#define P01_MianPage_H
|
|
|
|
#include <QWidget>
|
|
#include <QProgressBar>
|
|
#include <QLCDNumber>
|
|
#include <QLabel>
|
|
#include <PublicFunctions/BrushPad.h>
|
|
#include <PublicFunctions/ObjLoader.h>
|
|
namespace Ui {
|
|
class P01_MianPage;
|
|
}
|
|
|
|
class P01_MianPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit P01_MianPage(QWidget *parent = nullptr);
|
|
~P01_MianPage();
|
|
|
|
void uiInitHaulSpeed(int Max);
|
|
void uiInitMining(int Max,int Min);
|
|
void uiInitTransportPos(int MaxX,int MaxY);
|
|
void uiSetHaulSpeed(int SpeedL,int SpeedR);
|
|
void uiSetMining(float CenterHeight,uint16_t Roller_Diameter_mm);
|
|
void uiSetTransportPos(int rx,int ry);
|
|
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);
|
|
|
|
void SetStyleStr(QLabel *L,bool Status,QString TStr,QString FStr);
|
|
void SetStyleStr(QLabel *L,bool Extend,bool Shorten,QStringList StyStr);
|
|
void ProgressBar_LCD(QProgressBar *QPB,QLCDNumber *QLCD,QString NodeID,QString NodeID_Value,QStringList Colors);
|
|
private slots:
|
|
void UIRefreshTimeOut();
|
|
void TrailRefreshTimeOut();
|
|
void PageInit();
|
|
void Show3D();
|
|
void RotateDev();
|
|
private:
|
|
Ui::P01_MianPage *ui;
|
|
QString DevName3D = "";
|
|
uint16_t mAngle = 0;
|
|
ObjLoader *mObjLoader;
|
|
};
|
|
|
|
#endif // P01_MianPage_H
|