]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Icon for internal feature "Union".
authorazv <azv@opencascade.com>
Wed, 20 Nov 2019 13:05:19 +0000 (16:05 +0300)
committerazv <azv@opencascade.com>
Wed, 20 Nov 2019 13:05:19 +0000 (16:05 +0300)
src/Config/Config_FeatureReader.cpp
src/PartSet/PartSet_IconFactory.cpp

index 7d93e060e7dc85163cad07be11d650a6b2444239..d983afb08b123ce2bd783102536785450d6cbffd 100644 (file)
@@ -179,10 +179,10 @@ void Config_FeatureReader::fillFeature(xmlNodePtr theFeatureNode,
   if (!aHelpFile.empty())
     outFeatureMessage->setHelpFileName(myLibraryName + "/" + aHelpFile);
 
-  if (isInternal) {
-    //Internal feature has no visual representation.
-    return;
-  }
+  //if (isInternal) {
+  //  //Internal feature has no visual representation.
+  //  return;
+  //}
 
   std::string aText = Config_Translator::translate(anId, getProperty(theFeatureNode, FEATURE_TEXT));
   outFeatureMessage->setText(aText);
index abe6aa02599cb656bcd66a7f60d0044856004e3a..67c385b96ac26998277597270b60c0388f5b0c19 100644 (file)
@@ -163,11 +163,9 @@ void PartSet_IconFactory::processEvent(const std::shared_ptr<Events_Message>& th
       Events_Loop::loop()->eventByName(Config_FeatureMessage::GUI_EVENT())) {
     std::shared_ptr<Config_FeatureMessage> aFeatureMsg =
        std::dynamic_pointer_cast<Config_FeatureMessage>(theMessage);
-    if (!aFeatureMsg->isInternal()) {
-      ActionInfo aFeatureInfo;
-      aFeatureInfo.initFrom(aFeatureMsg);
-      // Remember features icons
-      myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile;
-    }
+    ActionInfo aFeatureInfo;
+    aFeatureInfo.initFrom(aFeatureMsg);
+    // Remember features icons
+    myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile;
   }
 }
\ No newline at end of file