]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3145: provide help pages for Import/Export operations
authorvsv <vsv@opencascade.com>
Fri, 28 Feb 2020 12:05:26 +0000 (15:05 +0300)
committervsv <vsv@opencascade.com>
Fri, 28 Feb 2020 12:05:39 +0000 (15:05 +0300)
src/XGUI/XGUI_Workshop.cpp

index 6963c8426af58ed400ce5e7c7727e14205d5b445..ab8f0b656cab2516666d3a005fd80c12a227a3fe 100644 (file)
@@ -1311,6 +1311,8 @@ void XGUI_Workshop::onImportPart()
   if (abortAllOperations()) {
     ModuleBase_OperationFeature* anImportPartOp = dynamic_cast<ModuleBase_OperationFeature*>(
         module()->createOperation(ExchangePlugin_ImportPart::ID()));
+    anImportPartOp->setHelpFileName(QString("ExchangePlugin") + QDir::separator() +
+      "importFeature.html");
     myPropertyPanel->updateApplyPlusButton(anImportPartOp->feature());
     operationMgr()->startOperation(anImportPartOp);
   }
@@ -1322,6 +1324,8 @@ void XGUI_Workshop::onImportShape()
   if (abortAllOperations()) {
     ModuleBase_OperationFeature* anImportOp = dynamic_cast<ModuleBase_OperationFeature*>(
         module()->createOperation(ExchangePlugin_Import::ID()));
+    anImportOp->setHelpFileName(QString("ExchangePlugin") + QDir::separator() +
+      "importFeature.html");
     myPropertyPanel->updateApplyPlusButton(anImportOp->feature());
     operationMgr()->startOperation(anImportOp);
   }
@@ -1333,6 +1337,8 @@ void XGUI_Workshop::onExportShape()
   if (abortAllOperations()) {
     ModuleBase_OperationFeature* anExportOp = dynamic_cast<ModuleBase_OperationFeature*>(
         module()->createOperation(ExchangePlugin_ExportFeature::ID()));
+    anExportOp->setHelpFileName(QString("ExchangePlugin") + QDir::separator() +
+      "exportFeature.html");
     myPropertyPanel->updateApplyPlusButton(anExportOp->feature());
     operationMgr()->startOperation(anExportOp);
   }
@@ -1344,6 +1350,8 @@ void XGUI_Workshop::onExportPart()
   if (abortAllOperations()) {
     ModuleBase_OperationFeature* anExportPartOp = dynamic_cast<ModuleBase_OperationFeature*>(
         module()->createOperation(ExchangePlugin_ExportPart::ID()));
+    anExportPartOp->setHelpFileName(QString("ExchangePlugin") + QDir::separator() +
+      "exportFeature.html");
     myPropertyPanel->updateApplyPlusButton(anExportPartOp->feature());
     operationMgr()->startOperation(anExportPartOp);
   }