]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Porting to Qt4.
authormkr <mkr@opencascade.com>
Wed, 11 Jul 2007 06:23:48 +0000 (06:23 +0000)
committermkr <mkr@opencascade.com>
Wed, 11 Jul 2007 06:23:48 +0000 (06:23 +0000)
52 files changed:
src/BasicGUI/BasicGUI_ArcDlg.cxx
src/BasicGUI/BasicGUI_CircleDlg.cxx
src/BasicGUI/BasicGUI_CurveDlg.cxx
src/BasicGUI/BasicGUI_EllipseDlg.cxx
src/BasicGUI/BasicGUI_LineDlg.cxx
src/BasicGUI/BasicGUI_MarkerDlg.cxx
src/BasicGUI/BasicGUI_PlaneDlg.cxx
src/BasicGUI/BasicGUI_PointDlg.cxx
src/BasicGUI/BasicGUI_VectorDlg.cxx
src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
src/BooleanGUI/BooleanGUI_Dialog.cxx
src/BuildGUI/BuildGUI_CompoundDlg.cxx
src/BuildGUI/BuildGUI_EdgeDlg.cxx
src/BuildGUI/BuildGUI_FaceDlg.cxx
src/BuildGUI/BuildGUI_ShellDlg.cxx
src/BuildGUI/BuildGUI_SolidDlg.cxx
src/BuildGUI/BuildGUI_WireDlg.cxx
src/GEOMBase/GEOMBase.cxx
src/GEOMBase/GEOMBase_Helper.cxx
src/GEOMBase/GEOMBase_Skeleton.cxx
src/GEOMFiltersSelection/GEOM_PreviewFilter.cxx
src/GEOMGUI/GEOMGUI_Selection.cxx
src/GEOMGUI/GeometryGUI.cxx
src/GEOMToolsGUI/GEOMToolsGUI_1.cxx
src/GenerationGUI/GenerationGUI_FillingDlg.cxx
src/GenerationGUI/GenerationGUI_PipeDlg.cxx
src/GenerationGUI/GenerationGUI_PrismDlg.cxx
src/GenerationGUI/GenerationGUI_RevolDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_BoxDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_ConeDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_CylinderDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_SphereDlg.cxx
src/PrimitiveGUI/PrimitiveGUI_TorusDlg.cxx
src/TransformationGUI/TransformationGUI.cxx
src/TransformationGUI/TransformationGUI.pro [new file with mode: 0644]
src/TransformationGUI/TransformationGUI_MirrorDlg.cxx
src/TransformationGUI/TransformationGUI_MirrorDlg.h
src/TransformationGUI/TransformationGUI_MultiRotationDlg.cxx
src/TransformationGUI/TransformationGUI_MultiRotationDlg.h
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.cxx
src/TransformationGUI/TransformationGUI_MultiTranslationDlg.h
src/TransformationGUI/TransformationGUI_OffsetDlg.cxx
src/TransformationGUI/TransformationGUI_OffsetDlg.h
src/TransformationGUI/TransformationGUI_PositionDlg.cxx
src/TransformationGUI/TransformationGUI_PositionDlg.h
src/TransformationGUI/TransformationGUI_RotationDlg.cxx
src/TransformationGUI/TransformationGUI_RotationDlg.h
src/TransformationGUI/TransformationGUI_ScaleDlg.cxx
src/TransformationGUI/TransformationGUI_ScaleDlg.h
src/TransformationGUI/TransformationGUI_TranslationDlg.cxx
src/TransformationGUI/TransformationGUI_TranslationDlg.h
src/src.pro

index c9278dcc2b22beb23e87d2c36db275b7af9244b6..0334bc5c00723a3e33c37db98eca00673d1d1fdd 100644 (file)
@@ -169,7 +169,7 @@ void BasicGUI_ArcDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
           SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_ARC" ).toStdString().c_str() ); 
+  initName( tr( "GEOM_ARC" ).toLatin1().constData() ); 
   
 
   ConstructorsClicked( 0 );
index f42e8cce17440e0d6e2b8a0f083946f74136ad17..40ebbf4dec1ae76cca7cffb7daa538530e913e9b 100644 (file)
@@ -157,7 +157,7 @@ void BasicGUI_CircleDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName( tr( "GEOM_CIRCLE" ).toStdString().c_str() );
+  initName( tr( "GEOM_CIRCLE" ).toLatin1().constData() );
 
   ::qobject_cast<QWidget*>( Group3Pnts->gridLayout->parent() )->hide();
   ConstructorsClicked( 0 );
index 5ca054c9e638b1766a8f88ad53ea2022bfb0123f..9c4cc8367825ddb4de8a640321ca939f09b868fd 100644 (file)
@@ -125,7 +125,7 @@ void BasicGUI_CurveDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName( tr( "GEOM_CURVE" ).toStdString().c_str() );
+  initName( tr( "GEOM_CURVE" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index 7e85536e06d15f3314b96a694bd8b1a07c5efd30..e97abf4292ec96b721c980aa71d840dfa8eda8ec 100644 (file)
@@ -144,7 +144,7 @@ void BasicGUI_EllipseDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName( tr( "GEOM_ELLIPSE" ).toStdString().c_str() );
+  initName( tr( "GEOM_ELLIPSE" ).toLatin1().constData() );
 }
 
 
index 099bfbeedec98b0687d447db8c4ab20be8bc6145..ed38628ce798de0c00a3890008d805c0a103ae0f 100644 (file)
@@ -127,7 +127,7 @@ void BasicGUI_LineDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
   
-  initName( tr("GEOM_LINE").toStdString().c_str() );
+  initName( tr("GEOM_LINE").toLatin1().constData() );
 }
 
 
index d77a68a95b425d34168f72d2ce98df19d9a7f142..ab50fb33b56773224f915c42069018eeedf60999 100644 (file)
@@ -200,7 +200,7 @@ void BasicGUI_MarkerDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
           SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
 
-  initName( tr( "LCS_NAME" ).toStdString().c_str() );
+  initName( tr( "LCS_NAME" ).toLatin1().constData() );
 
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
   double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
index 6db4f8a9a3d94375a7456461eea83241c49da475..f2b53a75e6b4928cc2d61158815b14867d96fc95 100644 (file)
@@ -182,7 +182,7 @@ void BasicGUI_PlaneDlg::Init()
 
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_PLANE" ).toStdString().c_str() );
+  initName( tr( "GEOM_PLANE" ).toLatin1().constData() );
 
   Group3Pnts->hide();
   GroupFace->hide();
index abc0b4193f220cbbf38d8a5b54b0039c1d3c8ca3..41ff3e7f8d7602f9e428ae4396d898250d4da9b5 100644 (file)
@@ -220,7 +220,7 @@ void BasicGUI_PointDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));  
   
-  initName( tr("GEOM_VERTEX").toStdString().c_str() );
+  initName( tr("GEOM_VERTEX").toLatin1().constData() );
   
   ConstructorsClicked( 0 );
 }
index c8acfeb52393c04a4ede01031700fdbf10441786..b47d71d82ea557acd7565e4705c7270ca49f523d 100644 (file)
@@ -163,7 +163,7 @@ void BasicGUI_VectorDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr("GEOM_VECTOR").toStdString().c_str() );
+  initName( tr("GEOM_VECTOR").toLatin1().constData() );
 
   GroupDimensions->hide();
   ConstructorsClicked( 0 );
