- QtxValue val;
- if ( p=="client" ) val = QtxValue( globalParam( p ) );
- else if ( p=="type" ) val = QtxValue( myTypes[ind] );
- else if ( p=="elemTypes" ) val = QtxValue( elemTypes( ind ) );
- else if ( p=="numberOfNodes" ) val = QtxValue( numberOfNodes( ind ) );
- else if ( p=="labeledTypes" ) val = QtxValue( labeledTypes( ind ) );
- else if ( p=="shrinkMode" ) val = QtxValue( shrinkMode( ind ) );
- else if ( p=="entityMode" ) val = QtxValue( entityMode( ind ) );
- else if ( p=="controlMode" ) val = QtxValue( controlMode( ind ) );
- else if ( p=="displayMode" ) val = QtxValue( displayMode( ind ) );
- else if ( p=="isComputable" ) val = QtxValue( isComputable( ind ) );
- else if ( p=="hasReference" ) val = QtxValue( hasReference( ind ) );
- else if ( p=="isVisible" ) val = QtxValue( isVisible( ind ) );
-
-// printf( "--> param() : [%s] = %s (%s)\n", p.latin1(), val.toString().latin1(), val.typeName() );
-// if ( val.type() == QVariant::List )
-// cout << "size: " << val.toList().count() << endl;
- return val;
+ QVariant val;
+ if ( p=="client" ) val = QVariant( LightApp_Selection::parameter( p ) );
+ else if ( p=="type" ) val = QVariant( myTypes[ind] );
+ else if ( p=="elemTypes" ) val = QVariant( elemTypes( ind ) );
+ else if ( p=="isAutoColor" ) val = QVariant( isAutoColor( ind ) );
+ else if ( p=="numberOfNodes" ) val = QVariant( numberOfNodes( ind ) );
+ else if ( p=="dim" ) val = QVariant( dim( ind ) );
+ else if ( p=="labeledTypes" ) val = QVariant( labeledTypes( ind ) );
+ else if ( p=="shrinkMode" ) val = QVariant( shrinkMode( ind ) );
+ else if ( p=="entityMode" ) val = QVariant( entityMode( ind ) );
+ else if ( p=="isNumFunctor" ) val = QVariant( isNumFunctor( ind ) );
+ else if ( p=="displayMode" ) val = QVariant( displayMode( ind ) );
+ else if ( p=="isComputable" ) val = QVariant( isComputable( ind ) );
+ else if ( p=="isPreComputable" ) val = QVariant( isPreComputable( ind ) );
+ else if ( p=="hasReference" ) val = QVariant( hasReference( ind ) );
+ else if ( p=="isImported" ) val = QVariant( isImported( ind ) );
+ else if ( p=="facesOrientationMode" ) val = QVariant( facesOrientationMode( ind ) );
+ else if ( p=="groupType" ) val = QVariant( groupType( ind ) );
+ else if ( p=="quadratic2DMode") val = QVariant( quadratic2DMode( ind ) );
+ else if ( p=="isDistributionVisible") val = QVariant( isDistributionVisible( ind ) );
+ else if ( p=="hasChildren") val = QVariant( hasChildren( ind ) );
+ else if ( p=="nbChildren") val = QVariant( nbChildren( ind ) );
+ else if ( p=="isContainer") val = QVariant( isContainer( ind ) );
+
+ if ( val.isValid() )
+ return val;
+ else
+ return LightApp_Selection::parameter( ind, p );
+}
+
+//=======================================================================
+//function : parameter
+//purpose :
+//=======================================================================
+QVariant SMESHGUI_Selection::parameter( const QString& p ) const
+{
+ QVariant val;
+ if ( p=="controlMode" ) val = QVariant( controlMode() );
+
+ if ( val.isValid() )
+ return val;
+ else
+ return LightApp_Selection::parameter( p );