- QPixmap image0 (SMESHGUI::resourceMgr()->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_FREEBORDERS")));
- QPixmap image1 (SMESHGUI::resourceMgr()->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_CONFORM_FREEBORDERS")));
- QPixmap image2 (SMESHGUI::resourceMgr()->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_BORDERTOSIDE")));
- QPixmap image3 (SMESHGUI::resourceMgr()->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_SIDEELEMENTS")));
- QPixmap image4 (SMESHGUI::resourceMgr()->loadPixmap("SMESH", tr("ICON_SELECT")));
-
- if (!name)
- setName("SMESHGUI_SewingDlg");
- resize(303, 185);
- setCaption(tr("SMESH_SEWING"));
- setSizeGripEnabled(TRUE);
- SMESHGUI_SewingDlgLayout = new QGridLayout(this);
- SMESHGUI_SewingDlgLayout->setSpacing(6);
- SMESHGUI_SewingDlgLayout->setMargin(11);
-
- /***************************************************************/
- GroupConstructors = new QButtonGroup(this, "GroupConstructors");
- GroupConstructors->setSizePolicy(QSizePolicy((QSizePolicy::SizeType)5,
- (QSizePolicy::SizeType)0, 0, 0,
- GroupConstructors->sizePolicy().hasHeightForWidth()));
- GroupConstructors->setTitle(tr("SMESH_SEWING"));
- GroupConstructors->setExclusive(TRUE);
- GroupConstructors->setColumnLayout(0, Qt::Vertical);
- GroupConstructors->layout()->setSpacing(0);
- GroupConstructors->layout()->setMargin(0);
- GroupConstructorsLayout = new QGridLayout(GroupConstructors->layout());
- GroupConstructorsLayout->setAlignment(Qt::AlignTop);
- GroupConstructorsLayout->setSpacing(6);
- GroupConstructorsLayout->setMargin(11);
- QHBoxLayout* RBLayout = new QHBoxLayout(0, 0, 6, "Layout2");
- RadioButton1= new QRadioButton(GroupConstructors, "RadioButton1");
- RadioButton1->setText(tr("" ));
- RadioButton1->setPixmap(image0);
- RBLayout->addWidget(RadioButton1);
- RadioButton2= new QRadioButton(GroupConstructors, "RadioButton2");
- RadioButton2->setText(tr("" ));
- RadioButton2->setPixmap(image1);
- RBLayout->addWidget(RadioButton2);
- RadioButton3= new QRadioButton(GroupConstructors, "RadioButton3");
- RadioButton3->setText(tr("" ));
- RadioButton3->setPixmap(image2);
- RBLayout->addWidget(RadioButton3);
- RadioButton4= new QRadioButton(GroupConstructors, "RadioButton4");
- RadioButton4->setText(tr("" ));
- RadioButton4->setPixmap(image3);
- RBLayout->addWidget(RadioButton4);
- GroupConstructorsLayout->addLayout(RBLayout, 0, 0);
- SMESHGUI_SewingDlgLayout->addWidget(GroupConstructors, 0, 0);
+ SUIT_ResourceMgr* mgr = SMESH::GetResourceMgr( mySMESHGUI );
+ QPixmap image0 (mgr->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_FREEBORDERS")));
+ QPixmap image1 (mgr->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_CONFORM_FREEBORDERS")));
+ QPixmap image2 (mgr->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_BORDERTOSIDE")));
+ QPixmap image3 (mgr->loadPixmap("SMESH", tr("ICON_SMESH_SEWING_SIDEELEMENTS")));
+ QPixmap image4 (mgr->loadPixmap("SMESH", tr("ICON_SELECT")));
+
+ setModal(false);
+ setAttribute(Qt::WA_DeleteOnClose, true);
+ setWindowTitle(tr("SMESH_SEWING"));
+ setSizeGripEnabled(true);
+
+ QVBoxLayout* SMESHGUI_SewingDlgLayout = new QVBoxLayout(this);
+ SMESHGUI_SewingDlgLayout->setSpacing(SPACING);
+ SMESHGUI_SewingDlgLayout->setMargin(MARGIN);