index 35eba3f63964ac6c51288b762705973fe815ed3e..b0e866449fec443f3a648f7b5f3b160843d33e14 100644 (file)
@@ -183,7 +183,7 @@ void BasicGUI_WorkingPlaneDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_WPLANE" ).toStdString().c_str() );
+  initName( tr( "GEOM_WPLANE" ).toLatin1().constData() );
   ConstructorsClicked(0);
 }
 
index df4cdde3606794a03da4827acdbde69b94caea38..d8a7743d84f00d0a5ebc2c3ca271ca129db36965 100644 (file)
@@ -152,7 +152,7 @@ void BooleanGUI_Dialog::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName( GroupConstructors->title().toStdString().c_str() );
+  initName( GroupConstructors->title().toLatin1().constData() );
 
   globalSelection( GEOM_ALLSHAPES );
 }
index d0b3ebb8132160d53c39db2f8233d773cccc5c73..1a682e5face5567ef30d67b745c755ce65915ffb 100644 (file)
@@ -112,7 +112,7 @@ void BuildGUI_CompoundDlg::Init()
 
   globalSelection( GEOM_ALLSHAPES );
 
-  initName( tr( "GEOM_COMPOUND" ).toStdString().c_str() );
+  initName( tr( "GEOM_COMPOUND" ).toLatin1().constData() );
 }
 
 
index 1a124b8c6ac03569178df6c76e6173689d7e2738..255e447d5b9715e54cea1cf8126148864872d3ea 100644 (file)
@@ -124,7 +124,7 @@ void BuildGUI_EdgeDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName( tr( "GEOM_EDGE").toStdString().c_str() );
+  initName( tr( "GEOM_EDGE").toLatin1().constData() );
 }
 
 
index 1bd391fa4d760d0d2ae8cf169d66bfcd0e82f976..e6108a1b4387195a7ac05e08ba72069124f5baca 100644 (file)
@@ -119,7 +119,7 @@ void BuildGUI_FaceDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName(tr("GEOM_FACE").toStdString().c_str());
+  initName(tr("GEOM_FACE").toLatin1().constData());
 }
 
 
index c6b5ded1605e875b38b37dfda2f3f0ec330b4689..946233c2a6e24d9255fd43b9553bee11e450fa10 100644 (file)
@@ -119,7 +119,7 @@ void BuildGUI_ShellDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName(tr("GEOM_SHELL").toStdString().c_str());
+  initName(tr("GEOM_SHELL").toLatin1().constData());
 }
 
 
index a254586f4f5e8117347aa5e2674ce69adbccb629..a0993681620f3f96135c318bd83a516744bed900 100644 (file)
@@ -117,7 +117,7 @@ void BuildGUI_SolidDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName(tr("GEOM_SOLID").toStdString().c_str());
+  initName(tr("GEOM_SOLID").toLatin1().constData());
 }
 
 
index 232ced8d4a010ffe11d98f4f822f954d3c0b649d..c1844bf21e1e830f32d884943c81be90b91f808b 100644 (file)
@@ -117,7 +117,7 @@ void BuildGUI_WireDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
   
-  initName(tr("GEOM_WIRE").toStdString().c_str());
+  initName(tr("GEOM_WIRE").toLatin1().constData());
 }
 
 
index 757f212d7772ccac19ccaf3a056cfc6171504ef0..af97da38242f0ecdc7a50ffd6338e0ebd398c588 100644 (file)
@@ -209,55 +209,55 @@ bool GEOMBase::GetShapeTypeString(const TopoDS_Shape& aShape, Standard_CString&
     {
     case TopAbs_COMPOUND:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_COMPOUND").toStdString().c_str());
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_COMPOUND").toLatin1().constData());
        return true;
       }
     case  TopAbs_COMPSOLID:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_COMPOUNDSOLID").toStdString().c_str()) ;
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_COMPOUNDSOLID").toLatin1().constData()) ;
        return true ;
       }
     case TopAbs_SOLID:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_SOLID").toStdString().c_str()) ;
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_SOLID").toLatin1().constData()) ;
        return true ;
       }
     case TopAbs_SHELL:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_SHELL").toStdString().c_str()) ;
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_SHELL").toLatin1().constData()) ;
        return true ;
       }
     case TopAbs_FACE:
       {
        BRepAdaptor_Surface surf(TopoDS::Face(aShape));
        if(surf.GetType() == GeomAbs_Plane) {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_PLANE").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_PLANE").toLatin1().constData());
          return true;
        }
        else if(surf.GetType() == GeomAbs_Cylinder) {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFCYLINDER").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFCYLINDER").toLatin1().constData());
          return true;
        }
        else if(surf.GetType() == GeomAbs_Sphere) {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFSPHERE").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFSPHERE").toLatin1().constData());
          return true ;
        }
        else if(surf.GetType() == GeomAbs_Torus) {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFTORUS").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFTORUS").toLatin1().constData());
          return true ;
        }
        else if(surf.GetType() == GeomAbs_Cone) {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFCONE").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_SURFCONE").toLatin1().constData());
          return true ;
        }
        else {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_FACE").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_FACE").toLatin1().constData());
          return true;
        }
       }
     case TopAbs_WIRE:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_WIRE").toStdString().c_str());
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_WIRE").toLatin1().constData());
        return true;
       }
     case TopAbs_EDGE:
@@ -265,31 +265,31 @@ bool GEOMBase::GetShapeTypeString(const TopoDS_Shape& aShape, Standard_CString&
        BRepAdaptor_Curve curv(TopoDS::Edge(aShape));
        if(curv.GetType() == GeomAbs_Line) {
          if((Abs(curv.FirstParameter()) >= 1E6) || (Abs(curv.LastParameter()) >= 1E6))
-           aTypeString = CORBA::string_dup(QObject::tr("GEOM_LINE").toStdString().c_str());
+           aTypeString = CORBA::string_dup(QObject::tr("GEOM_LINE").toLatin1().constData());
          else
-           aTypeString = CORBA::string_dup(QObject::tr("GEOM_EDGE").toStdString().c_str());
+           aTypeString = CORBA::string_dup(QObject::tr("GEOM_EDGE").toLatin1().constData());
          return true;
        }
        else if(curv.GetType() == GeomAbs_Circle) {
          if(curv.IsClosed())
-           aTypeString = CORBA::string_dup(QObject::tr("GEOM_CIRCLE").toStdString().c_str());
+           aTypeString = CORBA::string_dup(QObject::tr("GEOM_CIRCLE").toLatin1().constData());
          else
-           aTypeString = CORBA::string_dup(QObject::tr("GEOM_ARC").toStdString().c_str());
+           aTypeString = CORBA::string_dup(QObject::tr("GEOM_ARC").toLatin1().constData());
        return true;
       }
        else {
-         aTypeString = CORBA::string_dup(QObject::tr("GEOM_EDGE").toStdString().c_str());
+         aTypeString = CORBA::string_dup(QObject::tr("GEOM_EDGE").toLatin1().constData());
          return true;
        }
       }
     case TopAbs_VERTEX:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_VERTEX").toStdString().c_str());
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_VERTEX").toLatin1().constData());
        return true;
       }
     case TopAbs_SHAPE:
       {
-       aTypeString = CORBA::string_dup(QObject::tr("GEOM_SHAPE").toStdString().c_str());
+       aTypeString = CORBA::string_dup(QObject::tr("GEOM_SHAPE").toLatin1().constData());
        return true;
       }
     }
