+void HYDROGUI_TwoImagesDlg::setMode( const int theMode, const bool theIsEdit )
+{
+ myMode = theMode;
+ myIsEdit = theIsEdit;
+
+ bool anIsTwoImages = myMode == TwoImages;
+
+ myModifySelectedImage->setVisible( !anIsTwoImages && !myIsEdit );
+
+ myImage1Label->setText( anIsTwoImages ? tr( "IMAGE_1" ) : tr( "IMAGE" ) );
+
+ myImage2Label->setVisible( anIsTwoImages );
+ myImage2->setVisible( anIsTwoImages );
+ myPolylineLabel->setVisible( !anIsTwoImages );
+ myPolyline->setVisible( !anIsTwoImages );
+}
+
+bool HYDROGUI_TwoImagesDlg::isModifySelected() const
+{
+ return myModifySelectedImage->isChecked();
+}
+