hlp:桂林国际齿轮泵代码

This commit is contained in:
kite_lucs
2026-10-09 10:25:24 +08:00
commit fd606b3c81
2447 changed files with 999531 additions and 0 deletions
@@ -0,0 +1,40 @@
/*
* phaseGraphic.h
*
* Created on: Jun 29, 2013
* Author: yiyu
* QQ:1036184468
* Descriptoin:
*/
#ifndef PHASEGRAPHIC_H_
#define PHASEGRAPHIC_H_
#include "QWidget"
#include "ParaSettingUI.h"
#include <QPen>
#include <QBrush>
class PhaseGraphic:public QWidget,public ParaSettingUI{
Q_OBJECT
public:
explicit PhaseGraphic(QWidget *parent = 0);
~PhaseGraphic();
void paintEvent(QPaintEvent *);
void updateSysStatusToUI();
void setLockedPhase(bool enable,int val);
void setPhaseCount(int count);
private:
QPen pen;
QBrush brush;
int lockPhaseFlag;
int lockedPhase;
int phaseCount; // 份数
};
#endif /* PHASEGRAPHIC_H_ */
@@ -0,0 +1,76 @@
#ifndef LOGGER_H
#define LOGGER_H
#include <QtGlobal>
#include <QThreadStorage>
#include <QHash>
#include <QStringList>
#include <QMutex>
#include <QObject>
#include "logglobal.h"
#include "logmessage.h"
#include <QDebug>
class DECLSPEC Logger : public QObject {
Q_OBJECT
Q_DISABLE_COPY(Logger)
public:
Logger(QObject* parent);
Logger(const QString msgFormat="{timestamp} {type} {msg}",
const QString timestampFormat="dd.MM.yyyy hh:mm:ss.zzz",
const QtMsgType minLevel=QtDebugMsg, const int bufferSize=0,
QObject* parent = nullptr);
virtual ~Logger();
virtual void log(const QtMsgType type, const QString& message, const QString &file="",
const QString &function="", const int line=0);
void installMsgHandler();
static void set(const QString& name, const QString& value);
virtual void clear(const bool buffer=true, const bool variables=true);
protected:
QString msgFormat;
QString timestampFormat;
QtMsgType minLevel;
int bufferSize;
static QMutex mutex;
virtual void write(const LogMessage* logMessage);
private:
static Logger* defaultLogger;
static void msgHandler(const QtMsgType type, const QString &message, const QString &file="",
const QString &function="", const int line=0);
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
static void msgHandler5(const QtMsgType type, const QMessageLogContext& context, const QString &message);
#else
static void msgHandler4(const QtMsgType type, const char * message);
#endif
static QThreadStorage<QHash<QString,QString>*> logVars;
QThreadStorage<QList<LogMessage*>*> buffers;
};
#endif // LOGGER_H
@@ -0,0 +1,238 @@
/****************************************************************************
** Meta object code from reading C++ file 'SystemManage.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 "../SystemManage.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'SystemManage.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_SystemManage[] = {
// content:
6, // revision
0, // classname
0, 0, // classinfo
43, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
3, // signalCount
// signals: signature, parameters, type, tag, flags
14, 13, 13, 13, 0x05,
30, 13, 13, 13, 0x05,
52, 47, 13, 13, 0x05,
// slots: signature, parameters, type, tag, flags
78, 13, 13, 13, 0x08,
114, 13, 13, 13, 0x08,
143, 13, 13, 13, 0x08,
177, 13, 13, 13, 0x08,
202, 13, 13, 13, 0x08,
234, 13, 13, 13, 0x08,
266, 13, 13, 13, 0x08,
301, 13, 13, 13, 0x08,
333, 13, 13, 13, 0x08,
368, 13, 13, 13, 0x08,
405, 13, 13, 13, 0x08,
442, 13, 13, 13, 0x08,
481, 13, 13, 13, 0x08,
521, 13, 13, 13, 0x08,
556, 13, 13, 13, 0x08,
576, 13, 13, 13, 0x08,
613, 13, 13, 13, 0x08,
651, 13, 13, 13, 0x08,
687, 13, 13, 13, 0x08,
725, 13, 13, 13, 0x08,
756, 13, 13, 13, 0x08,
792, 13, 13, 13, 0x08,
807, 13, 13, 13, 0x08,
823, 13, 13, 13, 0x08,
847, 13, 13, 13, 0x08,
888, 13, 13, 13, 0x08,
931, 13, 13, 13, 0x08,
963, 13, 13, 13, 0x08,
996, 13, 13, 13, 0x08,
1015, 13, 13, 13, 0x08,
1040, 13, 13, 13, 0x08,
1063, 13, 13, 13, 0x08,
1090, 13, 13, 13, 0x08,
1125, 13, 13, 13, 0x08,
1158, 13, 13, 13, 0x08,
1189, 13, 13, 13, 0x08,
1229, 13, 13, 13, 0x08,
1272, 13, 13, 13, 0x08,
1314, 13, 13, 13, 0x08,
1349, 13, 13, 13, 0x08,
0 // eod
};
static const char qt_meta_stringdata_SystemManage[] = {
"SystemManage\0\0configChanged()\0"
"autoCleanStart()\0flag\0enableReclaimButton(bool)\0"
"on_pushButtonCompressPump_pressed()\0"
"on_pushButtonGhost_pressed()\0"
"on_pushButtonCycleValve_pressed()\0"
"updateGearPumpValue(int)\0"
"on_pushButtonGearPump_pressed()\0"
"on_pushButtonInkValve_pressed()\0"
"on_pushButtonMainInkPump_pressed()\0"
"on_pushButtonMixValve_pressed()\0"
"on_pushButtonReclaimPump_pressed()\0"
"on_pushButtonViscosityPump_pressed()\0"
"on_pushButtonControlByHand_pressed()\0"
"on_pushButtonReclaimTankOpen_pressed()\0"
"on_pushButtonReclaimTankClose_pressed()\0"
"on_pushButtonTimeSetting_clicked()\0"
"onTimeSettingDone()\0"
"on_pushButtonUpdateCharLib_pressed()\0"
"on_pushButtonFactorySetting_pressed()\0"
"on_pushButtonScreenAdjust_pressed()\0"
"on_pushButtonUpdateSoftware_pressed()\0"
"on_pushButtonCleanUP_pressed()\0"
"on_pushButtonReleaseValve_pressed()\0"
"timerHandler()\0timerHandler2()\0"
"autoCleanTimerHandler()\0"
"on_pushButtonExportConfToUDisk_clicked()\0"
"on_pushButtonImportConfFromUdisk_clicked()\0"
"ondialogAuthorizationAccepted()\0"
"on_pushButtonAutoClean_pressed()\0"
"onAutoCleanStart()\0reclainTankTestHandler()\0"
"inkcloseCountHandler()\0"
"MainInkCmpSepetalHandler()\0"
"on_pushButtonFontToUdisk_pressed()\0"
"on_pushButtonMotorTest_pressed()\0"
"on_pushButtonPushAir_pressed()\0"
"on_dialogTimeSetAuthorizationAccepted()\0"
"on_dialogFactorySetAuthorizationAccepted()\0"
"on_dialogSysUpdateAuthorizationAccepted()\0"
"on_pushButtonGearPumpOff_pressed()\0"
"on_pushButtonChangeScreen_clicked()\0"
};
void SystemManage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Q_ASSERT(staticMetaObject.cast(_o));
SystemManage *_t = static_cast<SystemManage *>(_o);
switch (_id) {
case 0: _t->configChanged(); break;
case 1: _t->autoCleanStart(); break;
case 2: _t->enableReclaimButton((*reinterpret_cast< bool(*)>(_a[1]))); break;
case 3: _t->on_pushButtonCompressPump_pressed(); break;
case 4: _t->on_pushButtonGhost_pressed(); break;
case 5: _t->on_pushButtonCycleValve_pressed(); break;
case 6: _t->updateGearPumpValue((*reinterpret_cast< int(*)>(_a[1]))); break;
case 7: _t->on_pushButtonGearPump_pressed(); break;
case 8: _t->on_pushButtonInkValve_pressed(); break;
case 9: _t->on_pushButtonMainInkPump_pressed(); break;
case 10: _t->on_pushButtonMixValve_pressed(); break;
case 11: _t->on_pushButtonReclaimPump_pressed(); break;
case 12: _t->on_pushButtonViscosityPump_pressed(); break;
case 13: _t->on_pushButtonControlByHand_pressed(); break;
case 14: _t->on_pushButtonReclaimTankOpen_pressed(); break;
case 15: _t->on_pushButtonReclaimTankClose_pressed(); break;
case 16: _t->on_pushButtonTimeSetting_clicked(); break;
case 17: _t->onTimeSettingDone(); break;
case 18: _t->on_pushButtonUpdateCharLib_pressed(); break;
case 19: _t->on_pushButtonFactorySetting_pressed(); break;
case 20: _t->on_pushButtonScreenAdjust_pressed(); break;
case 21: _t->on_pushButtonUpdateSoftware_pressed(); break;
case 22: _t->on_pushButtonCleanUP_pressed(); break;
case 23: _t->on_pushButtonReleaseValve_pressed(); break;
case 24: _t->timerHandler(); break;
case 25: _t->timerHandler2(); break;
case 26: _t->autoCleanTimerHandler(); break;
case 27: _t->on_pushButtonExportConfToUDisk_clicked(); break;
case 28: _t->on_pushButtonImportConfFromUdisk_clicked(); break;
case 29: _t->ondialogAuthorizationAccepted(); break;
case 30: _t->on_pushButtonAutoClean_pressed(); break;
case 31: _t->onAutoCleanStart(); break;
case 32: _t->reclainTankTestHandler(); break;
case 33: _t->inkcloseCountHandler(); break;
case 34: _t->MainInkCmpSepetalHandler(); break;
case 35: _t->on_pushButtonFontToUdisk_pressed(); break;
case 36: _t->on_pushButtonMotorTest_pressed(); break;
case 37: _t->on_pushButtonPushAir_pressed(); break;
case 38: _t->on_dialogTimeSetAuthorizationAccepted(); break;
case 39: _t->on_dialogFactorySetAuthorizationAccepted(); break;
case 40: _t->on_dialogSysUpdateAuthorizationAccepted(); break;
case 41: _t->on_pushButtonGearPumpOff_pressed(); break;
case 42: _t->on_pushButtonChangeScreen_clicked(); break;
default: ;
}
}
}
const QMetaObjectExtraData SystemManage::staticMetaObjectExtraData = {
0, qt_static_metacall
};
const QMetaObject SystemManage::staticMetaObject = {
{ &QWidget::staticMetaObject, qt_meta_stringdata_SystemManage,
qt_meta_data_SystemManage, &staticMetaObjectExtraData }
};
#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &SystemManage::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION
const QMetaObject *SystemManage::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
void *SystemManage::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_SystemManage))
return static_cast<void*>(const_cast< SystemManage*>(this));
if (!strcmp(_clname, "ParaSettingUI"))
return static_cast< ParaSettingUI*>(const_cast< SystemManage*>(this));
return QWidget::qt_metacast(_clname);
}
int SystemManage::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 < 43)
qt_static_metacall(this, _c, _id, _a);
_id -= 43;
}
return _id;
}
// SIGNAL 0
void SystemManage::configChanged()
{
QMetaObject::activate(this, &staticMetaObject, 0, 0);
}
// SIGNAL 1
void SystemManage::autoCleanStart()
{
QMetaObject::activate(this, &staticMetaObject, 1, 0);
}
// SIGNAL 2
void SystemManage::enableReclaimButton(bool _t1)
{
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_END_MOC_NAMESPACE