model_server/gala/src/viewerMenu.cxx
/*
  This method finds a menu item by first searching its list of items and then, if that is 
unsuccessful, asking its next menu.  If it is the last menu and it cannot find it, it will
return NULL.
*/
This method finds a menu item by first searching its list of items and then, if that is
unsuccessful, asking its next menu.  If it is the last menu and it cannot find it, it will
return NULL.
This method finds a menu item by first searching its list of items and then if that is unsuccessful asking its next menu . If it is the last menu and it cannot find it it will return NULL .
ViewerMenuItemList* ViewerMenu::FindItem (const vchar* tagName)
{
    ViewerMenuItemList* targetItem = NULL;
    if (myItemList_)
	targetItem = myItemList_->FindItem(tagName);
    if (targetItem)
	return targetItem;
    else if (next_)
	return next_->FindItem(tagName);
    else
	return NULL;
}
ViewerMenuItemList * ViewerMenu :: FindItem ( const vchar * tagName ) { ViewerMenuItemList * targetItem = NULL ; if ( myItemList_ ) targetItem = myItemList_ -> FindItem ( tagName ) ; if ( targetItem ) return targetItem ; else if ( next_ ) return next_ -> FindItem ( tagName ) ; else return NULL ; }
This method finds a menu item by first searching its list of items and then, if that is
unsuccessful, asking its next menu.
This method finds a menu item by first searching its list of items and then if that is unsuccessful asking its next menu .