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

Centralized definition of default layouts per editor. More...

#include <layout_presets.h>

Classes

struct  Panels
 

Public Types

using Windows = Panels
 

Static Public Member Functions

static PanelLayoutPreset GetDefaultPreset (EditorType type)
 Get the default layout preset for an editor type.
 
static WorkspaceLayoutPreset GetDefaultWorkspacePreset (EditorType type)
 
static std::unordered_map< EditorType, PanelLayoutPresetGetAllPresets ()
 Get all available presets.
 
static std::unordered_map< EditorType, WorkspaceLayoutPresetGetAllWorkspacePresets ()
 
static std::vector< std::string > GetDefaultPanels (EditorType type)
 Get default visible panels for an editor.
 
static std::vector< std::string > GetDefaultWindows (EditorType type)
 
static std::vector< std::string > GetAllPanelsForEditor (EditorType type)
 Get all available panels for an editor (visible + hidden)
 
static std::vector< std::string > GetAllWindowsForEditor (EditorType type)
 
static bool IsDefaultPanel (EditorType type, const std::string &panel_id)
 Check if a panel should be visible by default.
 
static bool IsDefaultWindow (EditorType type, const std::string &window_id)
 
static PanelLayoutPreset GetMinimalPreset ()
 Get the "minimal" workspace preset (minimal cards)
 
static PanelLayoutPreset GetDeveloperPreset ()
 Get the "developer" workspace preset (debug-focused)
 
static PanelLayoutPreset GetDesignerPreset ()
 Get the "designer" workspace preset (visual-focused)
 
static PanelLayoutPreset GetModderPreset ()
 Get the "modder" workspace preset (full-featured)
 
static PanelLayoutPreset GetOverworldArtistPreset ()
 Get the "overworld artist" workspace preset.
 
static PanelLayoutPreset GetOverworldExpertPreset ()
 Legacy alias for GetOverworldArtistPreset()
 
static PanelLayoutPreset GetDungeonMasterPreset ()
 Get the "dungeon master" workspace preset.
 
static PanelLayoutPreset GetDungeonExpertPreset ()
 Legacy alias for GetDungeonMasterPreset()
 
static PanelLayoutPreset GetLogicDebuggerPreset ()
 Get the "logic debugger" workspace preset (QA and debug focused)
 
static PanelLayoutPreset GetTestingPreset ()
 Legacy alias for GetLogicDebuggerPreset()
 
static PanelLayoutPreset GetAudioEngineerPreset ()
 Get the "audio engineer" workspace preset (music focused)
 
static PanelLayoutPreset GetAudioPreset ()
 Legacy alias for GetAudioEngineerPreset()
 

Detailed Description

Centralized definition of default layouts per editor.

Provides default panel configurations for each editor type:

  • Overworld: Main canvas, Tile16 editor docked right
  • Dungeon: Room selector, Object editor, Properties panel
  • Graphics: Sheet browser, Palette editor, Preview pane
  • Debug/Agent: Emulator, Memory editor, Disassembly, Agent chat

These presets are applied when switching to an editor for the first time or when user requests "Reset to Default Layout".

Definition at line 58 of file layout_presets.h.

Member Typedef Documentation

◆ Windows

Definition at line 292 of file layout_presets.h.

Member Function Documentation

◆ GetDefaultPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetDefaultPreset ( EditorType type)
static

Get the default layout preset for an editor type.

Parameters
typeThe editor type
Returns
PanelLayoutPreset with default panels

Definition at line 8 of file layout_presets.cc.

References yaze::editor::Bottom, yaze::editor::Center, yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::description, yaze::editor::PanelLayoutPreset::dock_only_default_visible_panels, yaze::editor::PanelLayoutPreset::editor_type, yaze::core::FeatureFlags::get(), yaze::editor::kAgent, yaze::editor::kAssembly, yaze::editor::LayoutPresets::Panels::kAssemblyBuildOutput, yaze::editor::LayoutPresets::Panels::kAssemblyDisassembly, yaze::editor::LayoutPresets::Panels::kAssemblyEditor, yaze::editor::LayoutPresets::Panels::kAssemblyFileBrowser, yaze::editor::LayoutPresets::Panels::kAssemblySymbols, yaze::editor::LayoutPresets::Panels::kAssemblyToolbar, yaze::editor::kDungeon, yaze::editor::LayoutPresets::Panels::kDungeonDoorEditor, yaze::editor::LayoutPresets::Panels::kDungeonEntranceList, yaze::editor::LayoutPresets::Panels::kDungeonEntrances, yaze::editor::LayoutPresets::Panels::kDungeonObjectEditor, yaze::editor::LayoutPresets::Panels::kDungeonPaletteEditor, yaze::editor::LayoutPresets::Panels::kDungeonRoomGraphics, yaze::editor::LayoutPresets::Panels::kDungeonRoomMatrix, yaze::editor::LayoutPresets::Panels::kDungeonRoomSelector, yaze::editor::LayoutPresets::Panels::kDungeonWorkbench, yaze::editor::kEmulator, yaze::editor::LayoutPresets::Panels::kEmulatorAiAgent, yaze::editor::LayoutPresets::Panels::kEmulatorApuDebugger, yaze::editor::LayoutPresets::Panels::kEmulatorAudioMixer, yaze::editor::LayoutPresets::Panels::kEmulatorBreakpoints, yaze::editor::LayoutPresets::Panels::kEmulatorCpuDebugger, yaze::editor::LayoutPresets::Panels::kEmulatorKeyboardConfig, yaze::editor::LayoutPresets::Panels::kEmulatorMemoryViewer, yaze::editor::LayoutPresets::Panels::kEmulatorPerformance, yaze::editor::LayoutPresets::Panels::kEmulatorPpuViewer, yaze::editor::LayoutPresets::Panels::kEmulatorSaveStates, yaze::editor::LayoutPresets::Panels::kEmulatorVirtualController, yaze::editor::kGraphics, yaze::editor::LayoutPresets::Panels::kGraphicsGfxGroupEditor, yaze::editor::LayoutPresets::Panels::kGraphicsPaletteControls, yaze::editor::LayoutPresets::Panels::kGraphicsPalettesetEditor, yaze::editor::LayoutPresets::Panels::kGraphicsPlayerAnimations, yaze::editor::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::kHex, yaze::editor::LayoutPresets::Panels::kMemoryHexEditor, yaze::editor::kMessage, yaze::editor::LayoutPresets::Panels::kMessageDictionary, yaze::editor::LayoutPresets::Panels::kMessageEditor, yaze::editor::LayoutPresets::Panels::kMessageFontAtlas, yaze::editor::LayoutPresets::Panels::kMessageList, yaze::editor::kMusic, yaze::editor::LayoutPresets::Panels::kMusicAssembly, yaze::editor::LayoutPresets::Panels::kMusicInstrumentEditor, yaze::editor::LayoutPresets::Panels::kMusicPianoRoll, yaze::editor::LayoutPresets::Panels::kMusicPlaybackControl, yaze::editor::LayoutPresets::Panels::kMusicSampleEditor, yaze::editor::LayoutPresets::Panels::kMusicSongBrowser, yaze::editor::kOverworld, yaze::editor::LayoutPresets::Panels::kOverworldAreaGraphics, yaze::editor::LayoutPresets::Panels::kOverworldCanvas, yaze::editor::LayoutPresets::Panels::kOverworldDebug, yaze::editor::LayoutPresets::Panels::kOverworldGfxGroups, yaze::editor::LayoutPresets::Panels::kOverworldItemList, yaze::editor::LayoutPresets::Panels::kOverworldMapProperties, yaze::editor::LayoutPresets::Panels::kOverworldScratch, yaze::editor::LayoutPresets::Panels::kOverworldTile16Editor, yaze::editor::LayoutPresets::Panels::kOverworldTile16Selector, yaze::editor::LayoutPresets::Panels::kOverworldTile8Selector, yaze::editor::LayoutPresets::Panels::kOverworldUsageStats, yaze::editor::LayoutPresets::Panels::kOverworldV3Settings, yaze::editor::kPalette, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteCustom, yaze::editor::LayoutPresets::Panels::kPaletteDungeonMain, yaze::editor::LayoutPresets::Panels::kPaletteEquipment, yaze::editor::LayoutPresets::Panels::kPaletteOwAnimated, yaze::editor::LayoutPresets::Panels::kPaletteOwMain, yaze::editor::LayoutPresets::Panels::kPaletteQuickAccess, yaze::editor::LayoutPresets::Panels::kPaletteSprites, yaze::editor::LayoutPresets::Panels::kPaletteSpritesAux1, yaze::editor::LayoutPresets::Panels::kPaletteSpritesAux2, yaze::editor::LayoutPresets::Panels::kPaletteSpritesAux3, yaze::editor::kScreen, yaze::editor::LayoutPresets::Panels::kScreenDungeonMaps, yaze::editor::LayoutPresets::Panels::kScreenInventoryMenu, yaze::editor::LayoutPresets::Panels::kScreenNamingScreen, yaze::editor::LayoutPresets::Panels::kScreenOverworldMap, yaze::editor::LayoutPresets::Panels::kScreenTitleScreen, yaze::editor::kSprite, yaze::editor::LayoutPresets::Panels::kSpriteCustomEditor, yaze::editor::LayoutPresets::Panels::kSpriteVanillaEditor, yaze::editor::Left, yaze::editor::LeftBottom, yaze::editor::LeftTop, yaze::editor::PanelLayoutPreset::name, yaze::editor::PanelLayoutPreset::optional_panels, yaze::editor::PanelLayoutPreset::panel_positions, yaze::editor::Right, yaze::editor::RightBottom, yaze::editor::RightTop, and yaze::editor::Top.

Referenced by yaze::editor::LayoutOrchestrator::ApplyPreset(), GetAllPanelsForEditor(), GetAllPresets(), GetDefaultPanels(), GetDefaultWorkspacePreset(), yaze::editor::LayoutOrchestrator::HideOptionalPanels(), and yaze::editor::LayoutCoordinator::ResetCurrentEditorLayout().

Here is the call graph for this function:

◆ GetDefaultWorkspacePreset()

static WorkspaceLayoutPreset yaze::editor::LayoutPresets::GetDefaultWorkspacePreset ( EditorType type)
inlinestatic

Definition at line 66 of file layout_presets.h.

References GetDefaultPreset().

Here is the call graph for this function:

◆ GetAllPresets()

std::unordered_map< EditorType, PanelLayoutPreset > yaze::editor::LayoutPresets::GetAllPresets ( )
static

◆ GetAllWorkspacePresets()

static std::unordered_map< EditorType, WorkspaceLayoutPreset > yaze::editor::LayoutPresets::GetAllWorkspacePresets ( )
inlinestatic

Definition at line 76 of file layout_presets.h.

References GetAllPresets().

Here is the call graph for this function:

◆ GetDefaultPanels()

std::vector< std::string > yaze::editor::LayoutPresets::GetDefaultPanels ( EditorType type)
static

Get default visible panels for an editor.

Parameters
typeThe editor type
Returns
Vector of panel IDs that should be visible by default

Definition at line 331 of file layout_presets.cc.

References yaze::editor::PanelLayoutPreset::default_visible_panels, and GetDefaultPreset().

Referenced by GetDefaultWindows(), IsDefaultPanel(), and yaze::editor::WorkspaceWindowManager::ResetToDefaults().

Here is the call graph for this function:

◆ GetDefaultWindows()

static std::vector< std::string > yaze::editor::LayoutPresets::GetDefaultWindows ( EditorType type)
inlinestatic

◆ GetAllPanelsForEditor()

std::vector< std::string > yaze::editor::LayoutPresets::GetAllPanelsForEditor ( EditorType type)
static

Get all available panels for an editor (visible + hidden)

Parameters
typeThe editor type
Returns
Vector of all panel IDs available for this editor

Definition at line 335 of file layout_presets.cc.

References GetDefaultPreset().

Referenced by GetAllWindowsForEditor().

Here is the call graph for this function:

◆ GetAllWindowsForEditor()

static std::vector< std::string > yaze::editor::LayoutPresets::GetAllWindowsForEditor ( EditorType type)
inlinestatic

Definition at line 96 of file layout_presets.h.

References GetAllPanelsForEditor().

Here is the call graph for this function:

◆ IsDefaultPanel()

bool yaze::editor::LayoutPresets::IsDefaultPanel ( EditorType type,
const std::string & panel_id )
static

Check if a panel should be visible by default.

Parameters
typeThe editor type
panel_idThe panel ID to check
Returns
True if panel should be visible by default

Definition at line 343 of file layout_presets.cc.

References GetDefaultPanels().

Referenced by IsDefaultWindow().

Here is the call graph for this function:

◆ IsDefaultWindow()

static bool yaze::editor::LayoutPresets::IsDefaultWindow ( EditorType type,
const std::string & window_id )
inlinestatic

Definition at line 107 of file layout_presets.h.

References IsDefaultPanel().

Here is the call graph for this function:

◆ GetMinimalPreset()

◆ GetDeveloperPreset()

◆ GetDesignerPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetDesignerPreset ( )
static

◆ GetModderPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetModderPreset ( )
static

Get the "modder" workspace preset (full-featured)

Definition at line 423 of file layout_presets.cc.

References yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::description, yaze::editor::PanelLayoutPreset::editor_type, yaze::editor::LayoutPresets::Panels::kDungeonDoorEditor, yaze::editor::LayoutPresets::Panels::kDungeonEntranceList, yaze::editor::LayoutPresets::Panels::kDungeonEntrances, yaze::editor::LayoutPresets::Panels::kDungeonObjectEditor, yaze::editor::LayoutPresets::Panels::kDungeonPaletteEditor, yaze::editor::LayoutPresets::Panels::kDungeonRoomMatrix, yaze::editor::LayoutPresets::Panels::kDungeonRoomSelector, yaze::editor::LayoutPresets::Panels::kEmulatorAiAgent, yaze::editor::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::LayoutPresets::Panels::kMessageEditor, yaze::editor::LayoutPresets::Panels::kMessageList, yaze::editor::LayoutPresets::Panels::kOverworldAreaGraphics, yaze::editor::LayoutPresets::Panels::kOverworldCanvas, yaze::editor::LayoutPresets::Panels::kOverworldGfxGroups, yaze::editor::LayoutPresets::Panels::kOverworldTile16Selector, yaze::editor::LayoutPresets::Panels::kOverworldTile8Selector, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteOwMain, yaze::editor::LayoutPresets::Panels::kSpriteVanillaEditor, yaze::editor::kUnknown, and yaze::editor::PanelLayoutPreset::name.

Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::PopupManager::DrawLayoutPresetsPopup(), and yaze::editor::anonymous_namespace{layout_manager.cc}::TryGetNamedPreset().

◆ GetOverworldArtistPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetOverworldArtistPreset ( )
static

Get the "overworld artist" workspace preset.

Definition at line 460 of file layout_presets.cc.

References yaze::editor::Bottom, yaze::editor::Center, yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::description, yaze::editor::PanelLayoutPreset::editor_type, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::kOverworld, yaze::editor::LayoutPresets::Panels::kOverworldAreaGraphics, yaze::editor::LayoutPresets::Panels::kOverworldCanvas, yaze::editor::LayoutPresets::Panels::kOverworldDebug, yaze::editor::LayoutPresets::Panels::kOverworldGfxGroups, yaze::editor::LayoutPresets::Panels::kOverworldItemList, yaze::editor::LayoutPresets::Panels::kOverworldMapProperties, yaze::editor::LayoutPresets::Panels::kOverworldScratch, yaze::editor::LayoutPresets::Panels::kOverworldTile16Editor, yaze::editor::LayoutPresets::Panels::kOverworldTile16Selector, yaze::editor::LayoutPresets::Panels::kOverworldTile8Selector, yaze::editor::LayoutPresets::Panels::kOverworldUsageStats, yaze::editor::LayoutPresets::Panels::kOverworldV3Settings, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteOwAnimated, yaze::editor::LayoutPresets::Panels::kPaletteOwMain, yaze::editor::LeftBottom, yaze::editor::LeftTop, yaze::editor::PanelLayoutPreset::name, yaze::editor::PanelLayoutPreset::panel_positions, yaze::editor::RightBottom, and yaze::editor::RightTop.

Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::LayoutOrchestrator::ApplyNamedPreset(), yaze::editor::PopupManager::DrawLayoutPresetsPopup(), GetOverworldExpertPreset(), and yaze::editor::anonymous_namespace{layout_manager.cc}::TryGetNamedPreset().

◆ GetOverworldExpertPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetOverworldExpertPreset ( )
static

Legacy alias for GetOverworldArtistPreset()

Definition at line 505 of file layout_presets.cc.

References GetOverworldArtistPreset().

Here is the call graph for this function:

◆ GetDungeonMasterPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetDungeonMasterPreset ( )
static

Get the "dungeon master" workspace preset.

Definition at line 509 of file layout_presets.cc.

References yaze::editor::Bottom, yaze::editor::Center, yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::description, yaze::editor::PanelLayoutPreset::editor_type, yaze::editor::kDungeon, yaze::editor::LayoutPresets::Panels::kDungeonDoorEditor, yaze::editor::LayoutPresets::Panels::kDungeonEntranceList, yaze::editor::LayoutPresets::Panels::kDungeonEntrances, yaze::editor::LayoutPresets::Panels::kDungeonObjectEditor, yaze::editor::LayoutPresets::Panels::kDungeonPaletteEditor, yaze::editor::LayoutPresets::Panels::kDungeonRoomGraphics, yaze::editor::LayoutPresets::Panels::kDungeonRoomMatrix, yaze::editor::LayoutPresets::Panels::kDungeonRoomSelector, yaze::editor::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteDungeonMain, yaze::editor::LayoutPresets::Panels::kScreenDungeonMaps, yaze::editor::LeftBottom, yaze::editor::LeftTop, yaze::editor::PanelLayoutPreset::name, yaze::editor::PanelLayoutPreset::panel_positions, yaze::editor::RightBottom, and yaze::editor::RightTop.

Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::LayoutOrchestrator::ApplyNamedPreset(), yaze::editor::PopupManager::DrawLayoutPresetsPopup(), GetDungeonExpertPreset(), and yaze::editor::anonymous_namespace{layout_manager.cc}::TryGetNamedPreset().

◆ GetDungeonExpertPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetDungeonExpertPreset ( )
static

Legacy alias for GetDungeonMasterPreset()

Definition at line 550 of file layout_presets.cc.

References GetDungeonMasterPreset().

Here is the call graph for this function:

◆ GetLogicDebuggerPreset()

◆ GetTestingPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetTestingPreset ( )
static

Legacy alias for GetLogicDebuggerPreset()

Definition at line 577 of file layout_presets.cc.

References GetLogicDebuggerPreset().

Here is the call graph for this function:

◆ GetAudioEngineerPreset()

◆ GetAudioPreset()

PanelLayoutPreset yaze::editor::LayoutPresets::GetAudioPreset ( )
static

Legacy alias for GetAudioEngineerPreset()

Definition at line 614 of file layout_presets.cc.

References GetAudioEngineerPreset().

Here is the call graph for this function:

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