+ QGridLayout* l = 0;
+ if (!theParent->layout()) {
+ l = new QGridLayout(theParent);
+ l->setMargin(9); l->setSpacing(6);
+ }
+ else {
+ l = qobject_cast<QGridLayout*>(theParent->layout());
+ }
+ int row = l->rowCount();
+ l->addWidget(lab, row, 0);
+ l->addWidget(mySelBtn[theId], row, 1);
+ l->addWidget(mySelName[theId], row, 2);
+}
+
+//=================================================================================
+// function : createSpinWg()
+// purpose :
+//=================================================================================
+void BlocksGUI_TrsfDlg::createSpinWg (const QString& theLbl,
+ QWidget* theParent,
+ const int theId)
+{
+ QLabel* lab = new QLabel(theLbl, theParent);
+ mySpinBox[theId] = new SalomeApp_IntSpinBox(theParent);
+ QGridLayout* l = 0;
+ if (!theParent->layout()) {
+ l = new QGridLayout(theParent);
+ l->setMargin(9); l->setSpacing(6);
+ }
+ else {
+ l = qobject_cast<QGridLayout*>(theParent->layout());
+ }
+ int row = l->rowCount();
+ l->addWidget(lab, row, 0);
+ l->addWidget(mySpinBox[theId], row, 2);