@@ -806,7 +806,7 @@ bool GEOMBase::SelectionByNameInDialogs(QWidget* aWidget, const QString& objectU
 
   _PTR(SObject) theObj ( listSO[0] );
   /* Create a SALOME_InteractiveObject with a SALOME::SObject */
-  char* aCopyobjectUserName = CORBA::string_dup(objectUserName.toStdString().c_str());
+  char* aCopyobjectUserName = CORBA::string_dup(objectUserName.toLatin1().constData());
   Handle(SALOME_InteractiveObject) SI = new SALOME_InteractiveObject(theObj->GetID().c_str(), "GEOM", aCopyobjectUserName);
   delete(aCopyobjectUserName);
 
@@ -881,7 +881,7 @@ void GEOMBase::ShowErrorMessage(const char* theErrorCode, const char* theComment
 
   QString aText = "";
   if (!anErrorCode.isEmpty())
-    aText.append("\n" + QObject::tr(anErrorCode.toStdString().c_str()));
+    aText.append("\n" + QObject::tr(anErrorCode.toLatin1().constData()));
   if (!aComment.isEmpty())
     aText.append("\n" + QString(theComment));
 
index 89117dcebac8c09dd969890dddf1e36417dff976..e800880f6a6d9333597b44df88ae7872f79b29ec 100755 (executable)
@@ -169,7 +169,7 @@ void GEOMBase_Helper::erase( GEOM::GEOM_Object_ptr object, const bool updateView
   if ( !object->_is_nil() ) {
     string entry = getEntry( object );
     getDisplayer()->Erase( new SALOME_InteractiveObject(
-      entry.c_str(), "GEOM", strdup( GEOMBase::GetName( object ).toStdString().c_str() ) ), true, updateView );
+      entry.c_str(), "GEOM", strdup( GEOMBase::GetName( object ).toLatin1().constData() ) ), true, updateView );
   }
 }
 
@@ -208,7 +208,7 @@ void GEOMBase_Helper::redisplay( GEOM::GEOM_Object_ptr object,
 
     string entry = getEntry( object );
     getDisplayer()->Redisplay(new SALOME_InteractiveObject
-                              (entry.c_str(), "GEOM", strdup(GEOMBase::GetName(object).toStdString().c_str())), false);
+                              (entry.c_str(), "GEOM", strdup(GEOMBase::GetName(object).toLatin1().constData())), false);
   }
 
   if ( withChildren ) {
@@ -226,7 +226,7 @@ void GEOMBase_Helper::redisplay( GEOM::GEOM_Object_ptr object,
            if ( !aChild->_is_nil() ) {
              string entry = getEntry( aChild );
              getDisplayer()->Redisplay( new SALOME_InteractiveObject(
-                entry.c_str(), "GEOM", strdup( GEOMBase::GetName( aChild ).toStdString().c_str() ) ), false );
+                entry.c_str(), "GEOM", strdup( GEOMBase::GetName( aChild ).toLatin1().constData() ) ), false );
            }
          }
        }
@@ -448,7 +448,7 @@ void GEOMBase_Helper::localSelection( const ObjectList& theObjs, const int theMo
     string aEntry = getEntry( anObj );
     if ( aEntry != "" )
       aListOfIO.Append( new SALOME_InteractiveObject(
-        aEntry.c_str(), "GEOM", strdup( GEOMBase::GetName( anObj ).toStdString().c_str() ) ) );
+        aEntry.c_str(), "GEOM", strdup( GEOMBase::GetName( anObj ).toLatin1().constData() ) ) );
   }
 
   getDisplayer()->LocalSelection( aListOfIO, theMode );
index 87ff614d4565069bd7f650df6f1997d8bde6449e..16633bcbde0fc6df311a96a8952a77db4b02c6d8 100644 (file)
@@ -227,7 +227,7 @@ void GEOMBase_Skeleton::initName( const char* thePrefix )
 //=================================================================================
 const char* GEOMBase_Skeleton::getNewObjectName() const
 {
-  return ResultName->text().toStdString().c_str();
+  return ResultName->text().toLatin1().constData();
 }
 
 //=================================================================================
index 1bd2e4ad4be6fb40ebf56bdfd9f3a36df57644d5..eec1ebbffaa34ac910871617fa1a6c8a54a90a9b 100644 (file)
@@ -45,6 +45,6 @@ GEOM_PreviewFilter::~GEOM_PreviewFilter()
 bool GEOM_PreviewFilter::isOk( const SUIT_DataOwner* sOwner ) const
 {
   const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*> ( sOwner );
-  return ( owner && strstr( owner->entry().toStdString().c_str(), "TEMP" ) );
+  return ( owner && strstr( owner->entry().toLatin1().constData(), "TEMP" ) );
 }
 
index bede4986400e71048a3151fedd05a8e094e77d74..14158e39043034f551d5bdcffa4457bf00ac0987 100644 (file)
@@ -112,7 +112,7 @@ QString GEOMGUI_Selection::displayMode( const int index ) const
   SALOME_View* view = GEOM_Displayer::GetActiveView();
   QString viewType = activeViewType();
   if ( view /*fix for 9320==>*/&& ( viewType == OCCViewer_Viewer::Type() || viewType == SVTK_Viewer::Type() ) ) {
-    SALOME_Prs* prs = view->CreatePrs( entry( index ).toStdString().c_str() );
+    SALOME_Prs* prs = view->CreatePrs( entry( index ).toLatin1().constData() );
     if ( prs ) {
       if ( viewType == OCCViewer_Viewer::Type() ) { // assuming OCC
        SOCC_Prs* occPrs = (SOCC_Prs*) prs;
index 6c3db60716a8e5f36fcad3affe6187952cb86208..3f462d90d08a8fcecfb42519b9a97aff5dc9c094 100644 (file)
@@ -710,15 +710,15 @@ void GeometryGUI::createGeomAction( const int id, const QString& po_id, const QS
   SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
   QPixmap pix;
   if ( icon_id.length() )
-    pix = resMgr->loadPixmap( "GEOM", tr( icon_id.toStdString().c_str() ) );
+    pix = resMgr->loadPixmap( "GEOM", tr( icon_id.toLatin1().constData() ) );
   else
-    pix = resMgr->loadPixmap( "GEOM", tr( (QString( "ICO_" )+po_id).toStdString().c_str() ), false );
+    pix = resMgr->loadPixmap( "GEOM", tr( (QString( "ICO_" )+po_id).toLatin1().constData() ), false );
   if ( !pix.isNull() )
     icon = QIcon( pix );
 
-  QString tooltip    = tr( (QString( "TOP_" )+po_id).toStdString().c_str() ),
-          menu       = tr( (QString( "MEN_" )+po_id).toStdString().c_str() ),
-          status_bar = tr( (QString( "STB_" )+po_id).toStdString().c_str() );
+  QString tooltip    = tr( (QString( "TOP_" )+po_id).toLatin1().constData() ),
+          menu       = tr( (QString( "MEN_" )+po_id).toLatin1().constData() ),
+          status_bar = tr( (QString( "STB_" )+po_id).toLatin1().constData() );
 
   createAction( id, tooltip, icon, menu, status_bar, key, parent, toggle, this, SLOT( OnGUIEvent() )  );
 }
index 466c3468253018585e014f1244c7fd9d82593c97..a72755cb126664092834ea318c519a61915c871d 100644 (file)
@@ -140,9 +140,9 @@ void GEOMToolsGUI::OnSettingsStep()
   double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100. );
 
   Standard_Boolean res = false;
-  double dd = GEOMBase::Parameter( res, QString("%1").arg(step).toStdString().c_str(), 
-                                  tr("GEOM_MEN_STEP_LABEL").toStdString().c_str(), 
-                                  tr("GEOM_STEP_TITLE").toStdString().c_str(), 0.001, 10000.0, 3);
+  double dd = GEOMBase::Parameter( res, QString("%1").arg(step).toLatin1().constData(), 
+                                  tr("GEOM_MEN_STEP_LABEL").toLatin1().constData(), 
+                                  tr("GEOM_STEP_TITLE").toLatin1().constData(), 0.001, 10000.0, 3);
   if(res) {
     resMgr->setValue( "Geometry", "SettingsGeomStep", dd );
 
index 2affba68b9b1846a2d59fa8a6928342305b616fb..43ff12233707be9db5c8b0832e9d8c65905f39d6 100644 (file)
@@ -150,7 +150,7 @@ void GenerationGUI_FillingDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName(tr("GEOM_FILLING").toStdString().c_str());
+  initName(tr("GEOM_FILLING").toLatin1().constData());
 }
 
 
index 60d76791b2339e9e300eda3186b1a12bf678b814..a02b4f54b0e7fb67afa6f8cda7caa9bf4936fa3c 100644 (file)
@@ -121,7 +121,7 @@ void GenerationGUI_PipeDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName(tr("GEOM_PIPE").toStdString().c_str());
+  initName(tr("GEOM_PIPE").toLatin1().constData());
 
   globalSelection( GEOM_ALLSHAPES );
 }
index 579fdcdad7043c279cf821490f1bda65e480589b..58305e14aa7eb784e0da632f0524e46879640920 100644 (file)
@@ -166,7 +166,7 @@ void GenerationGUI_PrismDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName(tr("GEOM_EXTRUSION").toStdString().c_str());
+  initName(tr("GEOM_EXTRUSION").toLatin1().constData());
 
   globalSelection( GEOM_ALLSHAPES );
   ConstructorsClicked(0);
index 13fa725de09b47de67d8e3c061edadfb51b0c096..cc59892fb4c0d951d09c4bab0f9dfd9e51a2cf8a 100644 (file)
@@ -133,7 +133,7 @@ void GenerationGUI_RevolDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName(tr("GEOM_REVOLUTION").toStdString().c_str());
+  initName(tr("GEOM_REVOLUTION").toLatin1().constData());
 
   globalSelection( GEOM_ALLSHAPES );
 }
