Exemplo n.º 1
0
 //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();
 }
Exemplo n.º 2
0
 //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();
 }
Exemplo n.º 3
0
 //Called whenever elements are removed to the selection
 virtual void selectionRemoved(const TreeSelectionEventUnrecPtr e)
 {
     SelectedNode = NULL;
     selectedNodeChanged();
 }
Exemplo n.º 4
0
 //Called whenever elements are removed to the selection
 void handleTreeSelectionRemoved(TreeSelectionEventDetails* const details)
 {
     _SelectedNode = NULL;
     selectedNodeChanged();
 }