renaming dialog
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#include "projectcreationdialog.h"
|
||||
#include <ui_projectcreationdialog.h>
|
||||
#include <noggit/ui/windows/projectCreation/NoggitProjectCreationDialog.h>
|
||||
#include <ui_NoggitProjectCreationDialog.h>
|
||||
#include <QFileDialog>
|
||||
#include <QSettings>
|
||||
|
||||
ProjectCreationDialog::ProjectCreationDialog(ProjectInformation& projectInformation, QWidget *parent) :
|
||||
NoggitProjectCreationDialog::NoggitProjectCreationDialog(ProjectInformation& projectInformation, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new ::Ui::ProjectCreationDialog), _projectInformation(projectInformation)
|
||||
ui(new ::Ui::NoggitProjectCreationDialog), _projectInformation(projectInformation)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
@@ -40,7 +40,7 @@ ProjectCreationDialog::ProjectCreationDialog(ProjectInformation& projectInformat
|
||||
);
|
||||
}
|
||||
|
||||
ProjectCreationDialog::~ProjectCreationDialog()
|
||||
NoggitProjectCreationDialog::~NoggitProjectCreationDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
#ifndef NOGGIT_PROJECT_CREATION_DIALOG_HPP
|
||||
#define NOGGIT_PROJECT_CREATION_DIALOG_HPP
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class NoggitProjectCreationDialog;
|
||||
}
|
||||
|
||||
|
||||
struct ProjectInformation
|
||||
{
|
||||
std::string ProjectName;
|
||||
std::string GameClientPath;
|
||||
std::string GameClientVersion;
|
||||
};
|
||||
|
||||
class NoggitProjectCreationDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
NoggitProjectCreationDialog(ProjectInformation& projectInformation, QWidget *parent = nullptr);
|
||||
~NoggitProjectCreationDialog();
|
||||
|
||||
private:
|
||||
::Ui::NoggitProjectCreationDialog*ui;
|
||||
ProjectInformation& _projectInformation;
|
||||
};
|
||||
|
||||
#endif //NOGGIT_PROJECT_CREATION_DIALOG_HPP
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ProjectCreationDialog</class>
|
||||
<widget class="QDialog" name="ProjectCreationDialog">
|
||||
<class>NoggitProjectCreationDialog</class>
|
||||
<widget class="QDialog" name="NoggitProjectCreationDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
@@ -1,31 +0,0 @@
|
||||
#ifndef PROJECTCREATIONDIALOG_H
|
||||
#define PROJECTCREATIONDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class ProjectCreationDialog;
|
||||
}
|
||||
|
||||
|
||||
struct ProjectInformation
|
||||
{
|
||||
std::string ProjectName;
|
||||
std::string GameClientPath;
|
||||
std::string GameClientVersion;
|
||||
};
|
||||
|
||||
class ProjectCreationDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ProjectCreationDialog(ProjectInformation& projectInformation, QWidget *parent = nullptr);
|
||||
~ProjectCreationDialog();
|
||||
|
||||
private:
|
||||
::Ui::ProjectCreationDialog *ui;
|
||||
ProjectInformation& _projectInformation;
|
||||
};
|
||||
|
||||
#endif // PROJECTCREATIONDIALOG_H
|
||||
@@ -37,7 +37,7 @@ namespace Noggit::Ui::Windows
|
||||
, [=,this]
|
||||
{
|
||||
auto projectReference = ProjectInformation();
|
||||
auto projectCreationDialog = ProjectCreationDialog(projectReference);
|
||||
auto projectCreationDialog = NoggitProjectCreationDialog(projectReference);
|
||||
projectCreationDialog.exec();
|
||||
|
||||
_createProjectComponent->CreateProject(this,projectReference);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <QString>
|
||||
#include <noggit/application/NoggitApplication.hpp>
|
||||
#include <noggit/ui/windows/mainWindow/main_window.hpp>
|
||||
#include <noggit/ui/windows/projectCreation/projectcreationdialog.h>
|
||||
#include <noggit/ui/windows/projectCreation/NoggitProjectCreationDialog.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class NoggitProjectSelectionWindow; }
|
||||
|
||||
Reference in New Issue
Block a user