]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomModule/GeomModule.cpp
Salome HOME
Implimentation of the Config XML Reader
[modules/shaper.git] / src / GeomModule / GeomModule.cpp
index 6bddce9b101628566db1ce41374d26b906d85d34..f3bc0fd16e94ac784ffc4896f3177ec1c4419d93 100644 (file)
@@ -1,5 +1,7 @@
 #include "GeomModule.h"
 
+#include <Config_XMLReader.h>
+
 #include <QFile>
 #include <QDir>
 #include <QApplication>
@@ -25,30 +27,7 @@ GeomModule::~GeomModule()
 
 void GeomModule::createFeatures()
 {
-    IWorkbench* aPage = myWorkshop->addWorkbench("Home");
-    IMenuGroup* aGroup = aPage->addGroup();
-
-    IFeatureMenu* aCommand = aGroup->addFeature("new_part", "Part", "Creates a new part", QIcon(":pictures/part_ico.png"));
-    aCommand = aGroup->addFeature("new_point", "Point", "Create a new point", QIcon(":icons/point.png"));
-    aCommand = aGroup->addFeature("new_axis", "Axis", "Create a new axis", QIcon(":icons/axis.png"), QKeySequence());
-    aCommand = aGroup->addFeature("new_plane", "Plane", "Create a new plane", QIcon(":icons/plane.png"), QKeySequence());
-
-    //aGroup = aPage->addGroup();
-    aCommand = aGroup->addFeature("duplicate", "Duplicate", "Duplicate selected object", QIcon(":icons/duplicate.png"));
-    aCommand = aGroup->addFeature("remove", "Remove", "Remove selected object", QIcon(":icons/remove.png"));
-
-    aPage = myWorkshop->addWorkbench("Features");
-    aGroup = aPage->addGroup();
-
-    aCommand = aGroup->addFeature("extrusion", "Extrusion", "Make extrusion", QIcon(":icons/extrusion.png"));
-    aCommand = aGroup->addFeature("revolution", "Revolution", "Make revolution", QIcon(":icons/revol.png"));
-    aCommand = aGroup->addFeature("cut", "Cut", "Make cut", QIcon(":icons/cut.png"));
-    aCommand = aGroup->addFeature("fusion", "Fusion", "Make fusion", QIcon(":icons/fusion.png"));
-    aCommand = aGroup->addFeature("common", "Common", "Make common", QIcon(":icons/common.png"));
-
-    //aGroup = aPage->addGroup();
-    aCommand = aGroup->addFeature("import", "Import", "Make import", QIcon(":icons/import.png"));
-
-    aPage = myWorkshop->addWorkbench("Sketch");
-    aPage = myWorkshop->addWorkbench("Properties");
-}
\ No newline at end of file
+  Config_XMLReader* aReader =
+          new Config_XMLReader("plugin-PartSet.xml");
+  aReader->readAll();
+}