OtherTreeView
responsible for showing an Other in a tree. This is a fairly simple object.
public:
~OtherTreeView( )
enum MenuIDs
void Attach( const wxTreeItemId& NodeId)
void SetNodeText( const std::string& NewText)
std::string GetStringRepresentation( )
void ShowContextMenu( const wxPoint& Position)
void HandleContextMenuEvent( wxTreeItemId SourceID, wxCommandEvent& Event)
- wxTreeItemId SourceID: the source of this event. Could be different from this view (if the user clicked on public for example)
ObjectPtr GetObject( )
bool CanBeContainedByClass( ClassObjectPtr pClass) const
protected:
private:
friends
OtherTreeView( ClassTree* pTree, OtherObjectPtr pOther)
std::string GetEditableLabel( )
When the user clicks on the label they will be able to edit it directly. This gets the text that will show up in the edit box.
bool OnLabelChanged( const std::string& NewLabel)
Called when the user is done entering text into the tree label. Children will need to parse this and set their data accordingly.
void ShowInfo( )
OtherObjectPtr m_pOther
pointer to the other this class represents.