142 lines
4.6 KiB
C++
142 lines
4.6 KiB
C++
#ifndef MACHINETYPEFUN_H
|
|
#define MACHINETYPEFUN_H
|
|
|
|
#include <QObject>
|
|
#include <QTextCodec>
|
|
#include "items/itemsmanage.h"
|
|
#include "main.h"
|
|
#include <QHash>
|
|
|
|
enum PATTERNINFO{
|
|
FileName,//文件名
|
|
Index,//针数索引
|
|
Schedule,//进度
|
|
BeginPoint,//起始点
|
|
BeginPoint2,//起始点2
|
|
LocalPoint,//定位点
|
|
RangeX,//X范围
|
|
RangeY,//Y范围
|
|
Position,//位置
|
|
Position2,//位置2
|
|
ZCoor,//Z坐标
|
|
Production//产量
|
|
};
|
|
|
|
class MachineTypeFun : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MachineTypeFun(QObject *parent = 0);
|
|
|
|
public:
|
|
virtual ~MachineTypeFun();
|
|
|
|
public:
|
|
virtual QList <ParaItem> getParasListByMcSel();
|
|
virtual QList <OutCtrlItem> getOutCtrlListByFilter();
|
|
virtual QList <ShortCutItem> getShortCutListByFilter();
|
|
virtual QList <AssistItem> getAssistListByFilter();
|
|
virtual QList <PatternSetItem> getPatternSetListByFilter();
|
|
virtual QList <ParaSetItem> getParaSetListByFilter();
|
|
virtual QList <SensorItem> getSensorList();
|
|
virtual QList <SensorItem> getTempSensorList();
|
|
virtual QList <ErrorCodeStateItem> getErrorCodeAndStateList();
|
|
virtual const QHash<int,NineItem>& getNinebtn();
|
|
virtual const QList<PATTERNINFO>& getFileInfoMSG();
|
|
virtual void initNinebtn1234();
|
|
virtual void initFileInfoLabel();
|
|
virtual void initAssistList();
|
|
virtual void initPatternSetList();//花样设置
|
|
virtual void initParaSetList();//参数设置
|
|
virtual void initPatternsParasList();//花样参数
|
|
|
|
protected:
|
|
virtual void initRootParasList();//超级用户参数(包括机器参数、工作参数)
|
|
OutCtrlItem creatOpenCloseItem(int macType, int showPriority, QString name, int def);//打开关闭(放松,夹紧)
|
|
OutCtrlItem creatZeroForRevItem(int macType, int showPriority, QString name, int def);//(归零,正转,反转)
|
|
OutCtrlItem creatPNJoyItem(int macType, int showPriority, QString name, int def);//(正转,反转)
|
|
OutCtrlItem creatAscDscItem(int macType, int showPriority, QString name, int def);//(上升,下降)
|
|
OutCtrlItem creatStrRecItem(int macType, int showPriority, QString name, int def);//(伸出,收回)
|
|
OutCtrlItem creatEnableItem(int macType, int showPriority, QString name, int def, QString btnName);//(剪线)
|
|
OutCtrlItem creatZeroItem(int macType, int showPriority, QString name, int def);// (正转):转动
|
|
OutCtrlItem createExecuteItem(int macType, int showPriority, QString name, int def);//执行
|
|
public:
|
|
QList <ParaItem> m_allParasList;
|
|
QList <OutCtrlItem> m_allOutCtrlList;
|
|
|
|
QList <ShortCutItem> m_allShortCutList;
|
|
QList <AssistItem> m_allAssistList;
|
|
QList <PatternSetItem> m_allPatternSetList;
|
|
QList <ParaSetItem> m_allParaSetList;
|
|
QList <SensorItem> m_allSensorList;
|
|
QList <SensorItem> m_tempSensorList;
|
|
QList <ErrorCodeStateItem> m_allErrorCodeAndStateList;
|
|
|
|
protected:
|
|
QHash<int,NineItem> m_nineBtn; //九宫格四角按钮的机型化配置
|
|
QList<PATTERNINFO> m_fileInfo;//右上角花样信息显示
|
|
private:
|
|
void initAllSensorList();//初始化全部传感器列表
|
|
|
|
protected:
|
|
QString strManualAuto;
|
|
QString strClosedOpen;
|
|
QString strAllow;
|
|
QString strCurrentLocation;
|
|
QString strComLocation;
|
|
QString strParkingposition;
|
|
QString strFixedFrame;
|
|
QString strSlowDownMode; // 缝纫降速模式:0:自动降速,1参数降速,2不降速
|
|
QString strInvalid;
|
|
QString strImmediatelyReminder;
|
|
QString strImmediatelyReminder2;
|
|
QString strPersistentrefueling;
|
|
QString strRoundShockknife;
|
|
QString strContinuous;
|
|
QString strAcceleration;
|
|
QString strTrimList;
|
|
QString strEnable;
|
|
QString strDisable;
|
|
QString strJogP;
|
|
QString strJogN;
|
|
QString strTurn;
|
|
QString strZero;
|
|
QString strOpen;
|
|
QString strClose;
|
|
QString strAscend;
|
|
QString strDescend;
|
|
QString strRelease;
|
|
QString strTighten;
|
|
QString strTrim;
|
|
QString strPull;
|
|
QString strBack;
|
|
QString strStretch;
|
|
QString strRecover;
|
|
QString strStop;
|
|
QString strStart;
|
|
QString strSwing;
|
|
QString strRun;
|
|
QString strSewSource;
|
|
|
|
QString strStartButton ;
|
|
QString strPauseButton;
|
|
QString strPressDetection;
|
|
QString strZeroPosition ;
|
|
QString strDeceleration ;
|
|
QString strPositiveLimit ;
|
|
QString strSecurityInput ;
|
|
QString strSewingMachineHead;
|
|
QString strLowerLiftingLimit;
|
|
QString strLiftingUpperLimit;
|
|
QString strForwardLimit ;
|
|
QString strReverseLimit ;
|
|
QString strMotorAlarm ;
|
|
QString strMotorResetFailed;
|
|
|
|
};
|
|
|
|
extern QString createStrList(QStringList list);
|
|
|
|
|
|
#endif // MACHINETYPEFUN_H
|