Salome HOME
Issue #1383 Preview button: using Config_FeatureMessage instead of list of parameters...
[modules/shaper.git] / src / SHAPERGUI / SHAPERGUI.cpp
index 587069d6c8c34d1457058940faa1ad2350dfe7c5..ef44ec327d7d42b5ee8ccc38b71e84e78493bbd7 100644 (file)
@@ -543,33 +543,15 @@ QAction* SHAPERGUI::command(const QString& theId) const
   return 0;
 }
 
-//******************************************************
-void SHAPERGUI::setNestedActions(const QString& theId, const QStringList& theActions)
-{
-  myNestedActions[theId] = theActions;
-}
-
-//******************************************************
-QStringList SHAPERGUI::nestedActions(const QString& theId) const
-{
-  if (myNestedActions.contains(theId))
-    return myNestedActions[theId];
-  return QStringList();
-}
-
-//******************************************************
-void SHAPERGUI::setDocumentKind(const QString& theId, const QString& theKind)
+void SHAPERGUI::setFeatureInfo(const QString& theFeatureId,
+                               const std::shared_ptr<Config_FeatureMessage>& theMessage)
 {
-  myDocumentType[theId] = theKind;
+  myFeaturesInfo.insert(theFeatureId, theMessage);
 }
 
-//******************************************************
-QString SHAPERGUI::documentKind(const QString& theId) const
+const std::shared_ptr<Config_FeatureMessage>& SHAPERGUI::featureInfo(const QString& theFeatureId)
 {
-  if (myDocumentType.contains(theId))
-    return myDocumentType[theId];
-  return QString();
-
+  return myFeaturesInfo.contains(theFeatureId) ? myFeaturesInfo[theFeatureId] : NULL;
 }
 
 //******************************************************