d9a90f44f3
This change brings translation support to the tsMuxeR GUI. We have a Russian translation available so far, thanks to @abakum. The last selected translation is saved in the settings file and restored at the application's next startup. The currently used language is selectable by a combo box in the lower left corner of the window.
34 lines
727 B
C++
34 lines
727 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;
|
|
void changeEvent(QEvent* event) override;
|
|
private slots:
|
|
void onProgressChanged();
|
|
void onAbort();
|
|
|
|
private:
|
|
int errCnt;
|
|
Ui_muxForm* ui;
|
|
QProcess* muxProcess;
|
|
};
|
|
|
|
#endif
|