]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation of CAD Builder with SALOME 9.7.0
authorazv <azv@opencascade.com>
Fri, 1 Oct 2021 13:19:22 +0000 (16:19 +0300)
committerazv <azv@opencascade.com>
Mon, 4 Oct 2021 10:38:27 +0000 (13:38 +0300)
src/PartSet/PartSet_Module.cpp
src/XGUI/XGUI_Workshop.cpp

index 78130efcafbc6d3a45d2cfae54db9276b6fa7d15..3999ae85e8778acfb834a6fbd78cec5f635ddcfd 100644 (file)
 
 #include <SelectMgr_ListIteratorOfListOfFilter.hxx>
 #include <Graphic3d_Texture2Dmanual.hxx>
-#include <OCCViewer_Utilities.h>
 
+#ifdef HAVE_SALOME
+#include <OCCViewer_Utilities.h>
+#endif
 
 #define FEATURE_ITEM_COLOR "0,0,225"
 
@@ -1405,6 +1407,7 @@ double getResultTransparency(const ResultPtr& theResult)
 //******************************************************
 void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObjectPtr& thePrs)
 {
+#ifdef HAVE_SALOME
   Handle(AIS_InteractiveObject) anAIS = thePrs->impl<Handle(AIS_InteractiveObject)>();
   if (!anAIS.IsNull())
   {
@@ -1437,6 +1440,7 @@ void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObj
       anAISShape->SetDisplayMode(AIS_Shaded);
     }
   }
+#endif
 }
 
 //******************************************************
index 79ccfdc050b47a5b90a3c7cfcbb27b9f24df7b30..e68c986e624687d2bcf603741e49c11e82a4b511 100644 (file)
@@ -680,6 +680,7 @@ void XGUI_Workshop::showHelpPage(const QString& thePage) const
 #endif
     QString aFileName = aDocDir + aSep + thePage;
     if (QFile::exists(aFileName)) {
+#ifdef HAVE_SALOME
       SUIT_Application* app = SUIT_Session::session()->activeApplication();
       if (app)
         app->onHelpContextModule("SHAPER", aFileName);
@@ -687,6 +688,10 @@ void XGUI_Workshop::showHelpPage(const QString& thePage) const
         QUrl aUrl = QUrl::fromLocalFile(aFileName);
         QDesktopServices::openUrl(aUrl);
       }
+#else
+      QUrl aUrl = QUrl::fromLocalFile(aFileName);
+      QDesktopServices::openUrl(aUrl);
+#endif
     }
   }
 }