53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
#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
|