first commit
This commit is contained in:
67
project/fm_viewer/tester/rm_test_dialog.h
Normal file
67
project/fm_viewer/tester/rm_test_dialog.h
Normal file
@@ -0,0 +1,67 @@
|
||||
#ifndef RM_TEST_DIALOG_H
|
||||
#define RM_TEST_DIALOG_H
|
||||
#if (RM_TESTING)
|
||||
#include <QDialog>
|
||||
#include <QVBoxLayout>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QLineEdit>
|
||||
|
||||
#include "rm_test_process.h"
|
||||
|
||||
class RMDialogTest : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static RMDialogTest* instance(QWidget* parent = nullptr);
|
||||
private:
|
||||
QVBoxLayout* _layout;
|
||||
|
||||
RMTestProcess* _process;
|
||||
|
||||
QWidget* _toolbar;
|
||||
QPushButton* _openButton;
|
||||
QPushButton* _runButton;
|
||||
QPushButton* _stopButton;
|
||||
QPushButton* _reloadButton;
|
||||
|
||||
QLabel* _scriptLabel;
|
||||
QLabel* _statusLabel;
|
||||
QLabel* _timerLabel;
|
||||
QLabel* _loopLabel;
|
||||
QPlainTextEdit* _logTextEdit;
|
||||
|
||||
QLineEdit* _filterEdit;
|
||||
|
||||
explicit RMDialogTest(QWidget *parent = nullptr);
|
||||
void showEvent(QShowEvent * event);
|
||||
|
||||
void createToolbar();
|
||||
QPushButton* button(QWidget* parent,QLayout* layout,QString title);
|
||||
void createInfoPanel();
|
||||
QLabel* label(QWidget* parent,QLayout* layout,QString title,QString text);
|
||||
void createLogConsole();
|
||||
void createFilterEditor();
|
||||
|
||||
void refreshRunStopButton();
|
||||
|
||||
void clearProcess();
|
||||
void openScript(QString path);
|
||||
|
||||
void beep();
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void onButton();
|
||||
void onRunProcess();
|
||||
void onStopProcess();
|
||||
void onTimer(qint64 msec);
|
||||
void onLoopChange(int loop);
|
||||
void onStatusMessage(QString message);
|
||||
void onLog(QString log);
|
||||
void onError(QString message);
|
||||
};
|
||||
|
||||
#endif // #if (RM_TESTING)
|
||||
#endif // RM_TEST_DIALOG_H
|
||||
Reference in New Issue
Block a user