Represents a project in the application. More...
#include <project.h>
Public Member Functions | |
absl::Status | Create (const std::string &project_name) |
absl::Status | CheckForEmptyFields () |
absl::Status | Open (const std::string &project_path) |
absl::Status | Save () |
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::string | keybindings_file = "" |
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 |
Definition at line 29 of file project.h.
References name, and project_opened_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar().
|
inline |
Definition at line 34 of file project.h.
References code_folder_, filepath, labels_filename_, name, and rom_filename_.
Referenced by Save().
absl::Status yaze::app::Project::Open | ( | const std::string & | project_path | ) |
Definition at line 14 of file project.cc.
References code_folder_, filepath, yaze::app::kEndOfProjectFile, keybindings_file, labels_filename_, name, and rom_filename_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar(), and yaze::app::editor::EditorManager::OpenRomOrProject().
absl::Status yaze::app::Project::Save | ( | ) |
Definition at line 43 of file project.cc.
References CheckForEmptyFields(), code_folder_, filepath, yaze::app::kEndOfProjectFile, keybindings_file, labels_filename_, name, RETURN_IF_ERROR, and rom_filename_.
Referenced by yaze::app::editor::EditorManager::DrawYazeMenuBar().
bool yaze::app::Project::project_opened_ = false |
Definition at line 47 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 48 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 50 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 51 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 52 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 53 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::keybindings_file = "" |