model_server/gala/src/view.cxx
// SetPane - Loads in the new pane.
//    Multi-view panes have a special init.
//    Non-multi-view panes are added to the current pane.
Loads in the new pane.
Multi-view panes have a special init.
Non-multi-view panes are added to the current pane.
Loads in the new pane . Multi - view panes have a special init . Non - multi - view panes are added to the current pane .
void View::SetPane(Pane* newPane)
{
    const vchar* paneTagName = newPane->GetTag();
    if ( paneTagName && 
         ((*paneTagName == '|') || (*paneTagName == '-')) ) {
        LoadMultiView(newPane);
    } else {
        RemovePane();
        if (paneTagName && (*paneTagName == *UNSPLITABLE) ) {
            Unsplitable_ = vTRUE;
            hasBorder_ = vFALSE;
        } else {
            Unsplitable_ = vFALSE;
            hasBorder_ = vTRUE;
        }
        myPane = newPane;
        myPane->AttachView(this);
        UpdatePane();
        myPane->Open();
        AppendItem(myPane);
        if (paneTagName)
            LoadContentList(paneTagName);
    }
}
void View :: SetPane ( Pane * newPane ) { const vchar * paneTagName = newPane -> GetTag ( ) ; if ( paneTagName && ( ( * paneTagName == ' ' ) || ( * paneTagName == ' ' ) ) ) { LoadMultiView ( newPane ) ; } else { RemovePane ( ) ; if ( paneTagName && ( * paneTagName == * UNSPLITABLE ) ) { Unsplitable_ = vTRUE ; hasBorder_ = vFALSE ; } else { Unsplitable_ = vFALSE ; hasBorder_ = vTRUE ; } myPane = newPane ; myPane -> AttachView ( this ) ; UpdatePane ( ) ; myPane -> Open ( ) ; AppendItem ( myPane ) ; if ( paneTagName ) LoadContentList ( paneTagName ) ; } }
SetPane - Loads in the new pane.
SetPane - Loads in the new pane .
// If this is a Multi-View pane, load it. // Else, load in the view and set the pane. // If I already have a pane, remove it from my item list. // Init Unsplitable and Border flags. // Attach the new pane. // Load in the content list, if it is in the resource file.