hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,313 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'dlgQrCode.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 4.8.5
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_DLGQRCODE_H
|
||||
#define UI_DLGQRCODE_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QGraphicsView>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QPushButton>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_dlgQrCode
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout_4;
|
||||
QGridLayout *gridLayout;
|
||||
QGridLayout *gridLayout_3;
|
||||
QPushButton *pushBtnClose;
|
||||
QComboBox *comboBoxType;
|
||||
QPushButton *pushBtnSave;
|
||||
QPushButton *pushBtnPreView;
|
||||
QComboBox *comboBoxInkColor;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QLabel *labelVarInc;
|
||||
QLineEdit *lineEditVarInc;
|
||||
QGridLayout *gridLayout_2;
|
||||
QHBoxLayout *horizontalLayout_3;
|
||||
QLabel *label_2;
|
||||
QLineEdit *lineEditCNT;
|
||||
QLabel *label_3;
|
||||
QLineEdit *lineEditIn2;
|
||||
QLineEdit *lineEditIn;
|
||||
QHBoxLayout *horizontalLayout_7;
|
||||
QLabel *label_4;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QLabel *labRECT;
|
||||
QCheckBox *checkBoxAutoCount;
|
||||
QCheckBox *checkBoxAuto;
|
||||
QCheckBox *checkBox;
|
||||
QLabel *labName;
|
||||
QLineEdit *lineEdit;
|
||||
QGraphicsView *BarCodeView;
|
||||
QCheckBox *barCodeCheckBox;
|
||||
QComboBox *comboBox_DMType;
|
||||
QLabel *label;
|
||||
QCheckBox *checkBoxInsertTime;
|
||||
|
||||
void setupUi(QDialog *dlgQrCode)
|
||||
{
|
||||
if (dlgQrCode->objectName().isEmpty())
|
||||
dlgQrCode->setObjectName(QString::fromUtf8("dlgQrCode"));
|
||||
dlgQrCode->resize(560, 300);
|
||||
dlgQrCode->setFocusPolicy(Qt::StrongFocus);
|
||||
dlgQrCode->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icon/bypm.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
dlgQrCode->setWindowIcon(icon);
|
||||
dlgQrCode->setSizeGripEnabled(false);
|
||||
gridLayout_4 = new QGridLayout(dlgQrCode);
|
||||
gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
|
||||
gridLayout = new QGridLayout();
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
gridLayout_3 = new QGridLayout();
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
pushBtnClose = new QPushButton(dlgQrCode);
|
||||
pushBtnClose->setObjectName(QString::fromUtf8("pushBtnClose"));
|
||||
pushBtnClose->setMinimumSize(QSize(120, 0));
|
||||
|
||||
gridLayout_3->addWidget(pushBtnClose, 2, 3, 1, 1);
|
||||
|
||||
comboBoxType = new QComboBox(dlgQrCode);
|
||||
comboBoxType->setObjectName(QString::fromUtf8("comboBoxType"));
|
||||
|
||||
gridLayout_3->addWidget(comboBoxType, 0, 2, 1, 1);
|
||||
|
||||
pushBtnSave = new QPushButton(dlgQrCode);
|
||||
pushBtnSave->setObjectName(QString::fromUtf8("pushBtnSave"));
|
||||
|
||||
gridLayout_3->addWidget(pushBtnSave, 1, 3, 1, 1);
|
||||
|
||||
pushBtnPreView = new QPushButton(dlgQrCode);
|
||||
pushBtnPreView->setObjectName(QString::fromUtf8("pushBtnPreView"));
|
||||
|
||||
gridLayout_3->addWidget(pushBtnPreView, 0, 3, 1, 1);
|
||||
|
||||
comboBoxInkColor = new QComboBox(dlgQrCode);
|
||||
comboBoxInkColor->setObjectName(QString::fromUtf8("comboBoxInkColor"));
|
||||
|
||||
gridLayout_3->addWidget(comboBoxInkColor, 1, 2, 1, 1);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
labelVarInc = new QLabel(dlgQrCode);
|
||||
labelVarInc->setObjectName(QString::fromUtf8("labelVarInc"));
|
||||
labelVarInc->setMaximumSize(QSize(120, 16777215));
|
||||
labelVarInc->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
||||
|
||||
horizontalLayout_2->addWidget(labelVarInc);
|
||||
|
||||
lineEditVarInc = new QLineEdit(dlgQrCode);
|
||||
lineEditVarInc->setObjectName(QString::fromUtf8("lineEditVarInc"));
|
||||
lineEditVarInc->setMaximumSize(QSize(80, 16777215));
|
||||
lineEditVarInc->setInputMethodHints(Qt::ImhDigitsOnly);
|
||||
lineEditVarInc->setMaxLength(4);
|
||||
|
||||
horizontalLayout_2->addWidget(lineEditVarInc);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(horizontalLayout_2, 2, 2, 1, 1);
|
||||
|
||||
|
||||
gridLayout->addLayout(gridLayout_3, 0, 2, 1, 3);
|
||||
|
||||
gridLayout_2 = new QGridLayout();
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
horizontalLayout_3 = new QHBoxLayout();
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
label_2 = new QLabel(dlgQrCode);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
|
||||
horizontalLayout_3->addWidget(label_2);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_3, 0, 0, 1, 1);
|
||||
|
||||
lineEditCNT = new QLineEdit(dlgQrCode);
|
||||
lineEditCNT->setObjectName(QString::fromUtf8("lineEditCNT"));
|
||||
lineEditCNT->setMaximumSize(QSize(80, 16777215));
|
||||
lineEditCNT->setInputMethodHints(Qt::ImhDigitsOnly);
|
||||
lineEditCNT->setMaxLength(10);
|
||||
|
||||
gridLayout_2->addWidget(lineEditCNT, 1, 1, 1, 1);
|
||||
|
||||
label_3 = new QLabel(dlgQrCode);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
|
||||
gridLayout_2->addWidget(label_3, 0, 1, 1, 1);
|
||||
|
||||
lineEditIn2 = new QLineEdit(dlgQrCode);
|
||||
lineEditIn2->setObjectName(QString::fromUtf8("lineEditIn2"));
|
||||
lineEditIn2->setMaxLength(80);
|
||||
|
||||
gridLayout_2->addWidget(lineEditIn2, 1, 3, 1, 1);
|
||||
|
||||
lineEditIn = new QLineEdit(dlgQrCode);
|
||||
lineEditIn->setObjectName(QString::fromUtf8("lineEditIn"));
|
||||
lineEditIn->setMaxLength(100);
|
||||
|
||||
gridLayout_2->addWidget(lineEditIn, 1, 0, 1, 1);
|
||||
|
||||
horizontalLayout_7 = new QHBoxLayout();
|
||||
horizontalLayout_7->setObjectName(QString::fromUtf8("horizontalLayout_7"));
|
||||
label_4 = new QLabel(dlgQrCode);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
|
||||
horizontalLayout_7->addWidget(label_4);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(horizontalLayout_7, 0, 3, 1, 1);
|
||||
|
||||
|
||||
gridLayout->addLayout(gridLayout_2, 5, 0, 1, 5);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
labRECT = new QLabel(dlgQrCode);
|
||||
labRECT->setObjectName(QString::fromUtf8("labRECT"));
|
||||
|
||||
horizontalLayout->addWidget(labRECT);
|
||||
|
||||
checkBoxAutoCount = new QCheckBox(dlgQrCode);
|
||||
checkBoxAutoCount->setObjectName(QString::fromUtf8("checkBoxAutoCount"));
|
||||
|
||||
horizontalLayout->addWidget(checkBoxAutoCount);
|
||||
|
||||
checkBoxAuto = new QCheckBox(dlgQrCode);
|
||||
checkBoxAuto->setObjectName(QString::fromUtf8("checkBoxAuto"));
|
||||
|
||||
horizontalLayout->addWidget(checkBoxAuto);
|
||||
|
||||
checkBox = new QCheckBox(dlgQrCode);
|
||||
checkBox->setObjectName(QString::fromUtf8("checkBox"));
|
||||
|
||||
horizontalLayout->addWidget(checkBox);
|
||||
|
||||
labName = new QLabel(dlgQrCode);
|
||||
labName->setObjectName(QString::fromUtf8("labName"));
|
||||
labName->setMinimumSize(QSize(120, 0));
|
||||
labName->setMaximumSize(QSize(160, 16777215));
|
||||
|
||||
horizontalLayout->addWidget(labName);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout, 3, 0, 1, 5);
|
||||
|
||||
lineEdit = new QLineEdit(dlgQrCode);
|
||||
lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
|
||||
lineEdit->setEnabled(false);
|
||||
lineEdit->setMaxLength(200);
|
||||
lineEdit->setReadOnly(true);
|
||||
|
||||
gridLayout->addWidget(lineEdit, 6, 0, 1, 5);
|
||||
|
||||
BarCodeView = new QGraphicsView(dlgQrCode);
|
||||
BarCodeView->setObjectName(QString::fromUtf8("BarCodeView"));
|
||||
BarCodeView->setMaximumSize(QSize(16777215, 600));
|
||||
|
||||
gridLayout->addWidget(BarCodeView, 0, 0, 1, 2);
|
||||
|
||||
barCodeCheckBox = new QCheckBox(dlgQrCode);
|
||||
barCodeCheckBox->setObjectName(QString::fromUtf8("barCodeCheckBox"));
|
||||
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(barCodeCheckBox->sizePolicy().hasHeightForWidth());
|
||||
barCodeCheckBox->setSizePolicy(sizePolicy);
|
||||
|
||||
gridLayout->addWidget(barCodeCheckBox, 4, 0, 1, 1);
|
||||
|
||||
comboBox_DMType = new QComboBox(dlgQrCode);
|
||||
comboBox_DMType->setObjectName(QString::fromUtf8("comboBox_DMType"));
|
||||
comboBox_DMType->setMinimumSize(QSize(0, 0));
|
||||
|
||||
gridLayout->addWidget(comboBox_DMType, 4, 2, 1, 1);
|
||||
|
||||
label = new QLabel(dlgQrCode);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label, 4, 1, 1, 1);
|
||||
|
||||
checkBoxInsertTime = new QCheckBox(dlgQrCode);
|
||||
checkBoxInsertTime->setObjectName(QString::fromUtf8("checkBoxInsertTime"));
|
||||
sizePolicy.setHeightForWidth(checkBoxInsertTime->sizePolicy().hasHeightForWidth());
|
||||
checkBoxInsertTime->setSizePolicy(sizePolicy);
|
||||
|
||||
gridLayout->addWidget(checkBoxInsertTime, 4, 4, 1, 1);
|
||||
|
||||
|
||||
gridLayout_4->addLayout(gridLayout, 1, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(dlgQrCode);
|
||||
|
||||
QMetaObject::connectSlotsByName(dlgQrCode);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *dlgQrCode)
|
||||
{
|
||||
dlgQrCode->setWindowTitle(QApplication::translate("dlgQrCode", "Dialog", 0, QApplication::UnicodeUTF8));
|
||||
pushBtnClose->setText(QApplication::translate("dlgQrCode", "\350\277\224\345\233\236", 0, QApplication::UnicodeUTF8));
|
||||
comboBoxType->clear();
|
||||
comboBoxType->insertItems(0, QStringList()
|
||||
<< QApplication::translate("dlgQrCode", "DataMatrix", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "QRCode", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
pushBtnSave->setText(QApplication::translate("dlgQrCode", "\344\277\235\345\255\230", 0, QApplication::UnicodeUTF8));
|
||||
pushBtnPreView->setText(QApplication::translate("dlgQrCode", "\351\242\204\350\247\210", 0, QApplication::UnicodeUTF8));
|
||||
comboBoxInkColor->clear();
|
||||
comboBoxInkColor->insertItems(0, QStringList()
|
||||
<< QApplication::translate("dlgQrCode", "\346\255\243\347\233\270\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "\345\217\215\347\233\270\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
labelVarInc->setText(QApplication::translate("dlgQrCode", "\345\217\230\351\207\217\345\242\236\351\207\217", 0, QApplication::UnicodeUTF8));
|
||||
label_2->setText(QApplication::translate("dlgQrCode", "\344\277\241\346\201\257\345\211\215\347\274\200", 0, QApplication::UnicodeUTF8));
|
||||
label_3->setText(QApplication::translate("dlgQrCode", "\345\217\230\351\207\217(\345\210\235\345\200\274)", 0, QApplication::UnicodeUTF8));
|
||||
label_4->setText(QApplication::translate("dlgQrCode", "\344\277\241\346\201\257\345\220\216\347\274\200", 0, QApplication::UnicodeUTF8));
|
||||
labRECT->setText(QApplication::translate("dlgQrCode", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxAutoCount->setText(QApplication::translate("dlgQrCode", "\350\256\241\346\225\260\345\231\250(\345\217\230\351\207\217)", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxAuto->setText(QApplication::translate("dlgQrCode", "\350\207\252\345\212\250\345\210\267\346\226\260", 0, QApplication::UnicodeUTF8));
|
||||
checkBox->setText(QApplication::translate("dlgQrCode", "\346\217\222\345\205\245\346\226\207\346\241\243", 0, QApplication::UnicodeUTF8));
|
||||
labName->setText(QApplication::translate("dlgQrCode", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
barCodeCheckBox->setText(QApplication::translate("dlgQrCode", "\346\235\241\345\275\242\347\240\201", 0, QApplication::UnicodeUTF8));
|
||||
comboBox_DMType->clear();
|
||||
comboBox_DMType->insertItems(0, QStringList()
|
||||
<< QApplication::translate("dlgQrCode", "\351\273\230\350\256\244", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "8 x 18", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "8 x 32", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "12 x 26", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "12 x 36", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "16 x 36", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("dlgQrCode", "16 x 48", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
label->setText(QApplication::translate("dlgQrCode", "DM\347\240\201\345\260\272\345\257\270:", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxInsertTime->setText(QApplication::translate("dlgQrCode", "\350\207\252\345\212\250\346\217\222\345\205\245\346\227\266\351\227\264", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class dlgQrCode: public Ui_dlgQrCode {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_DLGQRCODE_H
|
||||
@@ -0,0 +1,74 @@
|
||||
#ifndef FILETRANSECEIVER_H
|
||||
#define FILETRANSECEIVER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QThread>
|
||||
#include<stdio.h>
|
||||
#include<sys/types.h>
|
||||
#include<sys/socket.h>
|
||||
#include<netinet/in.h>
|
||||
#include<arpa/inet.h>
|
||||
#include<string.h>
|
||||
#include<stdlib.h>
|
||||
#include<unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <QMessageBox>
|
||||
#include <QDebug>
|
||||
#include <QFile>
|
||||
#define DOC_DIR "/home/plg/doc"
|
||||
#define SEARCH 100
|
||||
#define DOWN 200
|
||||
#define END 500
|
||||
#define FAIL 300
|
||||
#define SUCCESS 400
|
||||
#define UP 600
|
||||
#define UPGRADE 601
|
||||
|
||||
struct msg
|
||||
{
|
||||
int type;
|
||||
int flag;
|
||||
char buf[64];
|
||||
char fname[100];
|
||||
};
|
||||
|
||||
struct datasNet
|
||||
{
|
||||
unsigned char Header[2];//0x51,0xa5
|
||||
unsigned char InstructionCode:8;//0x1,0x2,0x3...
|
||||
unsigned char DataLenght[4];
|
||||
unsigned char *Data;
|
||||
unsigned char Checksum;
|
||||
unsigned char Ender[2];//0xa5,0x5a
|
||||
};
|
||||
typedef unsigned char UCHAR;
|
||||
|
||||
class FileTranseceiver : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FileTranseceiver(uint16_t hostshort);
|
||||
~FileTranseceiver(void);
|
||||
|
||||
int ftp_download(int connfd,struct msg info);
|
||||
int upload_ftp(int connfd,struct msg info);
|
||||
void start();
|
||||
void showData(QString tag,QByteArray dat)const;
|
||||
|
||||
protected slots:
|
||||
void connectListen();
|
||||
private:
|
||||
uint16_t port;
|
||||
int sockfd;
|
||||
int connfd;
|
||||
QThread *serverThead;
|
||||
int upload_and_upgrade(int connfd, msg info);
|
||||
void connectListen5001();
|
||||
void connectListen5002();
|
||||
bool CheckSumIn( UCHAR *buf, unsigned int len);
|
||||
signals:
|
||||
void fileRecieved(QString fileName);
|
||||
};
|
||||
|
||||
#endif // FILETRANSECEIVER_H
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 318 KiB |
@@ -0,0 +1,418 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'mainwindow.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../mainwindow.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'mainwindow.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 63
|
||||
#error "This file was generated using the moc from 4.8.5. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
static const uint qt_meta_data_MainWindow[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
78, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
17, // signalCount
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
12, 11, 11, 11, 0x05,
|
||||
29, 11, 11, 11, 0x05,
|
||||
51, 11, 11, 11, 0x05,
|
||||
64, 11, 11, 11, 0x05,
|
||||
83, 11, 11, 11, 0x05,
|
||||
101, 99, 11, 11, 0x05,
|
||||
135, 11, 11, 11, 0x05,
|
||||
150, 11, 11, 11, 0x05,
|
||||
160, 11, 11, 11, 0x05,
|
||||
189, 11, 11, 11, 0x05,
|
||||
207, 11, 11, 11, 0x05,
|
||||
227, 11, 11, 11, 0x05,
|
||||
247, 11, 11, 11, 0x05,
|
||||
267, 11, 11, 11, 0x05,
|
||||
281, 99, 11, 11, 0x05,
|
||||
309, 11, 11, 11, 0x05,
|
||||
325, 11, 11, 11, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
369, 363, 11, 11, 0x0a,
|
||||
385, 11, 11, 11, 0x0a,
|
||||
401, 11, 11, 11, 0x0a,
|
||||
416, 11, 11, 11, 0x0a,
|
||||
432, 11, 11, 11, 0x0a,
|
||||
449, 11, 11, 11, 0x0a,
|
||||
480, 11, 11, 11, 0x0a,
|
||||
522, 513, 11, 11, 0x0a,
|
||||
544, 542, 11, 11, 0x0a,
|
||||
568, 564, 11, 11, 0x0a,
|
||||
611, 591, 11, 11, 0x0a,
|
||||
647, 641, 11, 11, 0x0a,
|
||||
681, 11, 11, 11, 0x0a,
|
||||
700, 11, 11, 11, 0x0a,
|
||||
729, 564, 11, 11, 0x0a,
|
||||
758, 751, 11, 11, 0x0a,
|
||||
787, 780, 11, 11, 0x0a,
|
||||
824, 11, 11, 11, 0x0a,
|
||||
864, 11, 11, 11, 0x0a,
|
||||
898, 894, 11, 11, 0x0a,
|
||||
934, 922, 11, 11, 0x0a,
|
||||
969, 11, 11, 11, 0x0a,
|
||||
1002, 11, 11, 11, 0x0a,
|
||||
1036, 11, 11, 11, 0x0a,
|
||||
1057, 11, 11, 11, 0x0a,
|
||||
1077, 1072, 11, 11, 0x0a,
|
||||
1101, 11, 11, 11, 0x0a,
|
||||
1127, 1122, 11, 11, 0x0a,
|
||||
1164, 1144, 11, 11, 0x0a,
|
||||
1199, 11, 11, 11, 0x0a,
|
||||
1226, 11, 11, 11, 0x0a,
|
||||
1244, 11, 11, 11, 0x0a,
|
||||
1263, 11, 11, 11, 0x0a,
|
||||
1287, 11, 11, 11, 0x0a,
|
||||
1309, 11, 11, 11, 0x0a,
|
||||
1333, 11, 11, 11, 0x0a,
|
||||
1357, 11, 11, 11, 0x0a,
|
||||
1379, 11, 11, 11, 0x0a,
|
||||
1396, 11, 11, 11, 0x0a,
|
||||
1412, 11, 11, 11, 0x0a,
|
||||
1430, 11, 11, 11, 0x0a,
|
||||
1472, 1464, 11, 11, 0x0a,
|
||||
1498, 11, 11, 11, 0x0a,
|
||||
1523, 1518, 11, 11, 0x0a,
|
||||
1551, 11, 11, 11, 0x0a,
|
||||
1583, 1579, 11, 11, 0x0a,
|
||||
1617, 1518, 11, 11, 0x0a,
|
||||
1649, 11, 11, 11, 0x0a,
|
||||
1684, 11, 11, 11, 0x08,
|
||||
1715, 11, 11, 11, 0x08,
|
||||
1744, 11, 11, 11, 0x08,
|
||||
1782, 11, 11, 11, 0x08,
|
||||
1814, 11, 11, 11, 0x08,
|
||||
1838, 11, 11, 11, 0x08,
|
||||
1872, 11, 11, 11, 0x08,
|
||||
1899, 11, 11, 11, 0x08,
|
||||
1931, 11, 11, 11, 0x08,
|
||||
1945, 11, 11, 11, 0x08,
|
||||
1965, 11, 11, 11, 0x08,
|
||||
1993, 11, 11, 11, 0x08,
|
||||
2034, 11, 11, 11, 0x08,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_MainWindow[] = {
|
||||
"MainWindow\0\0openFileChange()\0"
|
||||
"openCurrFile(QString)\0saveJmFile()\0"
|
||||
"setMainTabNow(int)\0InkjetCleanUP()\0,\0"
|
||||
"ShowWarnningText(QString,QString)\0"
|
||||
"editItemMode()\0CloseJd()\0"
|
||||
"pushButtonStartPressed(bool)\0"
|
||||
"repeatInitedPid()\0setCNT1Select(bool)\0"
|
||||
"setCNT2Select(bool)\0setCNT3Select(bool)\0"
|
||||
"getJSONData()\0scenefileOpen(QString,bool)\0"
|
||||
"setDisableAll()\0autoUpdateFontWidthByMainWindow(uint)\0"
|
||||
"event\0OnFinished(int)\0onQRCodeClose()\0"
|
||||
"onEditQRCode()\0onEditBarCode()\0"
|
||||
"onBarCodeClose()\0on_pushButtonCleanUP_pressed()\0"
|
||||
"onPushButtonCNTResetNowPressed()\0"
|
||||
"editMode\0changeEditMode(int)\0n\0"
|
||||
"SetMainTabEdit(int)\0str\0changeTxtMode(QString)\0"
|
||||
"filePath,insertFlag\0openPicFIleOpen(QString,bool)\0"
|
||||
"value\0onReclainTankPositionChanged(int)\0"
|
||||
"checkForPowerOff()\0on_pushButtonStart_pressed()\0"
|
||||
"setRunStatus(QString)\0pixMap\0"
|
||||
"setRunStatus(QPixmap)\0notice\0"
|
||||
"_on_pushButtonPowerOff_pressed(bool)\0"
|
||||
"on_pushButtonReclaimTankClose_pressed()\0"
|
||||
"alterDataPrint(unsigned char)\0Dat\0"
|
||||
"showDat(unsigned char*)\0alterEnable\0"
|
||||
"SendPrintDataToFpga(unsigned char)\0"
|
||||
"on_pushButtonStopPrint_pressed()\0"
|
||||
"on_pushButtonPausePrint_pressed()\0"
|
||||
"RefreshStatusLight()\0onInitQRCode()\0"
|
||||
"type\0onUpdateDispQRCode(int)\0"
|
||||
"modbusUpdateQRCode()\0Flag\0CheckStatus(int)\0"
|
||||
"strTitle,strWarring\0"
|
||||
"ShowWarnningText1(QString,QString)\0"
|
||||
"onStatusHighVoltageFault()\0onStatusInkLeak()\0"
|
||||
"onStatusInkSwint()\0onStatusInkWaterLevel()\0"
|
||||
"onStatusRecycleWarn()\0onStatusSolvLevelWarn()\0"
|
||||
"onStatusViscosityWarn()\0onStatusChargefault()\0"
|
||||
"onPreviewScene()\0update_scroll()\0"
|
||||
"JSON_UpdateDATA()\0on_pushButtonStartPrint_pressed()\0"
|
||||
"strData\0onGenerateQRCode(QString)\0"
|
||||
"onShowAndHideItem()\0flag\0"
|
||||
"onSwitchTimerShowItem(bool)\0"
|
||||
"onLabelFaultRusumePressed()\0num\0"
|
||||
"onModbusPrintReceivedContent(int)\0"
|
||||
"onEnableReclaimCtrlButton(bool)\0"
|
||||
"onInkJetPrinterCurrentChanged(int)\0"
|
||||
"on_pushButtonGetData_pressed()\0"
|
||||
"onPushButtonPreviewPressed()\0"
|
||||
"on_pushButtonReclaimTanOpen_pressed()\0"
|
||||
"on_pushButtonPowerOff_pressed()\0"
|
||||
"ontextEdittextChanged()\0"
|
||||
"onTextEditCursorPositionChanged()\0"
|
||||
"onLabelProductCntPressed()\0"
|
||||
"onLabelTotalProductCntPressed()\0"
|
||||
"displayTime()\0airPushingProcess()\0"
|
||||
"on_bottonEditText_pressed()\0"
|
||||
"on_pushButtonReduceTextDisplay_pressed()\0"
|
||||
"on_pushButtonEnlargeTextDisplay_pressed()\0"
|
||||
};
|
||||
|
||||
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
Q_ASSERT(staticMetaObject.cast(_o));
|
||||
MainWindow *_t = static_cast<MainWindow *>(_o);
|
||||
switch (_id) {
|
||||
case 0: _t->openFileChange(); break;
|
||||
case 1: _t->openCurrFile((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 2: _t->saveJmFile(); break;
|
||||
case 3: _t->setMainTabNow((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: _t->InkjetCleanUP(); break;
|
||||
case 5: _t->ShowWarnningText((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
case 6: _t->editItemMode(); break;
|
||||
case 7: _t->CloseJd(); break;
|
||||
case 8: _t->pushButtonStartPressed((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 9: _t->repeatInitedPid(); break;
|
||||
case 10: _t->setCNT1Select((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 11: _t->setCNT2Select((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 12: _t->setCNT3Select((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 13: _t->getJSONData(); break;
|
||||
case 14: _t->scenefileOpen((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
case 15: _t->setDisableAll(); break;
|
||||
case 16: _t->autoUpdateFontWidthByMainWindow((*reinterpret_cast< const uint(*)>(_a[1]))); break;
|
||||
case 17: _t->OnFinished((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 18: _t->onQRCodeClose(); break;
|
||||
case 19: _t->onEditQRCode(); break;
|
||||
case 20: _t->onEditBarCode(); break;
|
||||
case 21: _t->onBarCodeClose(); break;
|
||||
case 22: _t->on_pushButtonCleanUP_pressed(); break;
|
||||
case 23: _t->onPushButtonCNTResetNowPressed(); break;
|
||||
case 24: _t->changeEditMode((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 25: _t->SetMainTabEdit((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 26: _t->changeTxtMode((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 27: _t->openPicFIleOpen((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
case 28: _t->onReclainTankPositionChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 29: _t->checkForPowerOff(); break;
|
||||
case 30: _t->on_pushButtonStart_pressed(); break;
|
||||
case 31: _t->setRunStatus((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 32: _t->setRunStatus((*reinterpret_cast< QPixmap(*)>(_a[1]))); break;
|
||||
case 33: _t->_on_pushButtonPowerOff_pressed((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 34: _t->on_pushButtonReclaimTankClose_pressed(); break;
|
||||
case 35: _t->alterDataPrint((*reinterpret_cast< unsigned char(*)>(_a[1]))); break;
|
||||
case 36: _t->showDat((*reinterpret_cast< unsigned char*(*)>(_a[1]))); break;
|
||||
case 37: _t->SendPrintDataToFpga((*reinterpret_cast< unsigned char(*)>(_a[1]))); break;
|
||||
case 38: _t->on_pushButtonStopPrint_pressed(); break;
|
||||
case 39: _t->on_pushButtonPausePrint_pressed(); break;
|
||||
case 40: _t->RefreshStatusLight(); break;
|
||||
case 41: _t->onInitQRCode(); break;
|
||||
case 42: _t->onUpdateDispQRCode((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 43: _t->modbusUpdateQRCode(); break;
|
||||
case 44: _t->CheckStatus((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 45: _t->ShowWarnningText1((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
|
||||
case 46: _t->onStatusHighVoltageFault(); break;
|
||||
case 47: _t->onStatusInkLeak(); break;
|
||||
case 48: _t->onStatusInkSwint(); break;
|
||||
case 49: _t->onStatusInkWaterLevel(); break;
|
||||
case 50: _t->onStatusRecycleWarn(); break;
|
||||
case 51: _t->onStatusSolvLevelWarn(); break;
|
||||
case 52: _t->onStatusViscosityWarn(); break;
|
||||
case 53: _t->onStatusChargefault(); break;
|
||||
case 54: _t->onPreviewScene(); break;
|
||||
case 55: _t->update_scroll(); break;
|
||||
case 56: _t->JSON_UpdateDATA(); break;
|
||||
case 57: _t->on_pushButtonStartPrint_pressed(); break;
|
||||
case 58: _t->onGenerateQRCode((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 59: _t->onShowAndHideItem(); break;
|
||||
case 60: _t->onSwitchTimerShowItem((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 61: _t->onLabelFaultRusumePressed(); break;
|
||||
case 62: _t->onModbusPrintReceivedContent((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 63: _t->onEnableReclaimCtrlButton((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 64: _t->onInkJetPrinterCurrentChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 65: _t->on_pushButtonGetData_pressed(); break;
|
||||
case 66: _t->onPushButtonPreviewPressed(); break;
|
||||
case 67: _t->on_pushButtonReclaimTanOpen_pressed(); break;
|
||||
case 68: _t->on_pushButtonPowerOff_pressed(); break;
|
||||
case 69: _t->ontextEdittextChanged(); break;
|
||||
case 70: _t->onTextEditCursorPositionChanged(); break;
|
||||
case 71: _t->onLabelProductCntPressed(); break;
|
||||
case 72: _t->onLabelTotalProductCntPressed(); break;
|
||||
case 73: _t->displayTime(); break;
|
||||
case 74: _t->airPushingProcess(); break;
|
||||
case 75: _t->on_bottonEditText_pressed(); break;
|
||||
case 76: _t->on_pushButtonReduceTextDisplay_pressed(); break;
|
||||
case 77: _t->on_pushButtonEnlargeTextDisplay_pressed(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData MainWindow::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject MainWindow::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_MainWindow,
|
||||
qt_meta_data_MainWindow, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &MainWindow::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *MainWindow::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *MainWindow::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_MainWindow))
|
||||
return static_cast<void*>(const_cast< MainWindow*>(this));
|
||||
if (!strcmp(_clname, "ParaSettingUI"))
|
||||
return static_cast< ParaSettingUI*>(const_cast< MainWindow*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 78)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 78;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void MainWindow::openFileChange()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void MainWindow::openCurrFile(QString _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void MainWindow::saveJmFile()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void MainWindow::setMainTabNow(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 4
|
||||
void MainWindow::InkjetCleanUP()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 4, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 5
|
||||
void MainWindow::ShowWarnningText(QString _t1, QString _t2)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 5, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 6
|
||||
void MainWindow::editItemMode()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 6, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 7
|
||||
void MainWindow::CloseJd()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 7, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 8
|
||||
void MainWindow::pushButtonStartPressed(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 8, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 9
|
||||
void MainWindow::repeatInitedPid()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 9, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 10
|
||||
void MainWindow::setCNT1Select(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 10, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 11
|
||||
void MainWindow::setCNT2Select(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 11, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 12
|
||||
void MainWindow::setCNT3Select(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 12, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 13
|
||||
void MainWindow::getJSONData()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 13, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 14
|
||||
void MainWindow::scenefileOpen(QString _t1, bool _t2)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 14, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 15
|
||||
void MainWindow::setDisableAll()
|
||||
{
|
||||
QMetaObject::activate(this, &staticMetaObject, 15, 0);
|
||||
}
|
||||
|
||||
// SIGNAL 16
|
||||
void MainWindow::autoUpdateFontWidthByMainWindow(const unsigned int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 16, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user