]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Lambert = Cartesian (x,y), another mode is Geodesic (grad, min, sec).
authorrkv <rkv@opencascade.com>
Wed, 6 Nov 2013 13:47:41 +0000 (13:47 +0000)
committerrkv <rkv@opencascade.com>
Wed, 6 Nov 2013 13:47:41 +0000 (13:47 +0000)
src/HYDROGUI/HYDROGUI_ImportImageDlg.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index 775a43bac416a6d3a002d8cf2e36110be405ebae..26f9b5ad693a1ca3621a1639613f3672d4c49037 100644 (file)
@@ -98,13 +98,13 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
   aPainter.drawPixmap( 0, 0, anArrowPixmap );
   aPainter.end();
 
-  QRadioButton* aManualCartesianBtn = new QRadioButton( tr( "MANUALLY_CARTESIAN" ), myTransformGroup );
-  QRadioButton* aManualLambertBtn = new QRadioButton( tr( "MANUALLY_LAMBERT93" ), myTransformGroup );
+  QRadioButton* aManualLambertBtn = new QRadioButton( tr( "MANUALLY_GEODESIC" ), myTransformGroup );
+  QRadioButton* aManualCartesianBtn = new QRadioButton( tr( "MANUALLY_LAMBERT93" ), myTransformGroup );
   QRadioButton* aRefImageBtn = new QRadioButton( tr( "BY_REFERENCE_IMAGE" ), myTransformGroup );
 
   myModeGroup = new QButtonGroup( myTransformGroup );
-  myModeGroup->addButton( aManualCartesianBtn, HYDROData_Image::ManualCartesian );
   myModeGroup->addButton( aManualLambertBtn, HYDROData_Image::ManualLambert );
+  myModeGroup->addButton( aManualCartesianBtn, HYDROData_Image::ManualCartesian );
   myModeGroup->addButton( aRefImageBtn, HYDROData_Image::ReferenceImage );
 
   myRefImage = new QComboBox( myTransformGroup );
@@ -116,8 +116,8 @@ HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, co
   QGridLayout* aModeLayout = new QGridLayout( myTransformGroup );
   aModeLayout->setMargin( 0 );
   aModeLayout->setSpacing( 5 );
-  aModeLayout->addWidget( aManualCartesianBtn, 0, 0 );
-  aModeLayout->addWidget( aManualLambertBtn,   1, 0 );
+  aModeLayout->addWidget( aManualLambertBtn,   0, 0 );
+  aModeLayout->addWidget( aManualCartesianBtn, 1, 0 );
   aModeLayout->addWidget( aRefImageBtn,        2, 0 );
   aModeLayout->addWidget( myRefImage,          2, 1 );
   aModeLayout->setColumnStretch( 1, 1 );
@@ -660,15 +660,15 @@ void HYDROGUI_ImportImageDlg::onModeActivated( int theMode )
   for( int aPointType = HYDROGUI_PrsImage::PointA;
        aPointType <= HYDROGUI_PrsImage::PointC; aPointType++ )
   {
-    myPointXDegMap[ aPointType ]->setVisible( anIsManualCartesian );
-    myPointYDegMap[ aPointType ]->setVisible( anIsManualCartesian );
-    myPointXMinMap[ aPointType ]->setVisible( anIsManualCartesian );
-    myPointYMinMap[ aPointType ]->setVisible( anIsManualCartesian );
-    myPointXSecMap[ aPointType ]->setVisible( anIsManualCartesian );
-    myPointYSecMap[ aPointType ]->setVisible( anIsManualCartesian );
-
-    myCartPointXMap[ aPointType ]->setVisible( anIsManualLambert );
-    myCartPointYMap[ aPointType ]->setVisible( anIsManualLambert );
+    myPointXDegMap[ aPointType ]->setVisible( anIsManualLambert );
+    myPointYDegMap[ aPointType ]->setVisible( anIsManualLambert );
+    myPointXMinMap[ aPointType ]->setVisible( anIsManualLambert );
+    myPointYMinMap[ aPointType ]->setVisible( anIsManualLambert );
+    myPointXSecMap[ aPointType ]->setVisible( anIsManualLambert );
+    myPointYSecMap[ aPointType ]->setVisible( anIsManualLambert );
+
+    myCartPointXMap[ aPointType ]->setVisible( anIsManualCartesian );
+    myCartPointYMap[ aPointType ]->setVisible( anIsManualCartesian );
 
     myRefPointXMap[ aPointType ]->setVisible( anIsRefImage );
     myRefPointYMap[ aPointType ]->setVisible( anIsRefImage );
index 6389a4b18fb1129ef4d11a46413357f16bb2a546..e931d9b8ee5c4611aace72c97f2d1b074961accf 100644 (file)
@@ -252,7 +252,7 @@ file cannot be correctly imported for a Bathymetry definition.</translation>
       <translation>Import image from file</translation>
     </message>
     <message>
-      <source>MANUALLY_CARTESIAN</source>
+      <source>MANUALLY_GEODESIC</source>
       <translation>Manually input Geodesic coordinates</translation>
     </message>
     <message>