model_server/gala/src/viewer.cxx
// ResizeWindow - Resizes all of the components of the Viewer to the new size.
//    The first two args, the x-ratio and y-ratio, are not used.
//    Resizes the Tool Bar, Command Line, and the View.
//    Note - The Menu Bar does not currently care about width and is not resized.
//           (The Menu Bar should probably have a Resize function too.)
//   This function is called by the HandleConfigure method of the parent dialog.
//      (The parent dialog is currently of class MyDialog, we should rename it.)
Resizes all of the components of the Viewer to the new size.
The first two args, the x-ratio and y-ratio, are not used.
Resizes the Tool Bar, Command Line, and the View.
Note - The Menu Bar does not currently care about width and is not resized.
(The Menu Bar should probably have a Resize function too.)
This function is called by the HandleConfigure method of the parent dialog.
(The parent dialog is currently of class MyDialog, we should rename it.)
Resizes all of the components of the Viewer to the new size . The first two args the x - ratio and y - ratio are not used . Resizes the Tool Bar Command Line and the View . Note - The Menu Bar does not currently care about width and is not resized . ( The Menu Bar should probably have a Resize function too . ) This function is called by the HandleConfigure method of the parent dialog . ( The parent dialog is currently of class MyDialog we should rename it . )
void Viewer::ResizeWindow(float, float, int newHeight, int newWidth)
{
    gInit (Viewer::ResizeWindow);
    this->rect.w = newWidth;
    int menuBarHeight = 0;
    if (menuBar_) menuBarHeight = menuBar_->GetHeight();
    int toolBarHeight = 0;
    SetToolbarSize();
    if (DIS_args->findArg("-toolbar"))
        toolBarHeight = TOOLBAR_BUTTON_SIZE;
    this->rect.h = newHeight - menuBarHeight - toolBarHeight - this->rect.y;
    if (_view) _view->ResizeView(0, this->rect.y);
    if (toolBar_)
        toolBar_->Resize(rect.w, rect.y + rect.h);
    commandLineView_->SetWidth(newWidth);
    commandLineView_->UpdatePane();
  }
void Viewer :: ResizeWindow ( float , float , int newHeight , int newWidth ) { gInit ( Viewer :: ResizeWindow ) ; this -> rect . w = newWidth ; int menuBarHeight = 0 ; if ( menuBar_ ) menuBarHeight = menuBar_ -> GetHeight ( ) ; int toolBarHeight = 0 ; SetToolbarSize ( ) ; if ( DIS_args -> findArg ( " " ) ) toolBarHeight = TOOLBAR_BUTTON_SIZE ; this -> rect . h = newHeight - menuBarHeight - toolBarHeight - this -> rect . y ; if ( _view ) _view -> ResizeView ( 0 , this -> rect . y ) ; if ( toolBar_ ) toolBar_ -> Resize ( rect . w , rect . y + rect . h ) ; commandLineView_ -> SetWidth ( newWidth ) ; commandLineView_ -> UpdatePane ( ) ; }
ResizeWindow - Resizes all of the components of the Viewer to the new size.
ResizeWindow - Resizes all of the components of the Viewer to the new size .
// Resize the View. // Note - The X-location remains at 0. //        The Y-location remains unchanged. //        The height of the view rectangle is set to the new height less //            the Tool Bar height and Menu Bar height. //        The width is is set to the new width. // Get the new Height. // Resize the view. // Resize the Tool Bar. // Note - The Y-location is set directly above the new view height. //        The width is is set to the new width. // Resize the Command Line to lower left corner. // Note - The X-location remains at 0. //        The Y-location remains at 0. //        The height is remains unchanged. //        The width is set to the new width.