-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnesstagetool.h
109 lines (84 loc) · 2.53 KB
/
nesstagetool.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#ifndef NESSTAGETOOL_H
#define NESSTAGETOOL_H
#include <QMainWindow>
#include <QSpinBox>
#include <QGraphicsRectItem>
#include <QMessageBox>
#include <QFileDialog>
#include <QDesktopServices>
#include <QDirIterator>
#include <QTextStream>
#include <QRegularExpression>
#include <QSettings>
#include <QEvent>
#include "objectmodel.h"
#include "objectdelegate.h"
#include "checkpointmodel.h"
#define NESST_WIKI_URL "https://github.com/BattyBovine/NES-Stage-Tool/wiki"
#define FILE_OPEN_ERROR_TITLE "Error opening file"
#define FILE_OPEN_ERROR_BODY "Could not open file. Please make sure you have the necessary permissions to access files in this location."
#define FILE_SAVE_ERROR_TITLE "Error saving file"
#define FILE_SAVE_ERROR_BODY "Could not save file. Please make sure you have the necessary permissions to save files to this location."
namespace Ui {
class NESStageTool;
}
class NESStageTool : public QMainWindow
{
Q_OBJECT
public:
explicit NESStageTool(QWidget *parent = 0);
~NESStageTool();
enum{EditorStage,EditorMetatiles,EditorProperties,EditorTilesets};
signals:
void chrFileOpened(QString);
void metaspriteFileOpened(QString);
void banksUpdated(int,int,int,int,int,int,int,int);
private slots:
void newProject();
void openProject();
void saveProject();
void saveProjectToFolder(QString);
void showWikiPage();
void showAboutDialogue();
void initTilesetManagement(QImage img);
void toggleAnimation(bool);
void saveShowScreenGrid();
void saveShowTileGrid();
void saveShowGrid16();
void saveShowGrid8();
void savePaletteSwatch();
void changeBankSize();
void restoreSettings();
void storeCollisionName(QString);
void storeMusicTitle(QString);
void storeOpenedChrFile(QString);
void retrieveCollisionName(int);
void retrieveMusicTitle(int);
void sendBankUpdates();
void getBankUpdates(int,int,int,int,int,int,int,int);
void getMetatileProperties(int,bool,bool);
void getScreenProperties(int,bool,bool);
void openStage(QString path="");
void saveASMStage(QString path="");
void saveBinaryStage(QString path="");
void openCHR();
void openPalette();
void savePalette(QString path="");
void clearObjectList();
void clearCollisionTypes();
void clearMusicTitles();
void saveASMAnimation(QString path="");
void setStageLabelPrefix(QString);
void setNewPaletteFile(QString);
void cut();
void copy();
void paste();
void undo();
void redo();
private:
Ui::NESStageTool *ui;
ObjectModel *listObjects;
CheckpointModel *listCheckpoints;
QSettings sSettings;
};
#endif // NESSTAGETOOL_H