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

ID: "recent-files". Refresh after RecentFilesManager mutates. More...

#include <command_palette_providers.h>

Inheritance diagram for yaze::editor::RecentFilesCommandsProvider:
Collaboration diagram for yaze::editor::RecentFilesCommandsProvider:

Public Member Functions

 RecentFilesCommandsProvider (std::function< void(const std::string &)> open_callback)
 
std::string ProviderId () const override
 Stable identifier. Used for selective refresh; must be unique.
 
void Provide (CommandPalette *palette) override
 Populate palette with this source's commands.
 
- Public Member Functions inherited from yaze::editor::CommandProvider
virtual ~CommandProvider ()=default
 

Private Attributes

std::function< void(const std::string &) open_callback_ )
 

Detailed Description

ID: "recent-files". Refresh after RecentFilesManager mutates.

Definition at line 52 of file command_palette_providers.h.

Constructor & Destructor Documentation

◆ RecentFilesCommandsProvider()

yaze::editor::RecentFilesCommandsProvider::RecentFilesCommandsProvider ( std::function< void(const std::string &)> open_callback)
explicit

Definition at line 28 of file command_palette_providers.cc.

Member Function Documentation

◆ ProviderId()

std::string yaze::editor::RecentFilesCommandsProvider::ProviderId ( ) const
inlineoverridevirtual

Stable identifier. Used for selective refresh; must be unique.

Implements yaze::editor::CommandProvider.

Definition at line 56 of file command_palette_providers.h.

◆ Provide()

void yaze::editor::RecentFilesCommandsProvider::Provide ( CommandPalette * palette)
overridevirtual

Populate palette with this source's commands.

Implements yaze::editor::CommandProvider.

Definition at line 32 of file command_palette_providers.cc.

References open_callback_, and yaze::editor::CommandPalette::RegisterRecentFilesCommands().

Here is the call graph for this function:

Member Data Documentation

◆ open_callback_

std::function<void(const std::string&) yaze::editor::RecentFilesCommandsProvider::open_callback_)
private

Definition at line 60 of file command_palette_providers.h.

Referenced by Provide().


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