#include <QPushButton>
#include <QRadioButton>
#include <QToolButton>
+#include <QCheckBox>
HYDROGUI_ImportImageDlg::HYDROGUI_ImportImageDlg( HYDROGUI_Module* theModule, const QString& theTitle )
: HYDROGUI_InputPanel( theModule, theTitle ),
QtxIntSpinBox* aRefPointY = new QtxIntSpinBox( 0, 0, 1, myTransformGroup ); // max is updated later
int aRow = 4 * aPointType + 3;
- aTransformLayout->addWidget( aPointBtn, aRow, 0, 1, 9 );
+ if ( aPointType == HYDROGUI_PrsImage::PointC )
+ {
+ myPointCEnabler = new QCheckBox( myTransformGroup );
+ aTransformLayout->addWidget( myPointCEnabler, aRow, 0, 1, 2, Qt::AlignHCenter );
+ aTransformLayout->addWidget( aPointBtn, aRow, 2, 1, 7 );
+ connect( myPointCEnabler, SIGNAL( toggled( bool ) ), aPointBtn, SLOT( setEnabled( bool ) ) );
+ }
+ else
+ {
+ aTransformLayout->addWidget( aPointBtn, aRow, 0, 1, 9 );
+ }
aTransformLayout->addWidget( aPointXLabel, aRow + 1, 0 );
aTransformLayout->addWidget( aPointX, aRow + 1, 1 );
myCartPointXMap[ aPointType ]->clear();
myCartPointYMap[ aPointType ]->clear();
}
+ myPointCEnabler->setChecked( false );
+ myPointBtnMap[ HYDROGUI_PrsImage::PointC ]->setEnabled( false );
myTransformGroup->setEnabled( false );
myRefImage->clear();