Classes | |
| struct | DockNodeIds |
| struct | DockSplitConfig |
| struct | DockSplitNeeds |
| struct | PanelLookupEntry |
Functions | |
| void | ShowDefaultWindowsForEditor (WorkspaceWindowManager *registry, EditorType type) |
| yaze::Json | BoolMapToJson (const std::unordered_map< std::string, bool > &map) |
| void | JsonToBoolMap (const yaze::Json &obj, std::unordered_map< std::string, bool > *map) |
| void | JsonToWindowMap (const yaze::Json &entry, std::unordered_map< std::string, bool > *windows) |
| std::filesystem::path | GetLayoutsFilePath (LayoutScope scope, const std::string &project_key) |
| bool | TryGetNamedPreset (const std::string &preset_name, PanelLayoutPreset *preset_out) |
| std::string | ResolveProfilePresetName (const std::string &profile_id, EditorType editor_type) |
| bool | ShouldDockPanelInDefaultLayout (const PanelLayoutPreset &preset, const std::string &panel_id) |
| std::vector< std::pair< std::string, DockPosition > > | CollectDockedPanels (const PanelLayoutPreset &preset) |
| DockSplitNeeds | ComputeSplitNeeds (const std::vector< std::pair< std::string, DockPosition > > &docked_panels) |
| bool | IsRightDockPosition (DockPosition pos) |
| bool | IsLeftDockPosition (DockPosition pos) |
| float | ResolvePreferredRegionWidth (WorkspaceWindowManager *window_manager, const std::vector< std::pair< std::string, DockPosition > > &docked_panels, bool(*matches_region)(DockPosition)) |
| void | ApplyPreferredSplitWidths (DockSplitConfig *cfg, const DockSplitNeeds &needs, float viewport_width, WorkspaceWindowManager *window_manager, const std::vector< std::pair< std::string, DockPosition > > &docked_panels) |
| DockNodeIds | BuildDockTree (ImGuiID dockspace_id, const DockSplitNeeds &needs, const DockSplitConfig &cfg) |
| ImGuiDir | SplitDirectionToImGuiDir (layout_designer::SplitDirection d) |
| std::string | ResolveDockWindowTitle (const WorkspaceWindowManager *wm, size_t session_id, const layout_designer::PanelEntry &panel) |
| void | ApplyDockNodeRecursive (WorkspaceWindowManager *wm, size_t session_id, const layout_designer::DockNode &node, ImGuiID target_id) |
| std::unique_ptr< layout_designer::DockNode > | CaptureDockNodeRecursive (const ImGuiDockNode *node, const std::unordered_map< std::string, PanelLookupEntry > &by_window_name) |
| void | CollectPanelIdsInSubtree (const layout_designer::DockNode &node, std::vector< std::string > *out) |
Variables | |
| constexpr char | kLegacyPanelsKey [] = "panels" |
| constexpr char | kWindowsKey [] = "windows" |
| void yaze::editor::anonymous_namespace{layout_manager.cc}::ShowDefaultWindowsForEditor | ( | WorkspaceWindowManager * | registry, |
| EditorType | type ) |
Definition at line 35 of file layout_manager.cc.
References yaze::editor::LayoutPresets::GetDefaultWindows(), LOG_INFO, yaze::editor::WorkspaceWindowManager::OpenWindow(), and ShowDefaultWindowsForEditor().
Referenced by ShowDefaultWindowsForEditor().

| yaze::Json yaze::editor::anonymous_namespace{layout_manager.cc}::BoolMapToJson | ( | const std::unordered_map< std::string, bool > & | map | ) |
Definition at line 49 of file layout_manager.cc.
References BoolMapToJson(), and yaze::Json::object().
Referenced by BoolMapToJson().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::JsonToBoolMap | ( | const yaze::Json & | obj, |
| std::unordered_map< std::string, bool > * | map ) |
Definition at line 57 of file layout_manager.cc.
References yaze::Json::is_object(), yaze::Json::items(), and JsonToBoolMap().
Referenced by JsonToBoolMap(), and JsonToWindowMap().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::JsonToWindowMap | ( | const yaze::Json & | entry, |
| std::unordered_map< std::string, bool > * | windows ) |
Definition at line 70 of file layout_manager.cc.
References yaze::Json::contains(), yaze::Json::is_object(), JsonToBoolMap(), JsonToWindowMap(), kLegacyPanelsKey, and kWindowsKey.
Referenced by JsonToWindowMap().

