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, PanelLayoutPreset > | GetAllPresets () |
| 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) | |
Centralized definition of default layouts per editor.
Provides default panel configurations for each editor type:
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.
Definition at line 137 of file layout_presets.h.
|
static |
Get the default layout preset for an editor type.
| type | The editor type |
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().
|
static |
Get all available presets.
Definition at line 246 of file layout_presets.cc.
References GetDefaultPreset(), yaze::editor::kAgent, yaze::editor::kAssembly, yaze::editor::kDungeon, yaze::editor::kEmulator, yaze::editor::kGraphics, yaze::editor::kMessage, yaze::editor::kMusic, yaze::editor::kOverworld, yaze::editor::kPalette, yaze::editor::kScreen, and yaze::editor::kSprite.

|
static |
Get default visible panels for an editor.
| type | The editor type |
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().

|
static |
Get all available panels for an editor (visible + hidden)
| type | The editor type |
Definition at line 268 of file layout_presets.cc.
References GetDefaultPreset().

|
static |
Check if a panel should be visible by default.
| type | The editor type |
| panel_id | The panel ID to check |
Definition at line 276 of file layout_presets.cc.
References GetDefaultPanels().

|
static |
Get the "minimal" workspace preset (minimal cards)
Definition at line 286 of file layout_presets.cc.
References yaze::editor::LayoutPresets::Panels::kAssemblyEditor, yaze::editor::LayoutPresets::Panels::kDungeonControlPanel, yaze::editor::LayoutPresets::Panels::kEmulatorPpuViewer, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::LayoutPresets::Panels::kMessageEditor, yaze::editor::LayoutPresets::Panels::kMusicPlaybackControl, yaze::editor::LayoutPresets::Panels::kMusicSongBrowser, yaze::editor::LayoutPresets::Panels::kOverworldCanvas, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kSpriteVanillaEditor, yaze::editor::kUnknown, and yaze::editor::PanelLayoutPreset::name.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::LayoutOrchestrator::ApplyNamedPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "developer" workspace preset (debug-focused)
Definition at line 307 of file layout_presets.cc.
References yaze::editor::LayoutPresets::Panels::kAssemblyEditor, yaze::editor::LayoutPresets::Panels::kAssemblyFileBrowser, yaze::editor::LayoutPresets::Panels::kDungeonDebugControls, yaze::editor::LayoutPresets::Panels::kEmulatorAiAgent, yaze::editor::LayoutPresets::Panels::kEmulatorApuDebugger, yaze::editor::LayoutPresets::Panels::kEmulatorBreakpoints, yaze::editor::LayoutPresets::Panels::kEmulatorCpuDebugger, yaze::editor::LayoutPresets::Panels::kEmulatorMemoryViewer, yaze::editor::LayoutPresets::Panels::kEmulatorPerformance, yaze::editor::LayoutPresets::Panels::kEmulatorPpuViewer, yaze::editor::LayoutPresets::Panels::kMemoryHexEditor, yaze::editor::kUnknown, and yaze::editor::PanelLayoutPreset::name.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::LayoutOrchestrator::ApplyNamedPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "designer" workspace preset (visual-focused)
Definition at line 332 of file layout_presets.cc.
References yaze::editor::LayoutPresets::Panels::kGraphicsPlayerAnimations, yaze::editor::LayoutPresets::Panels::kGraphicsPrototypeViewer, yaze::editor::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteDungeonMain, yaze::editor::LayoutPresets::Panels::kPaletteOwAnimated, yaze::editor::LayoutPresets::Panels::kPaletteOwMain, yaze::editor::LayoutPresets::Panels::kPaletteQuickAccess, yaze::editor::LayoutPresets::Panels::kPaletteSprites, yaze::editor::LayoutPresets::Panels::kScreenInventoryMenu, yaze::editor::LayoutPresets::Panels::kScreenTitleScreen, yaze::editor::LayoutPresets::Panels::kSpriteCustomEditor, yaze::editor::LayoutPresets::Panels::kSpriteVanillaEditor, yaze::editor::kUnknown, and yaze::editor::PanelLayoutPreset::name.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), yaze::editor::LayoutOrchestrator::ApplyNamedPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "modder" workspace preset (full-featured)
Definition at line 360 of file layout_presets.cc.
References yaze::editor::LayoutPresets::Panels::kDungeonControlPanel, yaze::editor::LayoutPresets::Panels::kDungeonEntrances, yaze::editor::LayoutPresets::Panels::kDungeonObjectEditor, yaze::editor::LayoutPresets::Panels::kDungeonPaletteEditor, 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::LayoutOrchestrator::ApplyNamedPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "overworld expert" workspace preset.
Definition at line 395 of file layout_presets.cc.
References yaze::editor::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, 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::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteOwAnimated, yaze::editor::LayoutPresets::Panels::kPaletteOwMain, and yaze::editor::PanelLayoutPreset::name.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "dungeon expert" workspace preset.
Definition at line 421 of file layout_presets.cc.
References 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::LayoutPresets::Panels::kGraphicsSheetBrowser, yaze::editor::LayoutPresets::Panels::kGraphicsSheetEditor, yaze::editor::LayoutPresets::Panels::kPaletteControlPanel, yaze::editor::LayoutPresets::Panels::kPaletteDungeonMain, yaze::editor::LayoutPresets::Panels::kScreenDungeonMaps, and yaze::editor::PanelLayoutPreset::name.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "testing" workspace preset (QA focused)
Definition at line 448 of file layout_presets.cc.
References yaze::editor::kEmulator, yaze::editor::LayoutPresets::Panels::kEmulatorAiAgent, 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::kMemoryHexEditor, and yaze::editor::PanelLayoutPreset::name.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().
|
static |
Get the "audio" workspace preset (music focused)
Definition at line 471 of file layout_presets.cc.
References yaze::editor::Bottom, yaze::editor::Center, yaze::editor::LayoutPresets::Panels::kAssemblyEditor, yaze::editor::LayoutPresets::Panels::kAssemblyFileBrowser, yaze::editor::LayoutPresets::Panels::kEmulatorApuDebugger, yaze::editor::LayoutPresets::Panels::kEmulatorAudioMixer, 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::Left, yaze::editor::LeftBottom, yaze::editor::PanelLayoutPreset::name, yaze::editor::Right, yaze::editor::RightBottom, yaze::editor::RightTop, and yaze::editor::Top.
Referenced by yaze::editor::LayoutCoordinator::ApplyLayoutPreset(), and yaze::editor::PopupManager::DrawLayoutPresetsPopup().