Represents a project in the application. More...
#include <project.h>
Public Member Functions | |
absl::Status | Create (const std::string &project_name) |
Creates a new project. | |
absl::Status | Open (const std::string &project_path) |
absl::Status | Save () |
absl::Status | CheckForEmptyFields () |
Public Member Functions inherited from yaze::app::core::ExperimentFlags | |
ExperimentFlags ()=default | |
virtual | ~ExperimentFlags ()=default |
auto | flags () const |
Flags * | mutable_flags () |
std::string | Serialize () const |
Public Attributes | |
bool | project_opened_ = false |
std::string | name |
std::string | flags = "" |
std::string | filepath |
std::string | rom_filename_ = "" |
std::string | code_folder_ = "" |
std::string | labels_filename_ = "" |
std::vector< std::string > | previous_rom_filenames_ |
Represents a project in the application.
A project is a collection of files and resources that are used in the creation of a Zelda3 hack that can be saved and loaded. This makes it so the user can have different rom file names for a single project and keep track of backups.
|
inline |
Creates a new project.
project_name | The name of the project. |
project_path | The path to the project. |
Definition at line 39 of file project.h.
References name, and project_opened_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar().
|
inline |
Definition at line 45 of file project.h.
References code_folder_, filepath, yaze::app::kEndOfProjectFile, labels_filename_, name, and rom_filename_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar(), and yaze::app::editor::EditorManager::OpenRomOrProject().
|
inline |
Definition at line 73 of file project.h.
References CheckForEmptyFields(), code_folder_, filepath, yaze::app::kEndOfProjectFile, labels_filename_, name, RETURN_IF_ERROR, and rom_filename_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar().
|
inline |
Definition at line 94 of file project.h.
References code_folder_, filepath, labels_filename_, name, and rom_filename_.
Referenced by Save().
bool yaze::app::Project::project_opened_ = false |
Definition at line 105 of file project.h.
Referenced by Create(), yaze::app::editor::EditorManager::DrawYazeMenuBar(), and yaze::app::editor::EditorManager::OpenProject().
std::string yaze::app::Project::name |
Definition at line 106 of file project.h.
Referenced by CheckForEmptyFields(), Create(), yaze::app::editor::EditorManager::DrawYazeMenuBar(), Open(), yaze::app::editor::EditorManager::OpenProject(), and Save().
std::string yaze::app::Project::filepath |
Definition at line 108 of file project.h.
Referenced by CheckForEmptyFields(), yaze::app::editor::EditorManager::DrawYazeMenuBar(), Open(), yaze::app::editor::EditorManager::OpenProject(), and Save().
std::string yaze::app::Project::rom_filename_ = "" |
Definition at line 109 of file project.h.
Referenced by CheckForEmptyFields(), yaze::app::editor::EditorManager::DrawYazeMenuBar(), Open(), yaze::app::editor::EditorManager::OpenProject(), and Save().
std::string yaze::app::Project::code_folder_ = "" |
Definition at line 110 of file project.h.
Referenced by CheckForEmptyFields(), yaze::app::editor::EditorManager::DrawYazeMenuBar(), Open(), yaze::app::editor::EditorManager::OpenProject(), and Save().
std::string yaze::app::Project::labels_filename_ = "" |
Definition at line 111 of file project.h.
Referenced by CheckForEmptyFields(), yaze::app::editor::EditorManager::DrawYazeMenuBar(), Open(), yaze::app::editor::EditorManager::OpenProject(), and Save().
std::vector<std::string> yaze::app::Project::previous_rom_filenames_ |