forked from nerososft/Nider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
newprojectwindow.h
executable file
·58 lines (38 loc) · 1.03 KB
/
newprojectwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef NEWPROJECTWINDOW_H
#define NEWPROJECTWINDOW_H
#include <QDialog>
#include <map>
#include <string>
#include "errorhelper.h"
#include <QStandardItemModel>
#include <QJsonArray>
namespace Ui {
class NewProjectWindow;
}
class NewProjectWindow : public QDialog
{
Q_OBJECT
public:
explicit NewProjectWindow(QWidget *parent = 0);
~NewProjectWindow();
private slots:
void on_pushButton_2_clicked();
void on_pushButton_clicked();
void on_treeView_model_clicked(const QModelIndex &index);
void on_pushButton_3_clicked();
private:
Ui::NewProjectWindow *ui;
std::map<std::string,std::string> modelMap;
void loadModel(const QString filePath);
void initModelTree();
ErrorHelper *err = new ErrorHelper();
QJsonArray model_array;
QStandardItemModel* modelTreeModel;
QString VERSION = "0.0.3";
int model_index = 0;
QString model_path = ":/model/model/";
void loadModelFiles();
void copyModelFiles();
void createNewProject();
};
#endif // NEWPROJECTWINDOW_H