Salome HOME
NRI : Merge from V1_2.
[modules/kernel.git] / src / SALOMEGUI / QAD_RightFrame.cxx
index b7a30e2b4edd3f8ff50ce6df543886e52ab5ed33..200ecc5cb6d172ece754930f472ec51fad396905 100644 (file)
@@ -1,12 +1,32 @@
-using namespace std;
-//  File      : QAD_RightFrame.cxx
-//  Created   : Thu Jun 14 14:51:52 2001
-//  Author    : Nicolas REJNERI
-//  Project   : SALOME
-//  Module    : SALOMEGUI
-//  Copyright : Open CASCADE
+//  SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : QAD_RightFrame.cxx
+//  Author : Nicolas REJNERI
+//  Module : SALOME
 //  $Header$
 
+using namespace std;
 #include "QAD_RightFrame.h"
 #include "QAD_Application.h"
 #include "QAD_Desktop.h"
@@ -341,12 +361,12 @@ QAD_RightFrame::QAD_RightFrame(QWidget *parent, const char *name,
   myMessage  = new QAD_Message( vsplitter ,"Message");  
   myMessage->setMinimumSize( 1, 1 );
 
-  sizes.append( 0.48 * DesktopHeight );
-  sizes.append( 0.16 * DesktopHeight );
+  sizes.append( (int)(0.48 * DesktopHeight) );
+  sizes.append( (int)(0.16 * DesktopHeight) );
   setSizes( sizes );
   sizes.clear();
-  sizes.append( 0.25 * DesktopWidth );
-  sizes.append( 0.25 * DesktopWidth );
+  sizes.append( (int)(0.25 * DesktopWidth) );
+  sizes.append( (int)(0.25 * DesktopWidth) );
   vsplitter->setSizes( sizes );
 }