model_server/gala/src/view.cxx
/*
This method searches for a specific view.  It first searches all of its neighbors to see if
they are the target view, and then searches its children.
*/
This method searches for a specific view.  It first searches all of its neighbors to see if
they are the target view, and then searches its children.
This method searches for a specific view . It first searches all of its neighbors to see if they are the target view and then searches its children .
View* View::find_view(int newId)
{
    for (View* v = this; v; v=v->RightView) {
        if (v->id == newId) return v;
        for (View* v2=v->ChildView; v2; v2=v2->RightView) {
            View* v3 = v2->find_view (newId);
            if (v3) return v3;
        }
    }
    if (myPane && myPane->childViewTree_)
        return myPane->childViewTree_->find_view(newId);
    return NULL;
}
View * View :: find_view ( int newId ) { for ( View * v = this ; v ; v = v -> RightView ) { if ( v -> id == newId ) return v ; for ( View * v2 = v -> ChildView ; v2 ; v2 = v2 -> RightView ) { View * v3 = v2 -> find_view ( newId ) ; if ( v3 ) return v3 ; } } if ( myPane && myPane -> childViewTree_ ) return myPane -> childViewTree_ -> find_view ( newId ) ; return NULL ; }
This method searches for a specific view.
This method searches for a specific view .