yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::core::RecentFilesManager Class Reference

#include <project.h>

Public Member Functions

 RecentFilesManager (const RecentFilesManager &)=delete
 
RecentFilesManageroperator= (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 RecentFilesManagerGetInstance ()
 

Private Member Functions

 RecentFilesManager ()
 
std::string GetFilePath () const
 

Private Attributes

std::vector< std::string > recent_files_
 

Detailed Description

Definition at line 241 of file project.h.

Constructor & Destructor Documentation

◆ RecentFilesManager() [1/2]

yaze::core::RecentFilesManager::RecentFilesManager ( const RecentFilesManager )
delete

◆ RecentFilesManager() [2/2]

yaze::core::RecentFilesManager::RecentFilesManager ( )
inlineprivate

Definition at line 281 of file project.h.

References Load().

Here is the call graph for this function:

Member Function Documentation

◆ GetInstance()

◆ operator=()

RecentFilesManager & yaze::core::RecentFilesManager::operator= ( const RecentFilesManager )
delete

◆ AddFile()

void yaze::core::RecentFilesManager::AddFile ( const std::string &  file_path)
inline

Definition at line 253 of file project.h.

References recent_files_.

◆ Save()

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_.

Here is the call graph for this function:

◆ Load()

void yaze::core::RecentFilesManager::Load ( )

Definition at line 1090 of file project.cc.

References GetFilePath(), and recent_files_.

Referenced by RecentFilesManager().

Here is the call graph for this function:

◆ GetRecentFiles()

const std::vector< std::string > & yaze::core::RecentFilesManager::GetRecentFiles ( ) const
inline

Definition at line 272 of file project.h.

References recent_files_.

Referenced by yaze::editor::WelcomeScreen::RefreshRecentProjects().

◆ Clear()

void yaze::core::RecentFilesManager::Clear ( )
inline

Definition at line 276 of file project.h.

References recent_files_.

◆ GetFilePath()

std::string yaze::core::RecentFilesManager::GetFilePath ( ) const
private

Definition at line 1061 of file project.cc.

References yaze::util::PlatformPaths::GetConfigDirectory(), and yaze::core::kRecentFilesFilename.

Referenced by Load(), and Save().

Here is the call graph for this function:

Member Data Documentation

◆ recent_files_

std::vector<std::string> yaze::core::RecentFilesManager::recent_files_
private

Definition at line 287 of file project.h.

Referenced by AddFile(), Clear(), GetRecentFiles(), Load(), and Save().


The documentation for this class was generated from the following files: