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 PanelLayoutPreset = PanelLayoutPreset
 

Static Public Member Functions

static PanelLayoutPreset GetDefaultPreset (EditorType type)
 Get the default layout preset for an editor type.
 
static std::unordered_map< EditorType, PanelLayoutPresetGetAllPresets ()
 Get all available presets.
 
static std::vector< std::string > GetDefaultPanels (EditorType type)
 Get default visible panels for an editor.
 
static std::vector< std::string > GetAllPanelsForEditor (EditorType type)
 Get all available panels for an editor (visible + hidden)
 
static bool IsDefaultPanel (EditorType type, const std::string &panel_id)
 Check if a panel should be visible by default.
 
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 GetOverworldExpertPreset ()
 Get the "overworld expert" workspace preset.
 
static PanelLayoutPreset GetDungeonExpertPreset ()
 Get the "dungeon expert" workspace preset.
 
static PanelLayoutPreset GetTestingPreset ()
 Get the "testing" workspace preset (QA focused)
 
static PanelLayoutPreset GetAudioPreset ()
 Get the "audio" workspace preset (music focused)
 

Detailed Description

Centralized definition of default layouts per editor.

Provides default panel configurations for each editor type:

  • Overworld: Main canvas, Tile16 list (already good per user)
  • 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 55 of file layout_presets.h.

Member Typedef Documentation

◆ PanelLayoutPreset

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 6 of file layout_presets.cc.

References yaze::editor::Bottom, yaze::editor::Center, yaze::editor::PanelLayoutPreset::editor_type, yaze::editor::kAgent, yaze::editor::kAssembly, yaze::editor::LayoutPresets::Panels::kAssemblyEditor, yaze::editor::LayoutPresets::Panels::kAssemblyFileBrowser, yaze::editor::kDungeon, yaze::editor::LayoutPresets::Panels::kDungeonControlPanel, yaze::editor::LayoutPresets::Panels::kDungeonDebugControls, 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::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::kGraphics, yaze::editor::LayoutPresets::Panels::kGraphicsPlayerAnimations, yaze::editor::LayoutPresets::Panels::kGraphicsPrototypeViewer, yaze::editor::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, 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::kOverworldGfxGroups, yaze::editor::LayoutPresets::Panels::kOverworldScratch, 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::Right, yaze::editor::RightBottom, yaze::editor::RightTop, and yaze::editor::Top.

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

◆ GetAllPresets()

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

◆ 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 264 of file layout_presets.cc.

References GetDefaultPreset().

Referenced by IsDefaultPanel(), yaze::editor::PanelManager::OnEditorSwitch(), yaze::editor::PanelManager::ResetToDefaults(), and yaze::editor::anonymous_namespace{layout_manager.cc}::ShowDefaultPanelsForEditor().

Here is the call graph for this function:

◆ 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 268 of file layout_presets.cc.

References GetDefaultPreset().

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 276 of file layout_presets.cc.

References GetDefaultPanels().

Here is the call graph for this function:

◆ GetMinimalPreset()

◆ GetDeveloperPreset()

◆ GetDesignerPreset()

◆ GetModderPreset()

◆ GetOverworldExpertPreset()

◆ GetDungeonExpertPreset()

◆ GetTestingPreset()

◆ GetAudioPreset()


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