- QFrame* aFrame = new QFrame( theParent );
-
- QPixmap iconMoveNode(
- QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr( "ICON_DLG_MOVE_NODE" ) ) );
- QPixmap iconSelect(
- QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr( "ICON_SELECT" ) ) );
-
- QButtonGroup* aPixGrp = new QButtonGroup( 1, Qt::Vertical, tr( "MESH_NODE" ), aFrame );
- aPixGrp->setExclusive( TRUE );
- QRadioButton* aRBut = new QRadioButton( aPixGrp );
- aRBut->setPixmap( iconMoveNode );
- aRBut->setChecked( TRUE );
-
- QGroupBox* anIdGrp = new QGroupBox( 1, Qt::Vertical, tr( "SMESH_MOVE" ), aFrame );
- new QLabel( tr( "NODE_ID" ), anIdGrp );
- ( new QPushButton( anIdGrp ) )->setPixmap( iconSelect );
- myId = new QLineEdit( anIdGrp );
- myId->setValidator( new SMESHGUI_IdValidator( this, "validator", 1 ));
-
- QGroupBox* aCoordGrp = new QGroupBox( 1, Qt::Vertical, tr( "SMESH_COORDINATES" ), aFrame );
- new QLabel( tr( "SMESH_X" ), aCoordGrp );
- myX = new SMESHGUI_SpinBox( aCoordGrp );
- new QLabel( tr( "SMESH_Y" ), aCoordGrp );
- myY = new SMESHGUI_SpinBox( aCoordGrp );
- new QLabel( tr( "SMESH_Z" ), aCoordGrp );
- myZ = new SMESHGUI_SpinBox( aCoordGrp );
-
- myX->RangeStepAndValidator( -999999.999, +999999.999, 25.0, 3 );
- myY->RangeStepAndValidator( -999999.999, +999999.999, 25.0, 3 );
- myZ->RangeStepAndValidator( -999999.999, +999999.999, 25.0, 3 );
-
- QVBoxLayout* aLay = new QVBoxLayout( aFrame );
- aLay->addWidget( aPixGrp );
- aLay->addWidget( anIdGrp );
- aLay->addWidget( aCoordGrp );
+ QFrame* aFrame = new QFrame(theParent);
+
+ QPixmap iconMoveNode (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_DLG_MOVE_NODE")));
+ QPixmap iconSelect (SMESH::GetResourceMgr( mySMESHGUI )->loadPixmap("SMESH", tr("ICON_SELECT")));
+
+ QButtonGroup* aPixGrp = new QButtonGroup(1, Qt::Vertical, tr("MESH_NODE"), aFrame);
+ aPixGrp->setExclusive(TRUE);
+ QRadioButton* aRBut = new QRadioButton(aPixGrp);
+ aRBut->setPixmap(iconMoveNode);
+ aRBut->setChecked(TRUE);
+
+ QGroupBox* anIdGrp = new QGroupBox(1, Qt::Vertical, tr("SMESH_MOVE"), aFrame);
+ new QLabel(tr("NODE_ID"), anIdGrp);
+ (new QPushButton(anIdGrp))->setPixmap(iconSelect);
+ myId = new QLineEdit(anIdGrp);
+ myId->setValidator(new SMESHGUI_IdValidator(this, "validator", 1));
+
+ QGroupBox* aCoordGrp = new QGroupBox(1, Qt::Vertical, tr("SMESH_COORDINATES"), aFrame);
+ new QLabel(tr("SMESH_X"), aCoordGrp);
+ myX = new SMESHGUI_SpinBox(aCoordGrp);
+ new QLabel(tr("SMESH_Y"), aCoordGrp);
+ myY = new SMESHGUI_SpinBox(aCoordGrp);
+ new QLabel(tr("SMESH_Z"), aCoordGrp);
+ myZ = new SMESHGUI_SpinBox(aCoordGrp);
+
+ myX->RangeStepAndValidator(-999999.999, +999999.999, 25.0, 3);
+ myY->RangeStepAndValidator(-999999.999, +999999.999, 25.0, 3);
+ myZ->RangeStepAndValidator(-999999.999, +999999.999, 25.0, 3);
+
+ QVBoxLayout* aLay = new QVBoxLayout(aFrame);
+ aLay->addWidget(aPixGrp);
+ aLay->addWidget(anIdGrp);
+ aLay->addWidget(aCoordGrp);