451ec61a50
The repository now contains a clang-format file which should be used when committing new code. Additionally, a new workflow job is added which checks the conformance of source files to the specified formatting rules. Fixes #47.
33 lines
681 B
C++
33 lines
681 B
C++
#ifndef MUX_FORM_H_
|
|
#define MUX_FORM_H_
|
|
|
|
#include <QDialog>
|
|
class QProcess;
|
|
class Ui_muxForm;
|
|
|
|
class MuxForm : public QDialog // QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MuxForm(QWidget* parent);
|
|
void prepare(const QString& label);
|
|
void setProgress(int value);
|
|
void addStdOutLine(const QString& line);
|
|
void addStdErrLine(const QString& line);
|
|
void muxFinished(int exitCode, const QString& prefix);
|
|
void setProcess(QProcess* proc);
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent* event) override;
|
|
private slots:
|
|
void onProgressChanged();
|
|
void onAbort();
|
|
|
|
private:
|
|
int errCnt;
|
|
Ui_muxForm* ui;
|
|
QProcess* muxProcess;
|
|
};
|
|
|
|
#endif
|