Тестируем первую версию

This commit is contained in:
2025-08-30 19:46:13 +03:00
parent e73c10321f
commit 417fe5af82
3 changed files with 161 additions and 0 deletions

37
LauncherWindow.h Normal file
View File

@@ -0,0 +1,37 @@
#ifndef LAUNCHERWINDOW_H
#define LAUNCHERWINDOW_H
#include <QMainWindow>
#include <QPushButton>
#include <QLineEdit>
#include <QProcess>
#include <QNetworkAccessManager>
#include <QNetworkReply>
class LauncherWindow : public QMainWindow
{
Q_OBJECT
public:
LauncherWindow(QWidget *parent = nullptr);
~LauncherWindow();
private slots:
void launchMinecraft();
void openModsFolder();
void downloadMods();
void onDownloadFinished(QNetworkReply *reply);
private:
void setupUI();
QString getMinecraftPath();
QPushButton *launchButton;
QPushButton *modsFolderButton;
QPushButton *downloadModsButton;
QLineEdit *usernameLineEdit;
QNetworkAccessManager *networkManager;
};
#endif // LAUNCHERWINDOW_H