57 lines
1.2 KiB
C
57 lines
1.2 KiB
C
|
#ifndef MAINWINDOW_H
|
||
|
#define MAINWINDOW_H
|
||
|
|
||
|
#include <QMainWindow>
|
||
|
#include <QLabel>
|
||
|
#include <QComboBox>
|
||
|
#include <QPushButton>
|
||
|
#include <QTreeWidget>
|
||
|
#include <QTextEdit>
|
||
|
#include <QProgressBar>
|
||
|
#include <QVBoxLayout>
|
||
|
#include <QHBoxLayout>
|
||
|
#include <QFont>
|
||
|
#include <QDir>
|
||
|
#include <QFileInfoList>
|
||
|
#include <QtXml/QDomComment>
|
||
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
|
namespace Ui
|
||
|
{
|
||
|
class MainWindow;
|
||
|
}
|
||
|
QT_END_NAMESPACE
|
||
|
|
||
|
class MainWindow : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
MainWindow(QWidget *parent = nullptr);
|
||
|
~MainWindow();
|
||
|
|
||
|
signals:
|
||
|
void Pause();
|
||
|
void Continue();
|
||
|
void Abort();
|
||
|
|
||
|
public slots:
|
||
|
void OnRunPauseButtonClicked();
|
||
|
void OnEndButtonClicked();
|
||
|
void OnEndProcess();
|
||
|
void OnComboBoxCurrentIndexChanged(int index);
|
||
|
void OnEngineOutput();
|
||
|
void OnEngineErrorOutput();
|
||
|
void OnRunStatusChanged(int status);
|
||
|
void onTextEditScrolled(int value);
|
||
|
|
||
|
private:
|
||
|
void populateComboBoxWithFiles(QComboBox *comboBox);
|
||
|
void applyAnsiColors(QTextEdit *textEdit, const QString &text);
|
||
|
void limitTextEditLines(QTextEdit *textEdit, int maxLines);
|
||
|
Ui::MainWindow *ui;
|
||
|
int currentRunStatus;
|
||
|
bool userScrolled;
|
||
|
};
|
||
|
#endif // MAINWINDOW_H
|