- printf( "two images operation\n" );
- myName = new QLineEdit();
- myImage1 = new HYDROGUI_ObjSelector( module(), 0 );
- myImage2 = new HYDROGUI_ObjSelector( module(), 0 );
- myTransparent = new QRadioButton( tr( "TRANSPARENT" ) );
+ // Image name
+ QGroupBox* anImageNameGroup = new QGroupBox( tr( "IMAGE_NAME" ) );
+
+ QLabel* anImageNameLabel = new QLabel( tr( "NAME" ), anImageNameGroup );
+ myImageName = new QLineEdit( anImageNameGroup );
+
+ myModifySelectedImage = new QCheckBox( tr( "MODIFY_SELECTED_IMAGE" ) );
+
+ QGridLayout* anImageNameLayout = new QGridLayout( anImageNameGroup );
+ anImageNameLayout->setMargin( 5 );
+ anImageNameLayout->setSpacing( 5 );
+ anImageNameLayout->addWidget( anImageNameLabel, 0, 0 );
+ anImageNameLayout->addWidget( myImageName, 0, 1 );
+ anImageNameLayout->addWidget( myModifySelectedImage, 1, 0, 1, 2 );
+
+ // Parameters
+ QGroupBox* aParamGroup = new QGroupBox( tr( "PARAMETERS" ) );
+
+ myImage1Label = new QLabel( tr( "IMAGE_1" ), aParamGroup );
+ myImage1 = new HYDROGUI_ObjSelector( theModule, KIND_IMAGE, aParamGroup );
+
+ myImage2Label = new QLabel( tr( "IMAGE_2" ), aParamGroup );
+ myImage2 = new HYDROGUI_ObjSelector( theModule, KIND_IMAGE, aParamGroup );
+
+ myPolylineLabel = new QLabel( tr( "POLYLINE" ), aParamGroup );
+ myPolyline = new HYDROGUI_ObjSelector( theModule, KIND_POLYLINE, aParamGroup );
+
+ QFrame* aBackgroundFrame = new QFrame( aParamGroup );
+ QLabel* aBackgroundLabel = new QLabel( tr( "BACKGROUND" ), aBackgroundFrame );
+ myTransparent = new QRadioButton( tr( "TRANSPARENT" ), aBackgroundFrame );