#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 () |
| std::uint64_t | GetGeneration () const |
| Bumps when recent file list changes (add/remove/clear/load). | |
Static Public Member Functions | |
| static RecentFilesManager & | GetInstance () |
Private Member Functions | |
| RecentFilesManager () | |
| std::string | GetFilePath () const |
| void | BumpGeneration () |
Private Attributes | |
| std::vector< std::string > | recent_files_ |
| std::uint64_t | generation_ = 0 |
|
delete |
|
inlineprivate |
|
inlinestatic |
Definition at line 425 of file project.h.
Referenced by yaze::editor::RecentProjectsModel::AddRecent(), yaze::editor::RecentProjectsModel::ClearAll(), yaze::editor::ConfigureEditorShortcuts(), yaze::editor::UICoordinator::DrawGlobalSearch(), yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::EditorManager::LoadRom(), yaze::editor::RecentProjectsModel::Refresh(), yaze::editor::CommandPalette::RegisterRecentFilesCommands(), yaze::editor::RecentProjectsModel::RelinkRecent(), yaze::editor::RecentProjectsModel::RemoveRecent(), yaze::editor::ProjectFileEditor::SaveFileAs(), yaze::editor::EditorManager::SaveProject(), yaze::editor::EditorManager::SaveProjectAs(), yaze::editor::EditorManager::SaveRomAs(), yaze::editor::anonymous_namespace{editor_manager.cc}::SeedOracleProjectInRecents(), and yaze::editor::RecentProjectsModel::UndoLastRemoval().
|
delete |
|
inline |
Definition at line 434 of file project.h.
References BumpGeneration(), and recent_files_.

|
inline |
Definition at line 450 of file project.h.
References BumpGeneration(), and recent_files_.

| void yaze::project::RecentFilesManager::Save | ( | ) |
Definition at line 2793 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 2824 of file project.cc.
References BumpGeneration(), GetFilePath(), yaze::project::kRecentFilesFilename, and recent_files_.
Referenced by RecentFilesManager().

|
inline |
Definition at line 462 of file project.h.
References recent_files_.
Referenced by yaze::editor::CommandPalette::RegisterRecentFilesCommands().
|
inline |
Definition at line 466 of file project.h.
References BumpGeneration(), and recent_files_.

|
inline |
Bumps when recent file list changes (add/remove/clear/load).
Definition at line 472 of file project.h.
References generation_.
|
private |
Definition at line 2785 of file project.cc.
References yaze::util::PlatformPaths::GetConfigDirectory(), and yaze::project::kRecentFilesFilename.
Referenced by Load(), and Save().

|
inlineprivate |
Definition at line 481 of file project.h.
References generation_.
Referenced by AddFile(), Clear(), Load(), and RemoveFile().
|
private |
Definition at line 483 of file project.h.
Referenced by AddFile(), Clear(), GetRecentFiles(), Load(), RemoveFile(), and Save().
|
private |
Definition at line 484 of file project.h.
Referenced by BumpGeneration(), and GetGeneration().