]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Config/Config_WidgetReader.cpp
Salome HOME
Issue #1368: Creation of a Qt panel. SamplePanelPlugin feature providing
[modules/shaper.git] / src / Config / Config_WidgetReader.cpp
index 25d1fdc65c090722c4dddf32bf36ad88068f4cd3..4a6590c68a20446a7300d17e4da827ca498b5730 100644 (file)
@@ -94,6 +94,14 @@ std::string Config_WidgetReader::dumpNode(xmlNodePtr theNode)
 {
   std::string result = "";
   if (!hasChild(theNode)) {
+    // feature which has the next property should be dumped itself
+    std::string anOwnPanel = getProperty(theNode, PROPERTY_PANEL_ID);
+    if (!anOwnPanel.empty()) {
+      xmlBufferPtr buffer = xmlBufferCreate();
+      int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
+      result = std::string((char*) (buffer->content));
+      xmlBufferFree(buffer);
+    }
     return result;
   }
   //Replace all "source" nodes with content;