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
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

@@ -0,0 +1,78 @@
#include "logmessage.h"
#include <QThread>
LogMessage::LogMessage(const QtMsgType type, const QString& message, const QHash<QString, QString> *logVars, const QString &file, const QString &function, const int line)
{
this->type=type;
this->message=message;
this->file=file;
this->function=function;
this->line=line;
timestamp=QDateTime::currentDateTime();
threadId=QThread::currentThreadId();
if (logVars)
{
this->logVars=*logVars;
}
}
QString LogMessage::toString(const QString& msgFormat, const QString& timestampFormat) const
{
QString decorated=msgFormat+"\n";
decorated.replace("{msg}",message);
if (decorated.contains("{timestamp}"))
{
decorated.replace("{timestamp}",timestamp.toString(timestampFormat));
}
QString typeNr;
typeNr.setNum(type);
decorated.replace("{typeNr}",typeNr);
switch (type)
{
case QtDebugMsg:
decorated.replace("{type}","DEBUG ");
break;
case QtWarningMsg:
decorated.replace("{type}","WARNING ");
break;
case QtCriticalMsg:
decorated.replace("{type}","CRITICAL");
break;
case QtFatalMsg:
decorated.replace("{type}","FATAL ");
break;
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
case QtInfoMsg:
decorated.replace("{type}","INFO ");
break;
#endif
}
decorated.replace("{file}",file);
decorated.replace("{function}",function);
decorated.replace("{line}",QString::number(line));
QString threadId = QString("0x%1").arg(qulonglong(QThread::currentThreadId()), 8, 16, QLatin1Char('0'));
decorated.replace("{thread}",threadId);
if (decorated.contains("{") && !logVars.isEmpty())
{
QList<QString> keys=logVars.keys();
foreach (QString key, keys)
{
decorated.replace("{"+key+"}",logVars.value(key));
}
}
return decorated;
}
QtMsgType LogMessage::getType() const
{
return type;
}
@@ -0,0 +1,126 @@
/****************************************************************************
** Meta object code from reading C++ file 'DialogSaveFile.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 "../DialogSaveFile.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'DialogSaveFile.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_DialogSaveFile[] = {
// content:
6, // revision
0, // classname
0, 0, // classinfo
9, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
1, // signalCount
// signals: signature, parameters, type, tag, flags
30, 16, 15, 15, 0x05,
// slots: signature, parameters, type, tag, flags
53, 15, 15, 15, 0x08,
81, 15, 15, 15, 0x08,
109, 15, 15, 15, 0x08,
137, 15, 15, 15, 0x08,
165, 15, 15, 15, 0x08,
196, 15, 15, 15, 0x08,
233, 227, 15, 15, 0x08,
270, 227, 15, 15, 0x08,
0 // eod
};
static const char qt_meta_stringdata_DialogSaveFile[] = {
"DialogSaveFile\0\0filePath,Flag\0"
"saveFile(QString,bool)\0"
"on_pushButtonNext_pressed()\0"
"on_pushButtonLast_pressed()\0"
"on_pushButtonExit_pressed()\0"
"on_pushButtonSave_clicked()\0"
"on_radioButtonLocal_released()\0"
"on_radioButtonUdisk_released()\0index\0"
"on_listViewFile_entered(QModelIndex)\0"
"on_listViewFile_clicked(QModelIndex)\0"
};
void DialogSaveFile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
Q_ASSERT(staticMetaObject.cast(_o));
DialogSaveFile *_t = static_cast<DialogSaveFile *>(_o);
switch (_id) {
case 0: _t->saveFile((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
case 1: _t->on_pushButtonNext_pressed(); break;
case 2: _t->on_pushButtonLast_pressed(); break;
case 3: _t->on_pushButtonExit_pressed(); break;
case 4: _t->on_pushButtonSave_clicked(); break;
case 5: _t->on_radioButtonLocal_released(); break;
case 6: _t->on_radioButtonUdisk_released(); break;
case 7: _t->on_listViewFile_entered((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
case 8: _t->on_listViewFile_clicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
default: ;
}
}
}
const QMetaObjectExtraData DialogSaveFile::staticMetaObjectExtraData = {
0, qt_static_metacall
};
const QMetaObject DialogSaveFile::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_DialogSaveFile,
qt_meta_data_DialogSaveFile, &staticMetaObjectExtraData }
};
#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &DialogSaveFile::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION
const QMetaObject *DialogSaveFile::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}
void *DialogSaveFile::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_DialogSaveFile))
return static_cast<void*>(const_cast< DialogSaveFile*>(this));
return QDialog::qt_metacast(_clname);
}
int DialogSaveFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 9)
qt_static_metacall(this, _c, _id, _a);
_id -= 9;
}
return _id;
}
// SIGNAL 0
void DialogSaveFile::saveFile(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, 0, _a);
}
QT_END_MOC_NAMESPACE