Salome HOME
HYDROGUI_Wizard has been refactored and now uses QStackedWidget instead of QWizard.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ImportImageDlg.cxx
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 );