{
QLabel* lab = new QLabel( (*anIt).myName, GroupC1 );
GroupC1Layout->addWidget( lab, i, 0 );
+ myParamLabels << lab;
QWidget* w = getCustomWidget( *anIt, GroupC1, i );
if ( !w )
return myParamWidgets;
}
+//================================================================================
+/*!
+ * \brief Returns a QLabel of a spesified parameter.
+ * If isCreation(), the 1st label (supposed to be "Name") is not countered.
+ */
+//================================================================================
+
+QLabel* SMESHGUI_GenericHypothesisCreator::getLabel(int i) const
+{
+ if ( isCreation() )
+ i++;
+ if ( i < myParamLabels.size() )
+ return (QLabel*) myParamLabels.at(i);
+ return NULL;
+}
+
QtxDialog* SMESHGUI_GenericHypothesisCreator:: dlg() const
{
return myDlg;
bool hasInitParamsHypothesis() const;
const ListOfWidgets& widgets() const;
ListOfWidgets& changeWidgets();
+ QLabel* getLabel(int i) const;
QtxDialog* dlg() const;
QString getVariableName(const char* methodName) const;
QString myHypName;
QString myHypType;
ListOfWidgets myParamWidgets;
+ ListOfWidgets myParamLabels;
bool myIsCreate;
QtxDialog* myDlg;
QString myShapeEntry;