#ifndef RM_TEST_DIALOG_H #define RM_TEST_DIALOG_H #if (RM_TESTING) #include #include #include #include #include #include #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