model_server/gala/src/viewerMenu.cxx
/*
Returns the position of the next menu in the menu bar.  If this menu is not hidden, it will return
its own position; otherwise, it will return the position of the menu behind it.  If there is no
menu behind it, it will return -1.
*/
Returns the position of the next menu in the menu bar.  If this menu is not hidden, it will return
its own position; otherwise, it will return the position of the menu behind it.  If there is no
menu behind it, it will return -1.
Returns the position of the next menu in the menu bar . If this menu is not hidden it will return its own position ; otherwise it will return the position of the menu behind it . If there is no menu behind it it will return - 1 .
int ViewerMenu::GetPosition()
{
    if (hidden_)
        {
	if (!next_)
	    return LAST_ITEM;
	else
	    return next_->GetPosition();
        }
    else if (myMenuBar_)
        return myMenuBar_->GetMenuIndex (this);
    else
        return LAST_ITEM;
}
int ViewerMenu :: GetPosition ( ) { if ( hidden_ ) { if ( ! next_ ) return LAST_ITEM ; else return next_ -> GetPosition ( ) ; } else if ( myMenuBar_ ) return myMenuBar_ -> GetMenuIndex ( this ) ; else return LAST_ITEM ; }
Returns the position of the next menu in the menu bar.
Returns the position of the next menu in the menu bar .