1#ifndef YAZE_APP_EDITOR_EVENTS_CORE_EVENTS_H_
2#define YAZE_APP_EDITOR_EVENTS_CORE_EVENTS_H_
167 const std::vector<int>& ids,
168 size_t session = 0) {
172 e.
primary_id = ids.empty() ? -1 : ids.front();
178 size_t session = 0) {
188 size_t session = 0) {
215 const std::string& base_id,
216 const std::string& cat,
217 bool vis,
size_t session = 0) {
240 float new_z,
size_t session = 0) {
328 size_t session = 0) {
330 e.
symbol = std::move(sym);
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Published when the active editor changes.
static EditorSwitchedEvent Create(int type, void *ed)
Published at the beginning of each frame (pre-ImGui).
static FrameBeginEvent Create(float dt)
Published at the end of each frame.
static FrameEndEvent Create(float dt)
Published after ImGui::NewFrame and dockspace creation.
static FrameGuiBeginEvent Create(float dt)
Request to navigate to an assembly symbol definition.
static JumpToAssemblySymbolRequestEvent Create(std::string sym, size_t session=0)
Request to navigate to a specific overworld map.
static JumpToMapRequestEvent Create(int map, size_t session=0)
Request to navigate to a specific message ID.
static JumpToMessageRequestEvent Create(int message, size_t session=0)
Request to navigate to a specific dungeon room.
static JumpToRoomRequestEvent Create(int room, size_t session=0)
Published when panel visibility changes.
std::string base_panel_id
static PanelVisibilityChangedEvent Create(const std::string &id, const std::string &base_id, const std::string &cat, bool vis, size_t session=0)
Published when a ROM is successfully loaded into a session.
static RomLoadedEvent Create(Rom *r, const std::string &file, size_t session)
Published when ROM data is modified.
static RomModifiedEvent Create(Rom *r, size_t session, uint32_t addr=0, size_t bytes=0)
Represents a single session, containing a ROM and its associated editors.
Published when a ROM is unloaded from a session.
static RomUnloadedEvent Create(size_t session)
Published when selection changes in any editor.
std::vector< int > selected_ids
static SelectionChangedEvent Create(const std::string &src, const std::vector< int > &ids, size_t session=0)
static SelectionChangedEvent CreateSingle(const std::string &src, int id, size_t session=0)
static SelectionChangedEvent CreateEmpty(const std::string &src, size_t session=0)
Published when a session is closed.
static SessionClosedEvent Create(size_t idx)
Published when a new session is created.
static SessionCreatedEvent Create(size_t idx, RomSession *sess)
Published when the active session changes.
static SessionSwitchedEvent Create(size_t old_idx, size_t new_idx, RomSession *sess)
Activity bar or menu action request.
static UIActionRequestEvent Redo(size_t session=0)
@ kShowAgentProposalsSidebar
static UIActionRequestEvent ShowCommandPalette(size_t session=0)
static UIActionRequestEvent SaveRom(size_t session=0)
static UIActionRequestEvent Create(Action act, size_t session=0)
static UIActionRequestEvent Undo(size_t session=0)
static UIActionRequestEvent ShowSettings(size_t session=0)
static UIActionRequestEvent ShowAgentProposalsSidebar(size_t session=0)
static UIActionRequestEvent ShowAgentChatSidebar(size_t session=0)
static UIActionRequestEvent OpenRom(size_t session=0)
static UIActionRequestEvent ShowEmulator(size_t session=0)
Published when zoom level changes in any canvas/editor.
static ZoomChangedEvent Create(const std::string &src, float old_z, float new_z, size_t session=0)
float GetZoomRatio() const
float GetZoomDelta() const