model_server/gala/src/view.cxx
//  UnsetPane - Removes myPane so a layer can put it somewhere else.
Removes myPane so a layer can put it somewhere else.
Removes myPane so a layer can put it somewhere else .
void View::UnsetPane()
{
    if (myPane) {
        if (ChildView)  {
            printf("Uh oh, Trying to UnSet Pane when there are children!!!\n");
            myPane->SetViewBranch(ChildView, view_type);
            ChildView = NULL;
            view_type = UnknownView;
        }
        myPane->HideWindow();
        myPane->Close();
        DeleteItem(myPane);
        myPane = NULL;
        Pane* newPane = new Pane;
        SetPane(newPane);
    }
}
void View :: UnsetPane ( ) { if ( myPane ) { if ( ChildView ) { printf ( " \n " ) ; myPane -> SetViewBranch ( ChildView , view_type ) ; ChildView = NULL ; view_type = UnknownView ; } myPane -> HideWindow ( ) ; myPane -> Close ( ) ; DeleteItem ( myPane ) ; myPane = NULL ; Pane * newPane = new Pane ; SetPane ( newPane ) ; } }
UnsetPane - Removes myPane so a layer can put it somewhere else.
UnsetPane - Removes myPane so a layer can put it somewhere else .
//Layer* l = myPane->GetOwner()->GetLayer(); //if (l->isEditor()) //((editorLayer*)l)->closeTextData(); // Note - No need to delete the pane because a layer 'owns' it.