-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnesmetaspritetool.h
85 lines (65 loc) · 2.06 KB
/
nesmetaspritetool.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
#ifndef NESMETASPRITETOOL_H
#define NESMETASPRITETOOL_H
#include <QMainWindow>
#include <QGraphicsRectItem>
#include <QMessageBox>
#include <QFileDialog>
#include <QDesktopServices>
#include <QDirIterator>
#include <QTextStream>
#include <QRegularExpression>
#include <QSettings>
#include <QEvent>
#define NESMT_WIKI_URL "https://github.com/BattyBovine/NES-Metasprite-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 NESMetaspriteTool;
}
class NESMetaspriteTool : public QMainWindow
{
Q_OBJECT
public:
explicit NESMetaspriteTool(QWidget *parent = 0);
~NESMetaspriteTool();
signals:
void chrFileOpened(QString);
void metaspriteFileOpened(QString);
private slots:
void newProject();
void openProject();
void saveProject();
void saveProjectToFolder(QString);
void showWikiPage();
void saveSpriteMode();
void saveSpriteTable();
void saveShowGrid();
void saveSnapToGrid();
void saveBankSize();
void savePaletteSwatch();
void saveRefreshRate();
void saveOpenedChrFile(QString);
void restoreSettings();
void adjustSpriteSlot(int);
void setFrameIntentionallyBlank(bool);
void openMetaspriteBank();
void saveASMMetaspriteBank(QString path="");
void saveBinaryMetaspriteBank(QString path="");
void openCHR();
void openPalette();
void savePalette(QString path="");
void openAnimation();
void saveASMAnimation(QString path="");
void setNewPaletteFile(QString);
void setAnimationLabelPrefix(QString);
// void setPlayButtonText();
// void setPauseButtonText();
protected:
void keyPressEvent(QKeyEvent*);
private:
Ui::NESMetaspriteTool *ui;
QSettings sSettings;
};
#endif // NESMETASPRITETOOL_H