moved serialization

This commit is contained in:
itsmattkc
2023-02-21 14:26:34 -08:00
parent 85a8fbf1fd
commit 028651f9fb
31 changed files with 1203 additions and 1443 deletions
+6 -16
View File
@@ -70,9 +70,10 @@ public:
return default_nodes_;
}
int GetNumberOfContextsNodeIsIn(Node *node, bool except_itself = false) const;
void Load(QXmlStreamReader *reader);
void Save(QXmlStreamWriter *writer) const;
Folder* root();
int GetNumberOfContextsNodeIsIn(Node *node, bool except_itself = false) const;
QString name() const;
@@ -80,8 +81,9 @@ public:
QString pretty_filename() const;
void set_filename(const QString& s);
ColorManager* color_manager() { return color_manager_; }
ProjectSettingsNode* settings() { return settings_; }
Folder* root() const { return root_; }
ColorManager* color_manager() const { return color_manager_; }
ProjectSettingsNode* settings() const { return settings_; }
bool is_modified() const { return is_modified_; }
void set_modified(bool e);
@@ -106,16 +108,6 @@ public:
void RegenerateUuid();
const MainWindowLayoutInfo &GetLayoutInfo() const
{
return layout_info_;
}
void SetLayoutInfo(const MainWindowLayoutInfo &info)
{
layout_info_ = info;
}
/**
* @brief Returns the filename the project was saved as, but not necessarily where it is now
*
@@ -195,8 +187,6 @@ private:
bool autorecovery_saved_;
MainWindowLayoutInfo layout_info_;
QVector<Node*> node_children_;
QVector<Node*> default_nodes_;