| std::filesystem::path yaze::editor::anonymous_namespace{layout_manager.cc}::GetLayoutsFilePath | ( | LayoutScope | scope, |
| const std::string & | project_key ) |
Definition at line 86 of file layout_manager.cc.
References yaze::util::PlatformPaths::EnsureDirectoryExists(), yaze::util::PlatformPaths::GetAppDataSubdirectory(), GetLayoutsFilePath(), and yaze::editor::kProject.
Referenced by GetLayoutsFilePath().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::TryGetNamedPreset | ( | const std::string & | preset_name, |
| PanelLayoutPreset * | preset_out ) |
Definition at line 106 of file layout_manager.cc.
References yaze::editor::LayoutPresets::GetAudioEngineerPreset(), yaze::editor::LayoutPresets::GetDesignerPreset(), yaze::editor::LayoutPresets::GetDeveloperPreset(), yaze::editor::LayoutPresets::GetDungeonMasterPreset(), yaze::editor::LayoutPresets::GetLogicDebuggerPreset(), yaze::editor::LayoutPresets::GetMinimalPreset(), yaze::editor::LayoutPresets::GetModderPreset(), yaze::editor::LayoutPresets::GetOverworldArtistPreset(), and TryGetNamedPreset().
Referenced by TryGetNamedPreset().
| std::string yaze::editor::anonymous_namespace{layout_manager.cc}::ResolveProfilePresetName | ( | const std::string & | profile_id, |
| EditorType | editor_type ) |
Definition at line 148 of file layout_manager.cc.
References yaze::editor::kDungeon, and ResolveProfilePresetName().
Referenced by ResolveProfilePresetName().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::ShouldDockPanelInDefaultLayout | ( | const PanelLayoutPreset & | preset, |
| const std::string & | panel_id ) |
Definition at line 375 of file layout_manager.cc.
References yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::dock_only_default_visible_panels, and ShouldDockPanelInDefaultLayout().
Referenced by CollectDockedPanels(), and ShouldDockPanelInDefaultLayout().

| std::vector< std::pair< std::string, DockPosition > > yaze::editor::anonymous_namespace{layout_manager.cc}::CollectDockedPanels | ( | const PanelLayoutPreset & | preset | ) |
Definition at line 385 of file layout_manager.cc.
References CollectDockedPanels(), yaze::editor::PanelLayoutPreset::default_visible_panels, yaze::editor::PanelLayoutPreset::optional_panels, yaze::editor::PanelLayoutPreset::panel_positions, and ShouldDockPanelInDefaultLayout().
Referenced by CollectDockedPanels().

