model_server/gala/src/view.cxx
// UpdateColors - Sets colors for current, neighbor, and child views.
Sets colors for current, neighbor, and child views.
Sets colors for current neighbor and child views .
void View::UpdateColors()
{
  if (mySash) {
#ifdef OWNCOLOR
         mySash->SetForeground(Viewer::GetSashForeground());
     mySash->SetBackground(Viewer::GetSashBackground());
#endif
  }
  if (myPane) {
#ifdef OWNCOLOR
        vcolor* fg = myPane->GetForeground();
    vcolor* bg = myPane->GetBackground();
    myPane->SetForeground (fg ? fg : Viewer::GetPaneForeground());
    myPane->SetBackground (bg ? bg : Viewer::GetPaneBackground());
#endif
  }
  if (RightView)
    RightView->UpdateColors();
  if (ChildView)
    ChildView->UpdateColors();
}
void View :: UpdateColors ( ) { if ( mySash ) { #ifdef OWNCOLOR mySash -> SetForeground ( Viewer :: GetSashForeground ( ) ) ; mySash -> SetBackground ( Viewer :: GetSashBackground ( ) ) ; #endif } if ( myPane ) { #ifdef OWNCOLOR vcolor * fg = myPane -> GetForeground ( ) ; vcolor * bg = myPane -> GetBackground ( ) ; myPane -> SetForeground ( fg ? fg : Viewer :: GetPaneForeground ( ) ) ; myPane -> SetBackground ( bg ? bg : Viewer :: GetPaneBackground ( ) ) ; #endif } if ( RightView ) RightView -> UpdateColors ( ) ; if ( ChildView ) ChildView -> UpdateColors ( ) ; }
UpdateColors - Sets colors for current, neighbor, and child views.
UpdateColors - Sets colors for current neighbor and child views .