+//=======================================================================
+//function : parameter
+//purpose :
+//=======================================================================
+QVariant SMESHGUI_Selection::parameter( const int ind, const QString& p ) const
+{
+ QVariant val;
+ if ( p=="client" ) val = QVariant( LightApp_Selection::parameter( p ) );
+ else if ( p=="type" ) val = QVariant( myTypes[ind] );
+ else if ( p=="hasActor" ) val = QVariant( getActor( ind ) != 0 );
+ else if ( p=="elemTypes" ) val = QVariant( elemTypes( ind, false ) );
+ else if ( p=="objElemTypes" ) val = QVariant( elemTypes( ind, true ) );
+ 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=="hasGeomReference" ) val = QVariant( hasGeomReference( ind ) );
+ else if ( p=="isEditableHyp" ) val = QVariant( isEditableHyp( 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=="isQuadratic" ) val = QVariant( isQuadratic( ind ) );
+ else if ( p=="quadratic2DMode") val = QVariant( quadratic2DMode( ind ) );
+ else if ( p=="isDistributionVisible") val = QVariant( isDistributionVisible( ind ) );
+ else if ( p=="isScalarBarVisible") val = QVariant( isScalarBarVisible( 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 ) );
+ else if ( p=="guiState") val = QVariant( guiState() );
+
+ 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 );