| DockSplitNeeds yaze::editor::anonymous_namespace{layout_manager.cc}::ComputeSplitNeeds | ( | const std::vector< std::pair< std::string, DockPosition > > & | docked_panels | ) |
Definition at line 435 of file layout_manager.cc.
References yaze::editor::Bottom, yaze::editor::Center, ComputeSplitNeeds(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left, yaze::editor::Left, yaze::editor::LeftBottom, yaze::editor::LeftTop, yaze::editor::Right, yaze::editor::RightBottom, yaze::editor::RightTop, and yaze::editor::Top.
Referenced by ComputeSplitNeeds().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::IsRightDockPosition | ( | DockPosition | pos | ) |
Definition at line 476 of file layout_manager.cc.
References IsRightDockPosition(), yaze::editor::Right, yaze::editor::RightBottom, and yaze::editor::RightTop.
Referenced by ApplyPreferredSplitWidths(), and IsRightDockPosition().

| bool yaze::editor::anonymous_namespace{layout_manager.cc}::IsLeftDockPosition | ( | DockPosition | pos | ) |
Definition at line 481 of file layout_manager.cc.
References IsLeftDockPosition(), yaze::editor::Left, yaze::editor::LeftBottom, and yaze::editor::LeftTop.
Referenced by ApplyPreferredSplitWidths(), and IsLeftDockPosition().

| float yaze::editor::anonymous_namespace{layout_manager.cc}::ResolvePreferredRegionWidth | ( | WorkspaceWindowManager * | window_manager, |
| const std::vector< std::pair< std::string, DockPosition > > & | docked_panels, | ||
| bool(*)(DockPosition) | matches_region ) |
Definition at line 486 of file layout_manager.cc.
References yaze::editor::WorkspaceWindowManager::GetWindowContent(), and ResolvePreferredRegionWidth().
Referenced by ApplyPreferredSplitWidths(), and ResolvePreferredRegionWidth().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::ApplyPreferredSplitWidths | ( | DockSplitConfig * | cfg, |
| const DockSplitNeeds & | needs, | ||
| float | viewport_width, | ||
| WorkspaceWindowManager * | window_manager, | ||
| const std::vector< std::pair< std::string, DockPosition > > & | docked_panels ) |
Definition at line 506 of file layout_manager.cc.
References ApplyPreferredSplitWidths(), IsLeftDockPosition(), IsRightDockPosition(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::left, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left, ResolvePreferredRegionWidth(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::right, and yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right.
Referenced by ApplyPreferredSplitWidths().

| DockNodeIds yaze::editor::anonymous_namespace{layout_manager.cc}::BuildDockTree | ( | ImGuiID | dockspace_id, |
| const DockSplitNeeds & | needs, | ||
| const DockSplitConfig & | cfg ) |
Definition at line 531 of file layout_manager.cc.
References yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::bottom, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::bottom, BuildDockTree(), yaze::editor::anonymous_namespace{layout_manager.cc}::DockNodeIds::center, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::left, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left_bottom, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::left_top, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::right, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right_bottom, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::right_top, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::top, yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitNeeds::top, and yaze::editor::anonymous_namespace{layout_manager.cc}::DockSplitConfig::vertical_split.
Referenced by BuildDockTree().

| ImGuiDir yaze::editor::anonymous_namespace{layout_manager.cc}::SplitDirectionToImGuiDir | ( | layout_designer::SplitDirection | d | ) |
Definition at line 1241 of file layout_manager.cc.
References SD, and SplitDirectionToImGuiDir().
Referenced by ApplyDockNodeRecursive(), and SplitDirectionToImGuiDir().

| std::string yaze::editor::anonymous_namespace{layout_manager.cc}::ResolveDockWindowTitle | ( | const WorkspaceWindowManager * | wm, |
| size_t | session_id, | ||
| const layout_designer::PanelEntry & | panel ) |
Definition at line 1256 of file layout_manager.cc.
References yaze::editor::layout_designer::PanelEntry::display_name, yaze::editor::WorkspaceWindowManager::GetWindowDescriptor(), yaze::editor::WorkspaceWindowManager::GetWorkspaceWindowName(), yaze::editor::layout_designer::PanelEntry::icon, yaze::editor::layout_designer::PanelEntry::panel_id, and ResolveDockWindowTitle().
Referenced by ApplyDockNodeRecursive(), and ResolveDockWindowTitle().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::ApplyDockNodeRecursive | ( | WorkspaceWindowManager * | wm, |
| size_t | session_id, | ||
| const layout_designer::DockNode & | node, | ||
| ImGuiID | target_id ) |
Definition at line 1282 of file layout_manager.cc.
References ApplyDockNodeRecursive(), yaze::editor::layout_designer::DockNode::child_a, yaze::editor::layout_designer::DockNode::child_b, yaze::editor::layout_designer::DockNode::panels, ResolveDockWindowTitle(), yaze::editor::layout_designer::DockNode::split_direction, yaze::editor::layout_designer::DockNode::split_ratio, SplitDirectionToImGuiDir(), and yaze::editor::layout_designer::DockNode::type.
Referenced by ApplyDockNodeRecursive().

| std::unique_ptr< layout_designer::DockNode > yaze::editor::anonymous_namespace{layout_manager.cc}::CaptureDockNodeRecursive | ( | const ImGuiDockNode * | node, |
| const std::unordered_map< std::string, PanelLookupEntry > & | by_window_name ) |
Definition at line 1316 of file layout_manager.cc.
References CaptureDockNodeRecursive().
Referenced by CaptureDockNodeRecursive().

| void yaze::editor::anonymous_namespace{layout_manager.cc}::CollectPanelIdsInSubtree | ( | const layout_designer::DockNode & | node, |
| std::vector< std::string > * | out ) |
Definition at line 1374 of file layout_manager.cc.
References yaze::editor::layout_designer::DockNode::child_a, yaze::editor::layout_designer::DockNode::child_b, CollectPanelIdsInSubtree(), yaze::editor::layout_designer::DockNode::panels, and yaze::editor::layout_designer::DockNode::type.
Referenced by CollectPanelIdsInSubtree().

|
constexpr |
Definition at line 31 of file layout_manager.cc.
Referenced by JsonToWindowMap().
|
constexpr |
Definition at line 32 of file layout_manager.cc.
Referenced by JsonToWindowMap().