// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
myPluginName = atts.value("name");
myServerLib = atts.value("server-lib");
myClientLib = atts.value("gui-lib");
+/* It's Need to tranlate lib name for WIN32 or X platform
+ * (only client lib, because server lib translates in SMESH_Gen_i::createHypothesis
+ * for normal work of *.py files )
+ */
+ if( !myClientLib.isEmpty() )
+ {
+#ifdef WNT
+ //myServerLib += ".dll";
+ myClientLib += ".dll";
+#else
+ //myServerLib = "lib" + myServerLib + ".so";
+ myClientLib = "lib" + myClientLib + ".so";
+#endif
+ }
+
QString aResName = atts.value("resources");
if (aResName != "")
{
int aVal = (*anIter).toInt( &isOk );
if ( isOk )
- aDim.append( aVal - 1 );
+ aDim.append( aVal );
}
// for algo
}
}
- HypothesisData* aHypLibNames =
+ HypothesisData* aHypData =
new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib,
aLabel, anIcon, aDim, isAux,
attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ]);
if (qName == "algorithm")
{
- myAlgorithmsMap[(char*)aHypAlType.latin1()] = aHypLibNames;
+ myAlgorithmsMap[(char*)aHypAlType.latin1()] = aHypData;
}
else
{
- myHypothesesMap[(char*)aHypAlType.latin1()] = aHypLibNames;
+ myHypothesesMap[(char*)aHypAlType.latin1()] = aHypData;
}
}
}