aMgr->blockAutoUpdate(false);
//aWorkShop->saveDocument(QString(aTmpDir.c_str()), aFileNames);
- aWorkShop->setCurrentDataFile(aTmp + "shaper.opp");
+ aWorkShop->setCurrentDataFile(aTmp + "shaper.shaper");
aWorkShop->onSave();
QString aName = aWorkShop->currentDataFile();
std::string aa = aName.toStdString();
//#define DEBUG_FEATURE_NAME
//#define DEBUG_CLEAN_HISTORY
-
+#ifdef HAVE_SALOME
+static QString MyFilter(QObject::tr("OpenParts files (*.shaper *.opp)"));
+static QString MyFilter2(QObject::tr("OpenParts files (*.shaper)"));
+static QString MyExtension(".shaper");
+#else
static QString MyFilter(QObject::tr("OpenParts files (*.opp)"));
+static QString MyFilter2(QObject::tr("OpenParts files (*.opp)"));
+static QString MyExtension(".opp");
+#endif
//******************************************************
if(!myOperationMgr->abortAllOperations(XGUI_OperationMgr::XGUI_InformationMessage))
return false;
myCurrentFile = QFileDialog::getSaveFileName(desktop(), tr("Select name to save file..."),
- QString(), MyFilter);
+ QString(), MyFilter2);
if (!myCurrentFile.isNull()) {
- if (!myCurrentFile.endsWith(".opp")) {
- myCurrentFile += ".opp";
+ if (!myCurrentFile.endsWith(MyExtension)) {
+ myCurrentFile += MyExtension;
}
}
else