index 5923b9df30e802c957439f4da1b5ad08f73717f9..6d0bbd89660161df1b1ba10481f8a8649f6f4670 100644 (file)
@@ -154,7 +154,7 @@ void PrimitiveGUI_BoxDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_BOX" ).toStdString().c_str() );
+  initName( tr( "GEOM_BOX" ).toLatin1().constData() );
   ConstructorsClicked(0);
 }
 
index 858e4e102717fd4b3a8165946f0ddad841326c60..9ed6a2e627f9a5dc75cf6a7777f1d75954827003 100644 (file)
@@ -164,7 +164,7 @@ void PrimitiveGUI_ConeDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
   
-  initName( tr( "GEOM_CONE" ).toStdString().c_str() );
+  initName( tr( "GEOM_CONE" ).toLatin1().constData() );
   ConstructorsClicked(0);
 }
 
index da8009761e596ddebe0899e8aa36367dbc107d32..ec511ef40d7b7972c33dc5156371378aed65ce5d 100644 (file)
@@ -157,7 +157,7 @@ void PrimitiveGUI_CylinderDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
   
-  initName( tr( "GEOM_CYLINDER" ).toStdString().c_str() );
+  initName( tr( "GEOM_CYLINDER" ).toLatin1().constData() );
   ConstructorsClicked(0);
 }
 
index b6f246e62d52dc2dc1a4332b958840636e277e64..8ba5158f1c3979a757d9e2075ec5ef24c436a146 100644 (file)
@@ -136,7 +136,7 @@ void PrimitiveGUI_SphereDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName(tr("GEOM_SPHERE").toStdString().c_str());
+  initName(tr("GEOM_SPHERE").toLatin1().constData());
   ConstructorsClicked(0);
 }
 
index a63694a39fad9f542d15aabb5829d2cceb3b9451..df973503ac654f75d52356161df6ec6a9f49ae82 100644 (file)
@@ -153,7 +153,7 @@ void PrimitiveGUI_TorusDlg::Init()
   connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
   
-  initName( tr( "GEOM_TORUS" ).toStdString().c_str() );
+  initName( tr( "GEOM_TORUS" ).toLatin1().constData() );
   ConstructorsClicked(0);
 }
 
index eb69c9037a216077a410643b9c9ee1d3a2e6476b..e3d4ffc2c28baadc4c9b984cadc0b2b331375ea0 100644 (file)
@@ -29,7 +29,6 @@
 #include "TransformationGUI.h"
 #include "GeometryGUI.h"
 
-#include "SUIT_Session.h"
 #include "SUIT_Desktop.h"
 
 #include "SalomeApp_Application.h"
diff --git a/src/TransformationGUI/TransformationGUI.pro b/src/TransformationGUI/TransformationGUI.pro
new file mode 100644 (file)
index 0000000..9bff8e9
--- /dev/null
@@ -0,0 +1,47 @@
+TEMPLATE = lib
+TARGET = TransformationGUI
+DESTDIR = ../../lib
+MOC_DIR = ../../moc
+OBJECTS_DIR = ../../obj/$$TARGET
+
+QT_INCLUDES = $$(QTDIR)/include $$(QTDIR)/include/QtCore $$(QTDIR)/include/QtGui $$(QTDIR)/include/QtOpenGL $$(QTDIR)/include/QtXml
+
+VTK_INCLUDES = $$(VTKHOME)/include/vtk
+
+CASROOT = $$(CASROOT)
+CAS_CPPFLAGS = $${CASROOT}/inc
+
+PYTHON_INCLUDES = $$(PYTHONHOME)/include/python2.4
+
+BOOST_CPPFLAGS = $$(BOOSTDIR)/include
+
+KERNEL_CXXFLAGS = $$(KERNEL_ROOT_DIR)/include/salome
+
+GUI_CXXFLAGS = $$(GUI_ROOT_DIR)/include/salome
+
+CORBA_INCLUDES = $$(OMNIORBDIR)/include $$(OMNIORBDIR)/include/omniORB4 $$(OMNIORBDIR)/include/COS
+
+INCLUDEPATH += $${QT_INCLUDES} $${VTK_INCLUDES} $${CAS_CPPFLAGS} $${PYTHON_INCLUDES} $${BOOST_CPPFLAGS} $${KERNEL_CXXFLAGS} $${GUI_CXXFLAGS} $${CORBA_INCLUDES} ../GEOMGUI ../DlgRef ../GEOMBase ../OBJECT ../GEOMClient ../GEOMImpl ../GEOMFiltersSelection $$(GEOM_ROOT_DIR)/idl $$(GEOM_ROOT_DIR)/salome_adm/unix
+
+LIBS += -L$$(GEOM_ROOT_DIR)/lib -lGEOMFiltersSelection -lGEOMBase
+
+CONFIG -= debug release debug_and_release
+CONFIG += qt thread debug dll shared
+
+win32:DEFINES += WIN32 
+DEFINES += OCC_VERSION_MAJOR=6 OCC_VERSION_MINOR=1 OCC_VERSION_MAINTENANCE=1 LIN LINTEL CSFDB No_exception HAVE_CONFIG_H HAVE_LIMITS_H HAVE_WOK_CONFIG_H OCC_CONVERT_SIGNALS OMNIORB_VERSION=4 __x86__ __linux__ COMP_CORBA_DOUBLE COMP_CORBA_LONG
+
+SOURCES  = TransformationGUI.cxx
+SOURCES += TransformationGUI_MultiTranslationDlg.cxx
+SOURCES += TransformationGUI_MultiRotationDlg.cxx
+SOURCES += TransformationGUI_TranslationDlg.cxx
+SOURCES += TransformationGUI_RotationDlg.cxx
+SOURCES += TransformationGUI_MirrorDlg.cxx
+SOURCES += TransformationGUI_ScaleDlg.cxx
+SOURCES += TransformationGUI_OffsetDlg.cxx
+SOURCES += TransformationGUI_PositionDlg.cxx
+
+includes.files = $$HEADERS
+includes.path = ../../include
+
+INSTALLS += includes
index 5e6868836eaa8d67a391a8dc59ca36e7c164633f..bafcadbfaaf0efdf8f975f68c13075e452ec9206 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_MirrorDlg.h"
+#include "DlgRef_2Sel1Spin2Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qcheckbox.h>
-#include <qlabel.h>
-
 #include "GEOMImpl_Types.hxx"
 
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -50,22 +50,21 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_MirrorDlg::TransformationGUI_MirrorDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
-                                                         const char* name, bool modal, WFlags fl)
-  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                     WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+                                                         const char* name, bool modal, Qt::WindowFlags fl)
+  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_POINT")));
   QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_AXE")));
   QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_MIRROR_PLANE")));
   QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_MIRROR_TITLE"));
