From bdee9dd0c92865e0cec2f4bbf170959df282a930 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 11 Jun 2021 22:19:23 -0700 Subject: More UI polishing and fix asset saving/reloading --- core/src/Model/Project.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'core/src/Model/Project.hpp') diff --git a/core/src/Model/Project.hpp b/core/src/Model/Project.hpp index 8cf3483..17d9acb 100644 --- a/core/src/Model/Project.hpp +++ b/core/src/Model/Project.hpp @@ -14,24 +14,24 @@ class Project { -public: - WorkflowAssetList Workflows; - TemplateAssetList Templates; - ItemList Products; - ItemList Factories; - ItemList Customers; - private: std::filesystem::path mRootPath; std::string mRootPathString; std::string mName; + // (Exception to style guidelines) // This is put after the private fields, so that when XxxDatabase's constructor runs, all of them will be initialized public: + WorkflowAssetList Workflows; + TemplateAssetList Templates; + ItemList Products; + ItemList Factories; + ItemList Customers; MainDatabase Database; public: /// Load the project from a directory containing the cplt_project.json file. + /// This only loads the main project file, the caller needs to Project(std::filesystem::path rootPath); /// Create a project with the given name in the given path. Note that the path should be a directory that will contain the project files once created. -- cgit v1.2.3-70-g09d2