mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
0022104: EDF 2550 SMESH: 2D viscous layer, allow specifying edges with viscous layer
Provide access to QLabel's of parameters: + QLabel* getLabel(int i) const; + ListOfWidgets myParamLabels;
This commit is contained in:
parent
9f9b06a194
commit
036be279a4
@ -185,6 +185,7 @@ QFrame* SMESHGUI_GenericHypothesisCreator::buildStdFrame()
|
|||||||
{
|
{
|
||||||
QLabel* lab = new QLabel( (*anIt).myName, GroupC1 );
|
QLabel* lab = new QLabel( (*anIt).myName, GroupC1 );
|
||||||
GroupC1Layout->addWidget( lab, i, 0 );
|
GroupC1Layout->addWidget( lab, i, 0 );
|
||||||
|
myParamLabels << lab;
|
||||||
|
|
||||||
QWidget* w = getCustomWidget( *anIt, GroupC1, i );
|
QWidget* w = getCustomWidget( *anIt, GroupC1, i );
|
||||||
if ( !w )
|
if ( !w )
|
||||||
@ -466,6 +467,22 @@ SMESHGUI_GenericHypothesisCreator::ListOfWidgets& SMESHGUI_GenericHypothesisCrea
|
|||||||
return myParamWidgets;
|
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
|
QtxDialog* SMESHGUI_GenericHypothesisCreator:: dlg() const
|
||||||
{
|
{
|
||||||
return myDlg;
|
return myDlg;
|
||||||
|
@ -99,6 +99,7 @@ protected:
|
|||||||
bool hasInitParamsHypothesis() const;
|
bool hasInitParamsHypothesis() const;
|
||||||
const ListOfWidgets& widgets() const;
|
const ListOfWidgets& widgets() const;
|
||||||
ListOfWidgets& changeWidgets();
|
ListOfWidgets& changeWidgets();
|
||||||
|
QLabel* getLabel(int i) const;
|
||||||
QtxDialog* dlg() const;
|
QtxDialog* dlg() const;
|
||||||
QString getVariableName(const char* methodName) const;
|
QString getVariableName(const char* methodName) const;
|
||||||
|
|
||||||
@ -134,6 +135,7 @@ private:
|
|||||||
QString myHypName;
|
QString myHypName;
|
||||||
QString myHypType;
|
QString myHypType;
|
||||||
ListOfWidgets myParamWidgets;
|
ListOfWidgets myParamWidgets;
|
||||||
|
ListOfWidgets myParamLabels;
|
||||||
bool myIsCreate;
|
bool myIsCreate;
|
||||||
QtxDialog* myDlg;
|
QtxDialog* myDlg;
|
||||||
QString myShapeEntry;
|
QString myShapeEntry;
|
||||||
|
Loading…
Reference in New Issue
Block a user