move fileWatcher signals to project class, block when saving

This commit is contained in:
garakmon
2020-04-11 20:39:50 -04:00
parent 96a870552e
commit df8dac965f
3 changed files with 57 additions and 27 deletions

View File

@@ -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