25 lines
446 B
C++
25 lines
446 B
C++
#ifndef PTPCODE_H
|
|
#define PTPCODE_H
|
|
#include<QString>
|
|
|
|
class PTPCode
|
|
{
|
|
public:
|
|
explicit PTPCode();
|
|
QString getCode();
|
|
void setMoveType(bool value);
|
|
void setTargetPos(QString value);
|
|
void setMoveAxis(QString value);
|
|
private:
|
|
QString getMoveCMDText();
|
|
|
|
private:
|
|
QString RMove{"PTP/ER"};
|
|
QString ABSMove{"PTP/E"};
|
|
QString moveAxis{""};
|
|
QString targetPos{""};
|
|
bool moveType{false};
|
|
};
|
|
|
|
#endif // PTPCODE_H
|