#include <project.h>
Public Member Functions | |
| RecentFilesManager (const RecentFilesManager &)=delete | |
| RecentFilesManager & | operator= (const RecentFilesManager &)=delete |
| void | AddFile (const std::string &file_path) |
| void | RemoveFile (const std::string &file_path) |
| void | Save () |
| void | Load () |
| const std::vector< std::string > & | GetRecentFiles () const |
| void | Clear () |
Static Public Member Functions | |
| static RecentFilesManager & | GetInstance () |
Private Member Functions | |
| RecentFilesManager () | |
| std::string | GetFilePath () const |
Private Attributes | |
| std::vector< std::string > | recent_files_ |
|
delete |
|
inlineprivate |
|
inlinestatic |
Definition at line 310 of file project.h.
Referenced by yaze::editor::ConfigureEditorShortcuts(), yaze::editor::UICoordinator::DrawGlobalSearch(), yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::EditorManager::LoadRom(), yaze::editor::WelcomeScreen::RefreshRecentProjects(), yaze::editor::ProjectFileEditor::SaveFileAs(), yaze::editor::EditorManager::SaveProject(), yaze::editor::EditorManager::SaveProjectAs(), and yaze::editor::EditorManager::SaveRomAs().
|
delete |
|
inline |
Definition at line 319 of file project.h.
References recent_files_.
|
inline |
Definition at line 334 of file project.h.
References recent_files_.
| void yaze::project::RecentFilesManager::Save | ( | ) |
Definition at line 1729 of file project.cc.
References yaze::util::PlatformPaths::GetConfigDirectory(), GetFilePath(), yaze::project::kRecentFilesFilename, LOG_ERROR, LOG_WARN, and recent_files_.

| void yaze::project::RecentFilesManager::Load | ( | ) |
Definition at line 1760 of file project.cc.
References GetFilePath(), yaze::project::kRecentFilesFilename, and recent_files_.
Referenced by RecentFilesManager().

|
inline |
Definition at line 345 of file project.h.
References recent_files_.
|
inline |
Definition at line 349 of file project.h.
References recent_files_.
|
private |
Definition at line 1721 of file project.cc.
References yaze::util::PlatformPaths::GetConfigDirectory(), and yaze::project::kRecentFilesFilename.
Referenced by Load(), and Save().

|
private |
Definition at line 358 of file project.h.
Referenced by AddFile(), Clear(), GetRecentFiles(), Load(), RemoveFile(), and Save().