Ember
Loading...
Searching...
No Matches
ForgeNavigatorTab Class Reference

#include <ForgeNavigatorTab.h>

Inheritance diagram for ForgeNavigatorTab:
EmberUI::NavigatorTab ITab

Public Member Functions

 ForgeNavigatorTab (wxWindow *parent, MainFrame *mainFrame)
MainFrameGetMainFrame () const
Public Member Functions inherited from EmberUI::NavigatorTab
 NavigatorTab (wxWindow *parent)
void SetCallbacks (NavigatorCallbacks cb)
void SetEditingEnabled (bool enabled)
bool IsEditingEnabled () const
wxWindow * GetWidget () override
 Returns the wxWidgets window used as the tab content.
wxString GetTitle () const override
 Returns the display title of the tab.
wxString GetTabType () const override
 Returns the tab type identifier.
void OnClosed () override
 Called when the tab is closed.
void OnActivated () override
 Called when the tab becomes active.
void UpdateTreeList (const std::map< std::string, std::shared_ptr< EmberCore::BehaviorTree > > &trees, const std::string &currentTreeId)
 Updates tree list from project trees and sets current tree.
void SetCurrentTree (const std::string &treeId)
 Sets the currently selected tree in the list.
void ClearTreeList ()
void SetTreeSelectionCallback (TreeSelectionCallback callback)
void SetMainTreeId (const std::string &id)
void SetBlackboards (const std::map< std::string, std::shared_ptr< EmberCore::Blackboard > > &bbs)
void SetBlackboardSelectionCallback (std::function< void(const std::string &)> cb)
void OnBlackboardClicked (const std::string &bbId)
void SetActiveTree (std::shared_ptr< EmberCore::ITreeStructure > tree, const std::string &treeId)
 Sets the active tree for hierarchy view and drills into it.
void SelectNodeById (size_t nodeId)
 Selects the node with the given ID in the hierarchy.
void RefreshHierarchy ()
void SetLayoutInvalidationCallback (std::function< void()> cb)
void SetNodeSelectionCallback (std::function< void(EmberCore::ITreeNode *)> cb)
void DrillIntoTree (const std::string &treeId)
 Drills into a subtree (updates breadcrumb and hierarchy).
void NavigateBack ()
 Navigates back in breadcrumb history.
const std::vector< FlatEntry > & GetFlatList () const
const std::vector< SearchResult > & GetSearchResults () const
const std::string & GetCurrentTreeId () const
const std::string & GetBrowsedTreeId () const
void ToggleCollapse (const std::string &treeId)
void ToggleSectionCollapse (SectionType section)
bool IsCollapsed (const std::string &treeId) const
bool IsSectionCollapsed (SectionType section) const
int GetToggleHitX (int depth, bool isCurrent) const
void ShowTreeContextMenu (int itemIndex, const wxPoint &pos)
void ShowSearchContextMenu (int resultIndex, const wxPoint &pos)
bool IsActiveTree (const std::string &treeId) const
void ClearSearch ()
Public Member Functions inherited from ITab
virtual ~ITab ()=default
virtual wxBitmap GetIcon () const
 Returns the tab icon bitmap; defaults to null.
virtual void Initialize ()
 Called once when the tab is first created.
virtual void Refresh ()
 Refreshes the tab content.
virtual void OnDeactivated ()
 Called when the tab becomes inactive.
virtual bool IsValid () const
 Returns true if the tab is in a valid state.
virtual bool CanClose () const
 Returns true if the tab can be closed.
virtual bool CanMove () const
 Returns true if the tab can be moved/reordered.
virtual wxString SerializeState () const
 Serializes tab state to a string for persistence.
virtual void DeserializeState (const wxString &state)
 Restores tab state from a serialized string.
virtual bool HasUnsavedChanges () const
 Returns true if the tab has unsaved changes.
virtual bool Save ()
 Saves the tab content; returns true on success.
virtual bool SupportsOperation (const wxString &operation) const
 Returns true if the tab supports the given operation.
virtual bool ExecuteOperation (const wxString &operation, const wxString &parameter="")
 Executes an operation with optional parameter; returns true on success.

Private Attributes

MainFramem_mainFrame

Additional Inherited Members

Public Types inherited from EmberUI::NavigatorTab
enum class  SectionType { None , MainTree , OtherTrees , Blackboards }
using TreeSelectionCallback = std::function<void(const std::string &treeId)>
Protected Member Functions inherited from EmberUI::NavigatorTab
 NavigatorTab (wxWindow *parent, bool deferLayout)
void InitLayout ()
virtual NavigatorHierarchyViewCreateHierarchyView (wxWindow *parent, const TreeHierarchyConfig &cfg)
NavigatorHierarchyViewGetHierarchyView () const

Detailed Description

Definition at line 7 of file ForgeNavigatorTab.h.

Constructor & Destructor Documentation

◆ ForgeNavigatorTab()

ForgeNavigatorTab::ForgeNavigatorTab ( wxWindow * parent,
MainFrame * mainFrame )

Definition at line 4 of file ForgeNavigatorTab.cpp.

Member Function Documentation

◆ GetMainFrame()

MainFrame * ForgeNavigatorTab::GetMainFrame ( ) const
inline

Definition at line 11 of file ForgeNavigatorTab.h.

Member Data Documentation

◆ m_mainFrame

MainFrame* ForgeNavigatorTab::m_mainFrame
private

Definition at line 14 of file ForgeNavigatorTab.h.


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