Salome HOME
Exlude the user input during process events by application (Bug #325).
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_TwoImagesDlg.cxx
index 4ed150204c503e569e7815e1ac385e7017b902a8..7ec78132a5c38f10e5f88cba4c5e8eac984442c0 100644 (file)
@@ -62,7 +62,8 @@ HYDROGUI_TwoImagesDlg::HYDROGUI_TwoImagesDlg( HYDROGUI_Module* theModule, const
   myImage2 = new HYDROGUI_ObjSelector( theModule, KIND_IMAGE, aParamGroup );
 
   myPolylineLabel = new QLabel( tr( "POLYLINE" ), aParamGroup );
-  myPolyline = new HYDROGUI_ObjSelector( theModule, KIND_POLYLINE, aParamGroup );
+  myPolyline = new HYDROGUI_ObjSelector( theModule, KIND_POLYLINEXY, aParamGroup,
+    HYDROGUI_ObjSelector::ClosedPolyline);
 
   QFrame* aBackgroundFrame = new QFrame( aParamGroup );
   QLabel* aBackgroundLabel = new QLabel( tr( "BACKGROUND" ), aBackgroundFrame );
@@ -97,6 +98,12 @@ HYDROGUI_TwoImagesDlg::HYDROGUI_TwoImagesDlg( HYDROGUI_Module* theModule, const
 
   connect( myModifySelectedImage, SIGNAL( toggled( bool ) ),
            this, SLOT( onModifySelectedImage( bool ) ) );
+  connect( myTransparent, SIGNAL( toggled( bool ) ), 
+    myColorBox, SLOT( setDisabled( bool ) ) );
+  connect( myImage1, SIGNAL( alreadySelected( const QString& ) ),
+    this, SIGNAL( alreadySelected( const QString& ) ) );
+  connect( myImage2, SIGNAL( alreadySelected( const QString& ) ),
+    this, SIGNAL( alreadySelected( const QString& ) ) );
 
   setMode( myMode, myIsEdit );
 }
@@ -114,6 +121,7 @@ void HYDROGUI_TwoImagesDlg::reset()
   myPolyline->Clear();
   myTransparent->setChecked( true );
   myColorBox->resetColor();
+  myColorBox->setDisabled( true );
 }
 
 void HYDROGUI_TwoImagesDlg::setMode( const int theMode, const bool theIsEdit )