mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
launcher: close the terminal after a clean exit and run several games at once Co-authored-by: nmzik <Nmzik@mail.ru>
37 lines
675 B
C++
37 lines
675 B
C++
#ifndef MAIN_DIALOG_H
|
|
#define MAIN_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
|
|
class QWidget;
|
|
class QProcess;
|
|
class MainDialogPrivate;
|
|
class QSettings;
|
|
class QResizeEvent;
|
|
|
|
class Configuration;
|
|
class MainDialog: public QDialog {
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void Start();
|
|
void Resize();
|
|
|
|
public:
|
|
explicit MainDialog(QWidget* parent = nullptr);
|
|
~MainDialog() override = default;
|
|
|
|
void RunInterpreter(QProcess* process, const Configuration& info, bool close_terminal);
|
|
|
|
static void WriteSettings(QSettings& s);
|
|
static void ReadSettings(QSettings& s);
|
|
|
|
void resizeEvent(QResizeEvent* event) override;
|
|
|
|
private:
|
|
MainDialogPrivate* m_p = nullptr;
|
|
};
|
|
|
|
#endif // MAIN_DIALOG_H
|