//Called whenever elements are added to the selection virtual void selectionAdded(const TreeSelectionEventUnrecPtr e) { //Get the selected Node try { SelectedNode = boost::any_cast<NodeRefPtr>(TheTree->getLastSelectedPathComponent()); } catch (boost::bad_any_cast &) { SelectedNode = NULL; } selectedNodeChanged(); }
//Called whenever elements are added to the selection void handleTreeSelectionAdded(TreeSelectionEventDetails* const details) { //Get the selected Node try { _SelectedNode = boost::any_cast<NodeUnrecPtr>(_TheTree->getLastSelectedPathComponent()); } catch (boost::bad_any_cast &) { _SelectedNode = NULL; } selectedNodeChanged(); }
//Called whenever elements are removed to the selection virtual void selectionRemoved(const TreeSelectionEventUnrecPtr e) { SelectedNode = NULL; selectedNodeChanged(); }
//Called whenever elements are removed to the selection void handleTreeSelectionRemoved(TreeSelectionEventDetails* const details) { _SelectedNode = NULL; selectedNodeChanged(); }