#include <project.h>
Public Member Functions | |
RecentFilesManager (const RecentFilesManager &)=delete | |
RecentFilesManager & | operator= (const RecentFilesManager &)=delete |
void | AddFile (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 244 of file project.h.
Referenced by yaze::editor::EditorManager::DrawMenuBar(), yaze::editor::EditorManager::Initialize(), yaze::editor::EditorManager::LoadRom(), yaze::editor::EditorManager::OpenProject(), 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 253 of file project.h.
References recent_files_.
void yaze::core::RecentFilesManager::Save | ( | ) |
Definition at line 1069 of file project.cc.
References yaze::util::PlatformPaths::GetConfigDirectory(), GetFilePath(), LOG_ERROR, LOG_WARN, and recent_files_.
void yaze::core::RecentFilesManager::Load | ( | ) |
Definition at line 1090 of file project.cc.
References GetFilePath(), and recent_files_.
Referenced by RecentFilesManager().
|
inline |
Definition at line 272 of file project.h.
References recent_files_.
Referenced by yaze::editor::WelcomeScreen::RefreshRecentProjects().
|
inline |
Definition at line 276 of file project.h.
References recent_files_.
|
private |
Definition at line 1061 of file project.cc.
References yaze::util::PlatformPaths::GetConfigDirectory(), and yaze::core::kRecentFilesFilename.
Referenced by Load(), and Save().
|
private |