Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / XGUI / XGUI_DocumentDataModel.h
index 68bfa406252f3c8e30a112fab1ca8ea98dee4cdc..f6ce80eac56ee2efd203ba46d22df6456b9f2b98 100644 (file)
@@ -60,6 +60,11 @@ public:
 
   FeaturePtr activePart() const;
 
+  QModelIndex activePartIndex() const { return myActivePartIndex; }
+
+  //! Deactivates a Part
+  void deactivatePart();
+
 private:
 
   enum {PartsFolder, HistoryNode};
@@ -104,6 +109,8 @@ private:
   //! Active part in part editing mode
   XGUI_PartModel* myActivePart;
 
+  QModelIndex myActivePartIndex;
+
   //! List of saved QModelIndexes created by sub-models
   QList<QModelIndex*> myIndexes;