mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-20 07:36:31 -05:00
move fileWatcher signals to project class, block when saving
This commit is contained in:
@@ -20,10 +20,11 @@
|
||||
static QString NONE_MAP_CONSTANT = "MAP_NONE";
|
||||
static QString NONE_MAP_NAME = "None";
|
||||
|
||||
class Project
|
||||
class Project : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Project();
|
||||
Project(QWidget *parent = nullptr);
|
||||
~Project();
|
||||
|
||||
Project(const Project &) = delete;
|
||||
@@ -66,6 +67,8 @@ public:
|
||||
|
||||
void set_root(QString);
|
||||
|
||||
void initSignals();
|
||||
|
||||
void clearMapCache();
|
||||
void clearTilesetCache();
|
||||
|
||||
@@ -196,6 +199,11 @@ private:
|
||||
static int num_metatiles_total;
|
||||
static int num_pals_primary;
|
||||
static int num_pals_total;
|
||||
|
||||
QWidget *parent;
|
||||
|
||||
signals:
|
||||
void reloadProject();
|
||||
};
|
||||
|
||||
#endif // PROJECT_H
|
||||
|
||||
Reference in New Issue
Block a user