+  setWindowTitle(tr("GEOM_MIRROR_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_MIRROR"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->setPixmap(image1);
-  RadioButton3->setPixmap(image2);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setIcon(image1);
+  RadioButton3->setIcon(image2);
  
   GroupPoints = new DlgRef_2Sel1Spin2Check(this, "GroupPoints");
   GroupPoints->SpinBox_DX->hide();
@@ -75,10 +74,10 @@ TransformationGUI_MirrorDlg::TransformationGUI_MirrorDlg(GeometryGUI* theGeometr
   GroupPoints->TextLabel1->setText(tr("GEOM_OBJECTS"));
   GroupPoints->TextLabel2->setText(tr("GEOM_POINT_MIRROR"));
   GroupPoints->TextLabel2->setFixedWidth(74);
-  GroupPoints->PushButton1->setPixmap(image3);
-  GroupPoints->PushButton2->setPixmap(image3);
+  GroupPoints->PushButton1->setIcon(image3);
+  GroupPoints->PushButton2->setIcon(image3);
   GroupPoints->CheckButton1->setText(tr("GEOM_CREATE_COPY"));
-  Layout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
 
   setHelpFileName("mirror_image.htm");  
@@ -130,7 +129,7 @@ void TransformationGUI_MirrorDlg::Init()
   connect(myGeomGUI->getApp()->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_MIRROR" ) );
+  initName( tr( "GEOM_MIRROR" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index 44d8f5ddab4cb91a8a33f1ffab6ad1ee7934e43d..8764cab59f3df82e0a8a966271939e1ed3d551a0 100644 (file)
 #define DIALOGBOX_MIRROR_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_2Sel1Spin2Check.h"
 
-#include "TransformationGUI.h"
-  
+class DlgRef_2Sel1Spin2Check;  
 
 //=================================================================================
 // class    : TransformationGUI_MirrorDlg
@@ -44,7 +42,7 @@ class TransformationGUI_MirrorDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_MirrorDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                               const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                               const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_MirrorDlg();
 
 protected:
index 88535e435aa0f89e87c5cb67c10585f26bfc8bcc..11c93f4e67604cfcc38c0950395b5d0b81431ec0 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_MultiRotationDlg.h"
+#include "DlgRef_2Sel4Spin1Check.h"
+#include "DlgRef_2Sel1Spin.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qcheckbox.h>
-#include <qlabel.h>
-
 #include "GEOMImpl_Types.hxx"
 
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -50,30 +51,30 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_MultiRotationDlg::TransformationGUI_MultiRotationDlg
-  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, WFlags fl)
-  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                     WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, Qt::WindowFlags fl)
+  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   SUIT_ResourceMgr* aResMgr = myGeomGUI->getApp()->resourceMgr();
   QPixmap image0(aResMgr->loadPixmap("GEOM",tr("ICON_DLG_MULTIROTATION_SIMPLE")));
   QPixmap image1(aResMgr->loadPixmap("GEOM",tr("ICON_DLG_MULTIROTATION_DOUBLE")));
   QPixmap image2(aResMgr->loadPixmap("GEOM",tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_MULTIROTATION_TITLE"));
+  setWindowTitle(tr("GEOM_MULTIROTATION_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_MULTIROTATION"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->setPixmap(image1);
-  RadioButton3->close(TRUE);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setIcon(image1);
+  RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton3->close();
 
   GroupPoints = new DlgRef_2Sel1Spin(this, "GroupPoints");
   GroupPoints->GroupBox1->setTitle(tr("GEOM_MULTIROTATION_SIMPLE"));
   GroupPoints->TextLabel1->setText(tr("GEOM_MAIN_OBJECT"));
   GroupPoints->TextLabel2->setText(tr("GEOM_VECTOR"));
   GroupPoints->TextLabel3->setText(tr("GEOM_NB_TIMES"));
-  GroupPoints->PushButton1->setPixmap(image2);
-  GroupPoints->PushButton2->setPixmap(image2);
+  GroupPoints->PushButton1->setIcon(image2);
+  GroupPoints->PushButton2->setIcon(image2);
   GroupPoints->LineEdit1->setReadOnly(true);
   GroupPoints->LineEdit2->setReadOnly(true);
 
@@ -86,13 +87,13 @@ TransformationGUI_MultiRotationDlg::TransformationGUI_MultiRotationDlg
   GroupDimensions->TextLabel5->setText(tr("GEOM_STEP"));
   GroupDimensions->TextLabel6->setText(tr("GEOM_NB_TIMES"));
   GroupDimensions->CheckButton1->setText(tr("GEOM_REVERSE"));
-  GroupDimensions->PushButton1->setPixmap(image2);
-  GroupDimensions->PushButton2->setPixmap(image2);
+  GroupDimensions->PushButton1->setIcon(image2);
+  GroupDimensions->PushButton2->setIcon(image2);
   GroupDimensions->LineEdit1->setReadOnly(true);
   GroupDimensions->LineEdit2->setReadOnly(true);
 
-  Layout1->addWidget(GroupPoints, 2, 0);
-  Layout1->addWidget(GroupDimensions, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
   setHelpFileName("multi_rotation.htm");
@@ -168,7 +169,7 @@ void TransformationGUI_MultiRotationDlg::Init()
   connect(myGeomGUI->getApp()->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_MULTIROTATION" ) );
+  initName( tr( "GEOM_MULTIROTATION" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index d82780fd211c6ef39ddcacf8dd72effdae73cb8c..9a61d3fd8d9bc7d69bee71ccfa0779ad45dbcae8 100644 (file)
@@ -29,9 +29,9 @@
 #define DIALOGBOX_MULTIROTATION_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_2Sel4Spin1Check.h"
-#include "DlgRef_2Sel1Spin.h"
 
+class DlgRef_2Sel4Spin1Check;
+class DlgRef_2Sel1Spin;
 
 //=================================================================================
 // class    : TransformationGUI_MultiRotationDlg
@@ -43,7 +43,7 @@ class TransformationGUI_MultiRotationDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_MultiRotationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                                      const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                                      const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_MultiRotationDlg();
 
 protected:
index 75f3e4d3500d2cc942e389147cb55112ae12bba1..74d5b742e4084ccbababd47f93f45ffc6b6b1415 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_MultiTranslationDlg.h"
+#include "DlgRef_2Sel2Spin1Check.h"
+#include "DlgRef_3Sel4Spin2Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qlabel.h>
-
 #include "GEOMImpl_Types.hxx"
 
-#include <qcheckbox.h>
-
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -51,22 +51,22 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg
-  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, WFlags fl)
-  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                     WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, Qt::WindowFlags fl)
+  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   SUIT_ResourceMgr* aResMgr = myGeomGUI->getApp()->resourceMgr();
   QPixmap image0 (aResMgr->loadPixmap("GEOM", tr("ICON_DLG_MULTITRANSLATION_SIMPLE")));
   QPixmap image1 (aResMgr->loadPixmap("GEOM", tr("ICON_DLG_MULTITRANSLATION_DOUBLE")));
   QPixmap image2 (aResMgr->loadPixmap("GEOM", tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_MULTITRANSLATION_TITLE"));
+  setWindowTitle(tr("GEOM_MULTITRANSLATION_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_MULTITRANSLATION"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->setPixmap(image1);
-  RadioButton3->close(TRUE);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setIcon(image1);
+  RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton3->close();
 
   GroupPoints = new DlgRef_2Sel2Spin1Check(this, "GroupPoints");
   GroupPoints->GroupBox1->setTitle(tr("GEOM_MULTITRANSLATION_SIMPLE"));
@@ -75,8 +75,8 @@ TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg
   GroupPoints->TextLabel3->setText(tr("GEOM_STEP_U"));
   GroupPoints->TextLabel4->setText(tr("GEOM_NB_TIMES_U"));
   GroupPoints->CheckButton1->setText(tr("GEOM_REVERSE_U"));
-  GroupPoints->PushButton1->setPixmap(image2);
-  GroupPoints->PushButton2->setPixmap(image2);
+  GroupPoints->PushButton1->setIcon(image2);
+  GroupPoints->PushButton2->setIcon(image2);
   GroupPoints->LineEdit1->setReadOnly(true);
   GroupPoints->LineEdit2->setReadOnly(true);
 
@@ -91,15 +91,15 @@ TransformationGUI_MultiTranslationDlg::TransformationGUI_MultiTranslationDlg
   GroupDimensions->TextLabel7->setText(tr("GEOM_NB_TIMES_V"));
   GroupDimensions->CheckButton1->setText(tr("GEOM_REVERSE_U"));
   GroupDimensions->CheckButton2->setText(tr("GEOM_REVERSE_V"));
-  GroupDimensions->PushButton1->setPixmap(image2);
-  GroupDimensions->PushButton2->setPixmap(image2);
-  GroupDimensions->PushButton3->setPixmap(image2);
+  GroupDimensions->PushButton1->setIcon(image2);
+  GroupDimensions->PushButton2->setIcon(image2);
+  GroupDimensions->PushButton3->setIcon(image2);
   GroupDimensions->LineEdit1->setReadOnly(true);
   GroupDimensions->LineEdit2->setReadOnly(true);
   GroupDimensions->LineEdit3->setReadOnly(true);
 
-  Layout1->addWidget(GroupPoints, 2, 0);
-  Layout1->addWidget(GroupDimensions, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupDimensions, 2, 0);
   /***************************************************************/
 
   setHelpFileName("multi_translation.htm");
@@ -183,7 +183,7 @@ void TransformationGUI_MultiTranslationDlg::Init()
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
   
-  initName( tr( "GEOM_MULTITRANSLATION" ) );
+  initName( tr( "GEOM_MULTITRANSLATION" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index c36073d8b117b4e03a36e1b97e05062665a95e8a..ec274909d8cc73e7fd07b47ceee536fe721ae042 100644 (file)
@@ -29,9 +29,9 @@
 #define DIALOGBOX_MULTITRANSLATION_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_2Sel2Spin1Check.h"
-#include "DlgRef_3Sel4Spin2Check.h"
 
+class DlgRef_2Sel2Spin1Check;
+class DlgRef_3Sel4Spin2Check;
 
 //=================================================================================
 // class    : TransformationGUI_MultiTranslationDlg
@@ -43,7 +43,7 @@ class TransformationGUI_MultiTranslationDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_MultiTranslationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                                         const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                                         const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_MultiTranslationDlg();
 
 protected:
index 6a33e47e837a62d7d2064f5dc8e3ae38f88a5a9c..0d1580a8d8c3821b89b868b703d2c7e658e789f4 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_OffsetDlg.h"
+#include "DlgRef_1Sel1Spin1Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qlabel.h>
-#include <qcheckbox.h>
-
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -48,20 +48,21 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
-                                                         const char* name, bool modal, WFlags fl)
-    :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                       WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+                                                         const char* name, bool modal, Qt::WindowFlags fl)
+    :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_OFFSET")));
   QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_OFFSET_TITLE"));
+  setWindowTitle(tr("GEOM_OFFSET_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_OFFSET"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->close(TRUE);
-  RadioButton3->close(TRUE);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton2->close();
+  RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton3->close();
  
   GroupPoints = new DlgRef_1Sel1Spin1Check(this, "GroupPoints");
   GroupPoints->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
@@ -72,9 +73,9 @@ TransformationGUI_OffsetDlg::TransformationGUI_OffsetDlg(GeometryGUI* theGeometr
   // san -- modification of an exisitng object by offset is not allowed
   GroupPoints->CheckButton1->hide();
 
-  GroupPoints->PushButton1->setPixmap(image1);
+  GroupPoints->PushButton1->setIcon(image1);
   
-  Layout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
   
   /***************************************************************/
 
@@ -109,7 +110,7 @@ void TransformationGUI_OffsetDlg::Init()
    
   /* min, max, step and decimals for spin boxes & initial values */
   GroupPoints->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, 3);
-  GroupPoints->SpinBox_DX->setPrecision(5);
+  GroupPoints->SpinBox_DX->setDecimals(5);
   //@ GroupPoints->SpinBox_DX->setDblPrecision(1e-05);    
   GroupPoints->SpinBox_DX->SetValue(1e-05);
   
@@ -128,7 +129,7 @@ void TransformationGUI_OffsetDlg::Init()
   connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
   connect(GroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CreateCopyModeChanged(bool)));
   
-  initName( tr( "GEOM_OFFSET" ) );
+  initName( tr( "GEOM_OFFSET" ).toLatin1().constData() );
 
   globalSelection( GEOM_ALLSHAPES );
   
index a49cdd87fbdb0e2e409cb88d05ebafabee724452..cdff5df72987bc8a5b4a0fe63a9be07903a3867e 100644 (file)
@@ -29,8 +29,8 @@
 #define DIALOGBOX_OFFSET_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_1Sel1Spin1Check.h"
-  
+
+class DlgRef_1Sel1Spin1Check;  
   
 //=================================================================================
 // class    : TransformationGUI_OffsetDlg
@@ -42,7 +42,7 @@ class TransformationGUI_OffsetDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_OffsetDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                               const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                               const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_OffsetDlg();
 
 protected:
index 07c3dee7c18f7c97a722e8aaaf2d7e6a4abe5dcf..bd6c53df51951ee5efde065f5ccac9813e281243 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_PositionDlg.h"
+#include "DlgRef_3Sel3Spin1Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qlabel.h>
-#include <qcheckbox.h>
-
 #include "TColStd_MapOfInteger.hxx"
 
 #include "GEOMImpl_Types.hxx"
 
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -52,22 +52,22 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_PositionDlg::TransformationGUI_PositionDlg
-  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, WFlags fl)
-  : GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                      WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, Qt::WindowFlags fl)
+  : GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   SUIT_ResourceMgr* aResMgr = myGeomGUI->getApp()->resourceMgr();
   QPixmap image0(aResMgr->loadPixmap("GEOM",tr("ICON_DLG_POSITION")));
   QPixmap image1(aResMgr->loadPixmap("GEOM",tr("ICON_DLG_POSITION2")));
   QPixmap imageselect(aResMgr->loadPixmap("GEOM",tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_POSITION_TITLE"));
+  setWindowTitle(tr("GEOM_POSITION_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_POSITION"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->setPixmap(image1);
-  RadioButton3->close(TRUE);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setIcon(image1);
+  RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton3->close();
  
   Group1 = new DlgRef_3Sel3Spin1Check(this, "Group1");
   Group1->SpinBox1->hide();
@@ -80,12 +80,12 @@ TransformationGUI_PositionDlg::TransformationGUI_PositionDlg
   Group1->TextLabel1->setText(tr("GEOM_OBJECTS"));
   Group1->TextLabel2->setText(tr("GEOM_START_LCS"));
   Group1->TextLabel3->setText(tr("GEOM_END_LCS"));
-  Group1->PushButton1->setPixmap(imageselect);
-  Group1->PushButton2->setPixmap(imageselect);
-  Group1->PushButton3->setPixmap(imageselect);
+  Group1->PushButton1->setIcon(imageselect);
+  Group1->PushButton2->setIcon(imageselect);
+  Group1->PushButton3->setIcon(imageselect);
   Group1->CheckBox1->setText(tr("GEOM_CREATE_COPY"));
 
-  Layout1->addWidget(Group1, 2, 0);
+  gridLayout1->addWidget(Group1, 2, 0);
   
   /***************************************************************/
 
@@ -141,7 +141,7 @@ void TransformationGUI_PositionDlg::Init()
   connect(myGeomGUI->getApp()->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
 
-  initName( tr( "GEOM_POSITION" ) );
+  initName( tr( "GEOM_POSITION" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index 9ecfb2809422b91414a016a4b61cd692464352d6..e6f2a1934b7e6550dd8690167b4f00a0ccd0253c 100644 (file)
 #define DIALOGBOX_POSITION_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_3Sel3Spin1Check.h"
 
-#include "TransformationGUI.h"
-  
+class DlgRef_3Sel3Spin1Check;
 
 //=================================================================================
 // class    : TransformationGUI_PositionDlg
@@ -44,7 +42,7 @@ class TransformationGUI_PositionDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_PositionDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                                 const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                                 const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_PositionDlg();
 
 protected:
index 39f71533bbb9f416445b25d9fd7c161dc64e3029..1dd779b13976a6b4bf53fb9a06ca536025f5ec10 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_RotationDlg.h"
+#include "DlgRef_4Sel1Spin2Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qcheckbox.h>
-#include <qlabel.h>
-
 #include "GEOMImpl_Types.hxx"
 
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -50,22 +50,22 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_RotationDlg::TransformationGUI_RotationDlg
-  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, WFlags fl)
-  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                     WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+  (GeometryGUI* theGeometryGUI, QWidget* parent,  const char* name, bool modal, Qt::WindowFlags fl)
+  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   SUIT_ResourceMgr* aResMgr = myGeomGUI->getApp()->resourceMgr();
   QPixmap image0 (aResMgr->loadPixmap("GEOM",tr("ICON_DLG_ROTATION")));
   QPixmap image1 (aResMgr->loadPixmap("GEOM",tr("ICON_SELECT")));
   QPixmap image2 (aResMgr->loadPixmap("GEOM",tr("ICON_DLG_ROTATION_THREE_POINTS")));
 
-  setCaption(tr("GEOM_ROTATION_TITLE"));
+  setWindowTitle(tr("GEOM_ROTATION_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_ROTATION"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->setPixmap(image2);
-  RadioButton3->close(TRUE);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setIcon(image2);
+  RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton3->close();
 
   GroupPoints = new DlgRef_4Sel1Spin2Check(this, "GroupPoints");
   GroupPoints->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
@@ -79,14 +79,14 @@ TransformationGUI_RotationDlg::TransformationGUI_RotationDlg
   GroupPoints->LineEdit2->setReadOnly(true);
   GroupPoints->LineEdit4->setReadOnly(true);
   GroupPoints->LineEdit5->setReadOnly(true);
-  GroupPoints->PushButton1->setPixmap(image1);
-  GroupPoints->PushButton2->setPixmap(image1);
-  GroupPoints->PushButton4->setPixmap(image1);
-  GroupPoints->PushButton5->setPixmap(image1);
+  GroupPoints->PushButton1->setIcon(image1);
+  GroupPoints->PushButton2->setIcon(image1);
+  GroupPoints->PushButton4->setIcon(image1);
+  GroupPoints->PushButton5->setIcon(image1);
   GroupPoints->CheckButton1->setText(tr("GEOM_CREATE_COPY"));
   GroupPoints->CheckButton2->setText(tr("GEOM_REVERSE"));
 
-  Layout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
   double anAngle = 0;
   double SpecificStep = 5;
@@ -146,7 +146,7 @@ void TransformationGUI_RotationDlg::Init()
   
   myAxis = myCentPoint = myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
   
-  initName( tr( "GEOM_ROTATION" ) );
+  initName( tr( "GEOM_ROTATION" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index 4a18bbc1d44b16c52a7d69c64c9a957ca2e4ae7f..ef22d3d194646d98e5f7691b1c06d3e411fb180b 100644 (file)
@@ -29,7 +29,8 @@
 #define DIALOGBOX_ROTATION_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_4Sel1Spin2Check.h"
+
+class DlgRef_4Sel1Spin2Check;
   
 //=================================================================================
 // class    : TransformationGUI_RotationDlg
@@ -41,7 +42,7 @@ class TransformationGUI_RotationDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_RotationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                                 const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                                 const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_RotationDlg();
 
 protected:
index 40e6cc20aa2f78812369d0103b5210ca8ee17dd4..71218b4be4364a29577a1709c7afbe4ee3514d48 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_ScaleDlg.h"
+#include "DlgRef_2Sel1Spin2Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qlabel.h>
-#include <qcheckbox.h>
-
 #include "GEOMImpl_Types.hxx"
 
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -50,20 +50,21 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_ScaleDlg::TransformationGUI_ScaleDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
-                                                       const char* name, bool modal, WFlags fl)
-  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                     WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+                                                       const char* name, bool modal, Qt::WindowFlags fl)
+  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SCALE")));
   QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_SCALE_TITLE"));
+  setWindowTitle(tr("GEOM_SCALE_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_SCALE"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->close(TRUE);
-  RadioButton3->close(TRUE);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton2->close();
+  RadioButton3->setAttribute( Qt::WA_DeleteOnClose );
+  RadioButton3->close();
 
   GroupPoints = new DlgRef_2Sel1Spin2Check(this, "GroupPoints");
   GroupPoints->CheckButton2->hide();
@@ -73,14 +74,14 @@ TransformationGUI_ScaleDlg::TransformationGUI_ScaleDlg(GeometryGUI* theGeometryG
   GroupPoints->TextLabel3->setText(tr("GEOM_SCALE_FACTOR"));
   GroupPoints->LineEdit1->setReadOnly( true );
   GroupPoints->LineEdit2->setReadOnly( true );
-  GroupPoints->PushButton1->setPixmap(image1);
-  GroupPoints->PushButton2->setPixmap(image1);
+  GroupPoints->PushButton1->setIcon(image1);
+  GroupPoints->PushButton2->setIcon(image1);
   GroupPoints->CheckButton1->setText(tr("GEOM_CREATE_COPY"));
 
   // san -- modification of an exisitng object by offset is not allowed
   GroupPoints->CheckButton1->hide();
 
-  Layout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
   double aFactor = 2.0;
   double SpecificStep = 0.5;
@@ -136,7 +137,7 @@ void TransformationGUI_ScaleDlg::Init()
   
   myPoint = GEOM::GEOM_Object::_nil();
   
-  initName( tr( "GEOM_SCALE" ) );
+  initName( tr( "GEOM_SCALE" ).toLatin1().constData() );
 }
 
 
index 0190f04d5a13b5664e6abe4a4cb8bf7df3145822..6b834fe1cf44eb7c7162eaf49a3a4b9efd41a43b 100644 (file)
@@ -29,8 +29,8 @@
 #define DIALOGBOX_SCALE_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_2Sel1Spin2Check.h"
-  
+
+class DlgRef_2Sel1Spin2Check;  
   
 //=================================================================================
 // class    : TransformationGUI_ScaleDlg
@@ -42,7 +42,7 @@ class TransformationGUI_ScaleDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_ScaleDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                              const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                              const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_ScaleDlg();
 
 protected:
index 5e022bc8817c9a6972986ff9ade5b47cf9c87aa9..b4962ceb610c21104c806740367f5b80b0dd5296 100644 (file)
 //  $Header$
 
 #include "TransformationGUI_TranslationDlg.h"
+#include "DlgRef_3Sel3Spin1Check.h"
+#include "DlgRef_SpinBox.h"
 
-#include "SUIT_Desktop.h"
+#include "GeometryGUI.h"
+#include "GEOMBase.h"
+
+#include "SUIT_ResourceMgr.h"
 #include "SUIT_Session.h"
 #include "SalomeApp_Application.h"
 #include "LightApp_SelectionMgr.h"
 
-#include <qcheckbox.h>
-#include <qlabel.h>
-
 #include "GEOMImpl_Types.hxx"
 
-#include "utilities.h"
-
 using namespace std;
 
 //=================================================================================
@@ -50,9 +50,8 @@ using namespace std;
 //            TRUE to construct a modal dialog.
 //=================================================================================
 TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg
-  (GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
-  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, WStyle_Customize |
-                     WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+  (GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
+  :GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, Qt::WindowTitleHint | Qt::WindowSystemMenuHint)
 {
   SUIT_ResourceMgr* aResMgr = myGeomGUI->getApp()->resourceMgr();
   QPixmap image0 (aResMgr->loadPixmap("GEOM", tr("ICON_DLG_TRANSLATION_DXYZ")));
@@ -60,13 +59,13 @@ TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg
   QPixmap image2 (aResMgr->loadPixmap("GEOM", tr("ICON_DLG_TRANSLATION_VECTOR")));
   QPixmap image3 (aResMgr->loadPixmap("GEOM", tr("ICON_SELECT")));
 
-  setCaption(tr("GEOM_TRANSLATION_TITLE"));
+  setWindowTitle(tr("GEOM_TRANSLATION_TITLE"));
 
   /***************************************************************/
   GroupConstructors->setTitle(tr("GEOM_TRANSLATION"));
-  RadioButton1->setPixmap(image0);
-  RadioButton2->setPixmap(image1);
-  RadioButton3->setPixmap(image2);
+  RadioButton1->setIcon(image0);
+  RadioButton2->setIcon(image1);
+  RadioButton3->setIcon(image2);
 
   RadioButton1->setChecked(true);
 
@@ -77,12 +76,12 @@ TransformationGUI_TranslationDlg::TransformationGUI_TranslationDlg
   GroupPoints->TextLabel4->setText(tr("GEOM_DX"));
   GroupPoints->TextLabel5->setText(tr("GEOM_DY"));
   GroupPoints->TextLabel6->setText(tr("GEOM_DZ"));
-  GroupPoints->PushButton1->setPixmap(image3);
-  GroupPoints->PushButton2->setPixmap(image3);
-  GroupPoints->PushButton3->setPixmap(image3);
+  GroupPoints->PushButton1->setIcon(image3);
+  GroupPoints->PushButton2->setIcon(image3);
+  GroupPoints->PushButton3->setIcon(image3);
   GroupPoints->CheckBox1->setText(tr("GEOM_CREATE_COPY"));
 
-  Layout1->addWidget(GroupPoints, 2, 0);
+  gridLayout1->addWidget(GroupPoints, 2, 0);
   /***************************************************************/
   
   setHelpFileName("translation.htm");
@@ -156,7 +155,7 @@ void TransformationGUI_TranslationDlg::Init()
   connect(myGeomGUI->getApp()->selectionMgr(), 
          SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
 
-  initName( tr( "GEOM_TRANSLATION" ) );
+  initName( tr( "GEOM_TRANSLATION" ).toLatin1().constData() );
   ConstructorsClicked( 0 );
 }
 
index 338c3ab154fc4d631f8430efdbf94789fae79823..53c696f166fe90fba9d6564c8e52096432e14755 100644 (file)
@@ -29,8 +29,8 @@
 #define DIALOGBOX_TRANSLATION_H
 
 #include "GEOMBase_Skeleton.h"
-#include "DlgRef_3Sel3Spin1Check.h"
 
+class DlgRef_3Sel3Spin1Check;
 
 //=================================================================================
 // class    : TransformationGUI_TranslationDlg
@@ -42,7 +42,7 @@ class TransformationGUI_TranslationDlg : public GEOMBase_Skeleton
 
 public:
     TransformationGUI_TranslationDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0,
-                                    const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+                                    const char* name = 0, bool modal = FALSE, Qt::WindowFlags fl = 0);
     ~TransformationGUI_TranslationDlg();
 
 protected:
index cc4dd70d6b60c03086eb2f4457a8a2a4d7ea1426..091b5de180c58b57e2c2887257d4866811332c82 100644 (file)
@@ -32,7 +32,7 @@ SUBDIRS += GenerationGUI
 SUBDIRS += EntityGUI
 SUBDIRS += BuildGUI
 SUBDIRS += BooleanGUI
-#SUBDIRS += TransformationGUI
+SUBDIRS += TransformationGUI
 #SUBDIRS += OperationGUI
 #SUBDIRS += RepairGUI
 #SUBDIRS += MeasureGUI