aPainter.drawPixmap( 0, 0, anArrowPixmap );
aPainter.end();
- QRadioButton* aManualLambertBtn = new QRadioButton( tr( "MANUALLY_LAMBERT93" ), myTransformGroup );
QRadioButton* aManualCartesianBtn = new QRadioButton( tr( "MANUALLY_CARTESIAN" ), myTransformGroup );
+ QRadioButton* aManualLambertBtn = new QRadioButton( tr( "MANUALLY_LAMBERT93" ), myTransformGroup );
QRadioButton* aRefImageBtn = new QRadioButton( tr( "BY_REFERENCE_IMAGE" ), myTransformGroup );
myModeGroup = new QButtonGroup( myTransformGroup );
- myModeGroup->addButton( aManualLambertBtn, ManualLambert );
myModeGroup->addButton( aManualCartesianBtn, ManualCartesian );
+ myModeGroup->addButton( aManualLambertBtn, ManualLambert );
myModeGroup->addButton( aRefImageBtn, RefImage );
myRefImage = new QComboBox( myTransformGroup );
QGridLayout* aModeLayout = new QGridLayout();
aModeLayout->setMargin( 0 );
aModeLayout->setSpacing( 5 );
- aModeLayout->addWidget( aManualLambertBtn, 0, 0 );
- aModeLayout->addWidget( aManualCartesianBtn, 1, 0 );
+ aModeLayout->addWidget( aManualCartesianBtn, 0, 0 );
+ aModeLayout->addWidget( aManualLambertBtn, 1, 0 );
aModeLayout->addWidget( aRefImageBtn, 2, 0 );
aModeLayout->addWidget( myRefImage, 2, 1 );
aModeLayout->setColumnStretch( 1, 1 );
aTransformLayout->setSpacing( 5 );
aTransformLayout->addLayout( aModeLayout, 0, 0, 1, 9 );
+ QLabel* aImageCSLabel = new QLabel( tr( "IMAGE_CS" ), myTransformGroup );
+ QLabel* aGeodesicLabel = new QLabel( "GEODESIC", myTransformGroup );
+ QLabel* aLambertLabel = new QLabel( "LAMBERT93", myTransformGroup );
+ QLabel* aRefImageLabel = new QLabel( "REFERENCE_IMAGE_CS", myTransformGroup );
+
+ aTransformLayout->addWidget( aImageCSLabel, 2, 1 );
+ aTransformLayout->addWidget( aGeodesicLabel, 2, 3, 1, 6 );
+ aTransformLayout->addWidget( aLambertLabel, 2, 3, 1, 6 );
+ aTransformLayout->addWidget( aRefImageLabel, 2, 3, 1, 6 );
+
+ connect( aManualCartesianBtn, SIGNAL( toggled( bool ) ), aGeodesicLabel, SLOT( setVisible ( bool ) ) );
+ connect( aManualCartesianBtn, SIGNAL( toggled( bool ) ), aLambertLabel, SLOT( setHidden ( bool ) ) );
+ connect( aManualCartesianBtn, SIGNAL( toggled( bool ) ), aRefImageLabel, SLOT( setHidden ( bool ) ) );
+ connect( aManualLambertBtn, SIGNAL( toggled( bool ) ), aLambertLabel, SLOT( setVisible ( bool ) ) );
+ connect( aManualLambertBtn, SIGNAL( toggled( bool ) ), aGeodesicLabel, SLOT( setHidden ( bool ) ) );
+ connect( aManualLambertBtn, SIGNAL( toggled( bool ) ), aRefImageLabel, SLOT( setHidden ( bool ) ) );
+ connect( aRefImageBtn, SIGNAL( toggled( bool ) ), aRefImageLabel, SLOT( setVisible ( bool ) ) );
+ connect( aRefImageBtn, SIGNAL( toggled( bool ) ), aGeodesicLabel, SLOT( setHidden ( bool ) ) );
+ connect( aRefImageBtn, SIGNAL( toggled( bool ) ), aLambertLabel, SLOT( setHidden ( bool ) ) );
+
for( int aPointType = HYDROGUI_PrsImage::PointA;
aPointType <= HYDROGUI_PrsImage::PointC; aPointType++ )
{
QtxIntSpinBox* aRefPointX = new QtxIntSpinBox( 0, 0, 1, myTransformGroup ); // max is updated later
QtxIntSpinBox* aRefPointY = new QtxIntSpinBox( 0, 0, 1, myTransformGroup ); // max is updated later
- int aRow = 4 * aPointType + 2;
+ int aRow = 4 * aPointType + 3;
aTransformLayout->addWidget( aPointBtn, aRow, 0, 1, 9 );
aTransformLayout->addWidget( aPointXLabel, aRow + 1, 0 );
HYDROGUI_ImportImageDlg::~HYDROGUI_ImportImageDlg()
{
+ delete myFileNameGroup;
+ delete myImageNameGroup;
+ delete myTransformGroup;
}
void HYDROGUI_ImportImageDlg::setIsEdit( const bool theIsEdit )
myTransformGroup->setEnabled( false );
myRefImage->clear();
- setTransformationMode( ManualCartesian );
+ setTransformationMode( ManualLambert );
myPrsPointDataList.clear();