yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
editor_manager_interfaces.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_SYSTEM_EDITOR_MANAGER_INTERFACES_H_
2#define YAZE_APP_EDITOR_SYSTEM_EDITOR_MANAGER_INTERFACES_H_
3
4#include "app/editor/editor.h"
5
6namespace yaze {
7class Rom;
8}
9
10namespace yaze::editor {
11
12class RomSession;
13
21 public:
22 virtual ~ISessionConfigurator() = default;
23 virtual void ConfigureSession(RomSession* session) = 0;
24 virtual void SetCurrentEditor(Editor* editor) = 0;
25};
26
34 public:
35 virtual ~IEditorSwitcher() = default;
36 virtual Rom* GetCurrentRom() const = 0;
37 virtual void SwitchToEditor(EditorType type, bool force_visible = false,
38 bool from_dialog = false) = 0;
39 virtual void DismissEditorSelection() = 0;
40};
41
42} // namespace yaze::editor
43
44#endif // YAZE_APP_EDITOR_SYSTEM_EDITOR_MANAGER_INTERFACES_H_
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Definition rom.h:28
Interface for editor classes.
Definition editor.h:236
Interface for editor selection and navigation.
virtual ~IEditorSwitcher()=default
virtual void SwitchToEditor(EditorType type, bool force_visible=false, bool from_dialog=false)=0
virtual void DismissEditorSelection()=0
virtual Rom * GetCurrentRom() const =0
Interface for session configuration.
virtual ~ISessionConfigurator()=default
virtual void ConfigureSession(RomSession *session)=0
virtual void SetCurrentEditor(Editor *editor)=0
Editors are the view controllers for the application.
Represents a single session, containing a ROM and its associated editors.