- mySimulation = new SMESH::TNodeSimulation(myViewWindow);
-
- QPixmap image0 (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_NODE")));
- if (!name)
- setName("SMESHGUI_NodesDlg");
- resize(303, 185);
- setCaption(tr("MESH_NODE_TITLE"));
- setSizeGripEnabled(TRUE);
- SMESHGUI_NodesDlgLayout = new QGridLayout(this);
- SMESHGUI_NodesDlgLayout->setSpacing(6);
- SMESHGUI_NodesDlgLayout->setMargin(11);
+ setModal( false );
+ setAttribute( Qt::WA_DeleteOnClose, true );
+ setWindowTitle( tr("MESH_NODE_TITLE") );
+ setSizeGripEnabled( true );
+
+ mySimulation = new SMESH::TNodeSimulation( SMESH::GetViewWindow( mySMESHGUI ) );
+
+ QPixmap image0( SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap( "SMESH",
+ tr( "ICON_DLG_NODE" ) ) );
+
+ QVBoxLayout* SMESHGUI_NodesDlgLayout = new QVBoxLayout( this );
+ SMESHGUI_NodesDlgLayout->setSpacing( SPACING );
+ SMESHGUI_NodesDlgLayout->setMargin( MARGIN );
+
+ /***************************************************************/
+ GroupConstructors = new QGroupBox( tr( "MESH_NODE" ), this );
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
+ QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout( GroupConstructors );
+ GroupConstructorsLayout->setSpacing( SPACING );
+ GroupConstructorsLayout->setMargin( MARGIN );
+
+ Constructor1 = new QRadioButton( GroupConstructors );
+ Constructor1->setIcon( image0 );
+ Constructor1->setChecked( true );
+
+ GroupConstructorsLayout->addWidget( Constructor1 );
+ ButtonGroup->addButton( Constructor1, 0 );
+
+ /***************************************************************/
+ GroupCoordinates = new QGroupBox( tr( "SMESH_COORDINATES" ), this );
+ QHBoxLayout* GroupCoordinatesLayout = new QHBoxLayout(GroupCoordinates);
+ GroupCoordinatesLayout->setSpacing(SPACING);
+ GroupCoordinatesLayout->setMargin(MARGIN);
+
+ TextLabel_X = new QLabel( tr( "SMESH_X" ), GroupCoordinates );
+ SpinBox_X = new SMESHGUI_SpinBox( GroupCoordinates );
+
+ TextLabel_Y = new QLabel( tr( "SMESH_Y" ), GroupCoordinates );
+ SpinBox_Y = new SMESHGUI_SpinBox( GroupCoordinates );
+
+ TextLabel_Z = new QLabel( tr( "SMESH_Z" ), GroupCoordinates );
+ SpinBox_Z = new SMESHGUI_SpinBox( GroupCoordinates );
+
+ GroupCoordinatesLayout->addWidget( TextLabel_X );
+ GroupCoordinatesLayout->addWidget( SpinBox_X );
+ GroupCoordinatesLayout->addWidget( TextLabel_Y);
+ GroupCoordinatesLayout->addWidget( SpinBox_Y );
+ GroupCoordinatesLayout->addWidget( TextLabel_Z );
+ GroupCoordinatesLayout->addWidget( SpinBox_Z );
+ GroupCoordinatesLayout->setStretch(1, 1);
+ GroupCoordinatesLayout->setStretch(3, 1);
+ GroupCoordinatesLayout->setStretch(5, 1);