- QLabel* aPointXDegLabel = new QLabel( QChar( 0x00B0 ), myMappingGroup );
- QLabel* aPointYDegLabel = new QLabel( QChar( 0x00B0 ), myMappingGroup );
- QLabel* aPointXMinLabel = new QLabel( "'", myMappingGroup );
- QLabel* aPointYMinLabel = new QLabel( "'", myMappingGroup );
- QLabel* aPointXSecLabel = new QLabel( "\"", myMappingGroup );
- QLabel* aPointYSecLabel = new QLabel( "\"", myMappingGroup );
-
- QLineEdit* aPointXDeg = new QLineEdit( myMappingGroup );
- QLineEdit* aPointYDeg = new QLineEdit( myMappingGroup );
- QLineEdit* aPointXMin = new QLineEdit( myMappingGroup );
- QLineEdit* aPointYMin = new QLineEdit( myMappingGroup );
- QLineEdit* aPointXSec = new QLineEdit( myMappingGroup );
- QLineEdit* aPointYSec = new QLineEdit( myMappingGroup );
-
- QIntValidator* aXDegValidator = new QIntValidator( -180, 180, this );
- QIntValidator* aYDegValidator = new QIntValidator( -90, 90, this );
- QIntValidator* aMinValidator = new QIntValidator( 0, 59, this );
- QDoubleValidator* aSecValidator = new QDoubleValidator( 0, 59.9999, 4, this );
-
- aPointXDeg->setValidator( aXDegValidator );
- aPointYDeg->setValidator( aYDegValidator );
- aPointXMin->setValidator( aMinValidator );
- aPointYMin->setValidator( aMinValidator );
- aPointXSec->setValidator( aSecValidator );
- aPointYSec->setValidator( aSecValidator );
-
- int aRow = 4 * aPointType;
- aMappingLayout->addWidget( aPointBtn, aRow, 0, 1, 9 );
-
- aMappingLayout->addWidget( aPointXLabel, aRow + 1, 0 );
- aMappingLayout->addWidget( aPointX, aRow + 1, 1 );
- aMappingLayout->addWidget( aPointArrowLabel, aRow + 1, 2, 2, 1 );
- aMappingLayout->addWidget( aPointXDeg, aRow + 1, 3 );
- aMappingLayout->addWidget( aPointXDegLabel, aRow + 1, 4 );
- aMappingLayout->addWidget( aPointXMin, aRow + 1, 5 );
- aMappingLayout->addWidget( aPointXMinLabel, aRow + 1, 6 );
- aMappingLayout->addWidget( aPointXSec, aRow + 1, 7 );
- aMappingLayout->addWidget( aPointXSecLabel, aRow + 1, 8 );
-
- aMappingLayout->addWidget( aPointYLabel, aRow + 2, 0 );
- aMappingLayout->addWidget( aPointY, aRow + 2, 1 );
- aMappingLayout->addWidget( aPointYDeg, aRow + 2, 3 );
- aMappingLayout->addWidget( aPointYDegLabel, aRow + 2, 4 );
- aMappingLayout->addWidget( aPointYMin, aRow + 2, 5 );
- aMappingLayout->addWidget( aPointYMinLabel, aRow + 2, 6 );
- aMappingLayout->addWidget( aPointYSec, aRow + 2, 7 );
- aMappingLayout->addWidget( aPointYSecLabel, aRow + 2, 8 );
+ QLabel* aPointXDegLabel = new QLabel( QChar( 0x00B0 ), myTransformGroup );
+ QLabel* aPointYDegLabel = new QLabel( QChar( 0x00B0 ), myTransformGroup );
+ QLabel* aPointXMinLabel = new QLabel( "'", myTransformGroup );
+ QLabel* aPointYMinLabel = new QLabel( "'", myTransformGroup );
+ QLabel* aPointXSecLabel = new QLabel( "\"", myTransformGroup );
+ QLabel* aPointYSecLabel = new QLabel( "\"", myTransformGroup );
+ QLabel* aPointLatLabel = new QLabel( tr( "POINT_LATITUDE" ), myTransformGroup );
+ QLabel* aPointLonLabel = new QLabel( tr( "POINT_LONGITUDE" ), myTransformGroup );
+ myGeodesicLabels << aPointXDegLabel << aPointYDegLabel
+ << aPointXMinLabel << aPointYMinLabel
+ << aPointXSecLabel << aPointYSecLabel
+ << aPointLonLabel << aPointLatLabel;
+
+ QtxIntSpinBox* aPointXDeg = new QtxIntSpinBox( -179, 179, 1, myTransformGroup );
+ QtxIntSpinBox* aPointYDeg = new QtxIntSpinBox( 0, 89, 1, myTransformGroup );
+ QtxIntSpinBox* aPointXMin = new QtxIntSpinBox( 0, 59, 1, myTransformGroup );
+ QtxIntSpinBox* aPointYMin = new QtxIntSpinBox( 0, 59, 1, myTransformGroup );
+ QtxDoubleSpinBox* aPointXSec = new QtxDoubleSpinBox( 0, 59.9999, 1, 4, 4, myTransformGroup );
+ QtxDoubleSpinBox* aPointYSec = new QtxDoubleSpinBox( 0, 59.9999, 1, 4, 4, myTransformGroup );
+
+ QtxDoubleSpinBox* aCartPointX = new QtxDoubleSpinBox( 0, 1e8, 1, 2, 2, myTransformGroup );
+ QtxDoubleSpinBox* aCartPointY = new QtxDoubleSpinBox( 0, 1e8, 1, 2, 2, myTransformGroup );
+
+ 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 + 3;
+ if ( aPointType == HYDROGUI_PrsImage::PointC )
+ {
+ myPointCEnabler = new QCheckBox( myTransformGroup );
+ aTransformLayout->addWidget( myPointCEnabler, aRow, 0, 1, 2, Qt::AlignHCenter );
+ aTransformLayout->addWidget( aPointBtn, aRow, 2, 1, 8 );
+ }
+ else
+ {
+ aTransformLayout->addWidget( aPointBtn, aRow, 0, 1, 10 );
+ }
+
+ aTransformLayout->addWidget( aPointXLabel, aRow + 1, 0 );
+ aTransformLayout->addWidget( aPointX, aRow + 1, 1 );
+ aTransformLayout->addWidget( aPointArrowLabel, aRow + 1, 2, 2, 1 );
+ aTransformLayout->addWidget( aPointXDeg, aRow + 1, 3 );
+ aTransformLayout->addWidget( aPointXDegLabel, aRow + 1, 4 );
+ aTransformLayout->addWidget( aPointXMin, aRow + 1, 5 );
+ aTransformLayout->addWidget( aPointXMinLabel, aRow + 1, 6 );
+ aTransformLayout->addWidget( aPointXSec, aRow + 1, 7 );
+ aTransformLayout->addWidget( aPointXSecLabel, aRow + 1, 8 );
+ aTransformLayout->addWidget( aPointLonLabel, aRow + 1, 9 );
+
+ aTransformLayout->addWidget( aCartPointX, aRow + 1, 3, 1, 6 );
+ aTransformLayout->addWidget( aRefPointX, aRow + 1, 3, 1, 6 );
+
+ aTransformLayout->addWidget( aPointYLabel, aRow + 2, 0 );
+ aTransformLayout->addWidget( aPointY, aRow + 2, 1 );
+ aTransformLayout->addWidget( aPointYDeg, aRow + 2, 3 );
+ aTransformLayout->addWidget( aPointYDegLabel, aRow + 2, 4 );
+ aTransformLayout->addWidget( aPointYMin, aRow + 2, 5 );
+ aTransformLayout->addWidget( aPointYMinLabel, aRow + 2, 6 );
+ aTransformLayout->addWidget( aPointYSec, aRow + 2, 7 );
+ aTransformLayout->addWidget( aPointYSecLabel, aRow + 2, 8 );
+ aTransformLayout->addWidget( aPointLatLabel, aRow + 2, 9 );
+
+ aTransformLayout->addWidget( aCartPointY, aRow + 2, 3, 1, 6 );
+ aTransformLayout->addWidget( aRefPointY, aRow + 2, 3, 1, 6 );