yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::Editor Class Referenceabstract

Interface for editor classes. More...

#include <editor.h>

Inherited by yaze::editor::AssemblyEditor, yaze::editor::DungeonEditor, yaze::editor::GraphicsEditor, yaze::editor::MessageEditor, yaze::editor::MusicEditor, yaze::editor::OverworldEditor, yaze::editor::PaletteEditor, yaze::editor::ScreenEditor, yaze::editor::SettingsEditor, yaze::editor::SpriteEditor, and yaze::test::integration::TestEditor.

Collaboration diagram for yaze::editor::Editor:

Public Member Functions

 Editor ()=default
 
virtual ~Editor ()=default
 
virtual void Initialize ()=0
 
virtual absl::Status Load ()=0
 
virtual absl::Status Save ()=0
 
virtual absl::Status Update ()=0
 
virtual absl::Status Cut ()=0
 
virtual absl::Status Copy ()=0
 
virtual absl::Status Paste ()=0
 
virtual absl::Status Undo ()=0
 
virtual absl::Status Redo ()=0
 
virtual absl::Status Find ()=0
 
EditorType type () const
 
void set_context (EditorContext *context)
 
bool * active ()
 
void set_active (bool active)
 

Protected Attributes

bool active_ = false
 
EditorType type_
 
EditorContextcontext_ = nullptr
 

Detailed Description

Interface for editor classes.

Provides basic editing operations that each editor should implement.

Definition at line 53 of file editor.h.

Constructor & Destructor Documentation

◆ Editor()

yaze::editor::Editor::Editor ( )
default

◆ ~Editor()

virtual yaze::editor::Editor::~Editor ( )
virtualdefault

Member Function Documentation

◆ Initialize()

◆ Load()

◆ Save()

◆ Update()

◆ Cut()

◆ Copy()

◆ Paste()

◆ Undo()

◆ Redo()

◆ Find()

◆ type()

EditorType yaze::editor::Editor::type ( ) const
inline

Definition at line 79 of file editor.h.

References type_.

◆ set_context()

void yaze::editor::Editor::set_context ( EditorContext * context)
inline

Definition at line 81 of file editor.h.

References context_.

◆ active()

bool * yaze::editor::Editor::active ( )
inline

Definition at line 83 of file editor.h.

References active_.

Referenced by set_active(), and yaze::editor::GraphicsEditor::UpdateGfxTabView().

◆ set_active()

void yaze::editor::Editor::set_active ( bool active)
inline

Definition at line 84 of file editor.h.

References active(), and active_.

Here is the call graph for this function:

Member Data Documentation

◆ active_

bool yaze::editor::Editor::active_ = false
protected

Definition at line 87 of file editor.h.

Referenced by active(), and set_active().

◆ type_

◆ context_

EditorContext* yaze::editor::Editor::context_ = nullptr
protected

Definition at line 89 of file editor.h.

Referenced by yaze::editor::SettingsEditor::DrawKeyboardShortcuts(), and set_context().


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