15 LOG_ERROR(
"TabFactory",
"Cannot create tab: parent window is null");
22 LOG_INFO(
"TabFactory",
"Creating Scene Hierarchy tab");
23 auto tab = std::make_unique<SceneHierarchyTab>(parent, mainFrame);
34 LOG_INFO(
"TabFactory",
"Creating Properties tab");
35 auto tab = std::make_unique<PropertiesTab>(parent, mainFrame);
46 LOG_INFO(
"TabFactory",
"Creating Log tab");
47 return std::make_unique<LogTab>(parent);
51 LOG_INFO(
"TabFactory",
"Creating Performance tab");
52 return std::make_unique<EmberForge::PerformancePanel>(parent);
56 LOG_INFO(
"TabFactory",
"Creating File Explorer tab");
57 return std::make_unique<FileExplorerTab>(parent);
61 LOG_INFO(
"TabFactory",
"Creating Tree Selector tab");
62 auto tab = std::make_unique<TreeSelectorTab>(parent, mainFrame);
72 LOG_ERROR(
"TabFactory",
"Unknown tab type requested: " + std::to_string(
static_cast<int>(type)));
75 }
catch (
const std::exception &e) {
76 LOG_ERROR(
"TabFactory",
"Exception while creating tab: " + std::string(e.what()));
79 LOG_ERROR(
"TabFactory",
"Unknown exception while creating tab");
87 return "Scene Hierarchy";
95 return "File Explorer";
97 return "Tree Selector";
106 return "Display and navigate the behavior tree hierarchy";
108 return "View and edit object properties";
110 return "View application logs and debug information";
112 return "Monitor application performance metrics";
114 return "Browse and manage project files";
116 return "Select and switch between behavior trees in the project";
118 return "Unknown tab type";
213 return "SceneHierarchy";
219 return "Performance";
221 return "FileExplorer";
223 return "TreeSelector";
225 return "FileExplorer";
230 if (str ==
"SceneHierarchy")
232 if (str ==
"Properties")
236 if (str ==
"Performance")
238 if (str ==
"FileExplorer")
240 if (str ==
"TreeSelector")
#define LOG_ERROR(category, message)
#define LOG_INFO(category, message)
static wxString GetTabDisplayName(TabType type)
Get the display name for a tab type.
static wxString GetTabTooltip(TabType type)
Get the tooltip text for a tab type.
static std::unique_ptr< ITab > CreateTab(TabType type, wxWindow *parent, MainFrame *mainFrame=nullptr)
Create a tab of the specified type.
static std::vector< TabType > GetSidePanelTabTypes()
Get tab types supported by the side panels.
static std::string TabTypeToString(TabType type)
Convert tab type to string identifier (for preferences storage)
static int GetMaxGlobalInstances(TabType type)
Get the maximum number of instances allowed globally across all panels.
static std::vector< TabType > GetAvailableTabTypes()
Get all available tab types.
static bool IsTabAllowedInPanel(TabType tabType, EmberForge::PanelType panelType)
Check if a tab type is allowed in a specific panel type.
static bool AllowMultipleInstances(TabType type)
Check if a tab type can be created multiple times within a single panel.
static TabType StringToTabType(const std::string &str)
Convert string identifier to tab type.
static std::vector< TabType > GetBottomPanelTabTypes()
Get tab types supported by the bottom panel.
Main application window for EmberForge.
void UpdatePropertiesTabReference(PropertiesTab *propertiesTab)
void UpdateTreeSelectorTabReference(TreeSelectorTab *treeSelectorTab)
void UpdateHierarchyTabReference(SceneHierarchyTab *hierarchyTab)
PanelType
Defines the type of panel in the UI hierarchy.
TabType
Enumeration of available tab types.