+ QStringList types;
+ types.append( QObject::tr( "SMESH_DISTR_REGULAR" ) );
+ types.append( QObject::tr( "SMESH_DISTR_SCALE" ) );
+ types.append( QObject::tr( "SMESH_DISTR_TAB" ) );
+ types.append( QObject::tr( "SMESH_DISTR_EXPR" ) );
+ //string description of distribution types
+
+ SMESHGUI_enumParameter* type = new SMESHGUI_enumParameter( types, 0, QObject::tr( "SMESH_DISTR_TYPE" ) );
+ SMESHGUI_dependParameter::ShownMap& aMap = type->shownMap();
+ aMap[0].append( 0 ); // if DistrType=0 (regular), then number of segments and types are shown (0-th and 1-th)
+ aMap[0].append( 1 );
+ aMap[1].append( 0 ); // if DistrType=1 (scale), then number of segments, types and scale are shown
+ aMap[1].append( 1 );
+ aMap[1].append( 2 );
+ aMap[2].append( 0 ); // if DistrType=2 (table), then number of segments, types, table and exponent are shown
+ aMap[2].append( 1 );
+ aMap[2].append( 3 );
+ aMap[2].append( 5 );
+ aMap[3].append( 0 ); // if DistrType=3 (expression), then number of segments, types, expression and exponent are shown
+ aMap[3].append( 1 );
+ aMap[3].append( 4 );
+ aMap[3].append( 5 );
+ //1-th parameter in list
+ paramList.push_back ( SMESHGUI_aParameterPtr( type ) );
+
+ //2-th parameter in list