hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
#ifndef LOGINFO_H
|
||||
#define LOGINFO_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QTextEdit>
|
||||
#include "MyFileDialog.h"
|
||||
#include <QDate>
|
||||
|
||||
namespace Ui {
|
||||
class LogInfo;
|
||||
}
|
||||
|
||||
class LogInfo : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit LogInfo(QWidget *parent = 0);
|
||||
~LogInfo();
|
||||
static QString getRunStatusText(void);
|
||||
|
||||
static void setRunStatusText(QString str);
|
||||
static void saveRunStatusText();
|
||||
void setDebugText(QString str); // debug
|
||||
static void showMachineInformation(QString Mac,QString SerialNum, QString VernonBachVer, QString FpgaVer);
|
||||
static void showRemoteControll(QString SuperNode, QString edgeIP);
|
||||
|
||||
void onReadRecorder();
|
||||
void deleteDirectoryContents(const QDir &directory);
|
||||
private slots:
|
||||
|
||||
void on_pushButtonClear_pressed();
|
||||
void on_pushButtonPreState_pressed();
|
||||
void on_pushButtonExportFile_pressed();
|
||||
|
||||
void on_pushButtonClearCurrent_pressed();
|
||||
void onOpen_FIle_select();
|
||||
void readRunStatusText();
|
||||
|
||||
private:
|
||||
Ui::LogInfo *ui;
|
||||
static QTextEdit *textEdit;
|
||||
static QTextEdit *textEdit2;
|
||||
static QTextEdit *textEditMachInfo;
|
||||
static int runStatusTextIndex;
|
||||
MyFileDialog *fileDialog;
|
||||
QString openFileName;
|
||||
static QString currenDate;
|
||||
static QString r_CurrentDate;
|
||||
};
|
||||
|
||||
#endif // LOGINFO_H
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1018 B |
@@ -0,0 +1,80 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'logger.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 "../Log/logger.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'logger.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_Logger[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
0, 0, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
0, // signalCount
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_Logger[] = {
|
||||
"Logger\0"
|
||||
};
|
||||
|
||||
void Logger::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
Q_UNUSED(_o);
|
||||
Q_UNUSED(_id);
|
||||
Q_UNUSED(_c);
|
||||
Q_UNUSED(_a);
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData Logger::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject Logger::staticMetaObject = {
|
||||
{ &QObject::staticMetaObject, qt_meta_stringdata_Logger,
|
||||
qt_meta_data_Logger, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &Logger::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *Logger::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *Logger::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_Logger))
|
||||
return static_cast<void*>(const_cast< Logger*>(this));
|
||||
return QObject::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int Logger::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QObject::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
return _id;
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
Reference in New Issue
Block a user