Salome HOME
Rebuild data tree in case of inconsistence with data model. Correct warning with...
[modules/shaper.git] / src / XGUI / XGUI_ObjectsBrowser.h
index b1a70d487ec1cab3f2d1c6bdc6baf1e8bc89df45..eff2ffc1091a402077579384272a907d80cba1eb 100644 (file)
@@ -15,6 +15,7 @@
 
 class ModuleBase_IDocumentDataModel;
 class XGUI_DataModel;
+class Config_DataModelReader;
 
 /**
 * \ingroup GUI
@@ -180,6 +181,8 @@ Q_OBJECT
   /// Resets the object browser into initial state
   void clearContent();
 
+  void setXMLReader(Config_DataModelReader* theReader);
+
 public slots:
   //! Called on Edit command request
   void onEditItem();
@@ -206,6 +209,10 @@ signals:
   //! Called when selection in Data Tree is changed
   void onSelectionChanged(const QItemSelection& theSelected, const QItemSelection& theDeselected);
 
+  void onBeforeReset();
+
+  void onAfterModelReset();
+
  private:
   QModelIndexList expandedItems(const QModelIndex& theParent = QModelIndex()) const;
 
@@ -213,6 +220,9 @@ signals:
   XGUI_DataModel* myDocModel;
   XGUI_ActiveDocLbl* myActiveDocLbl;
   XGUI_DataTree* myTreeView;
+
+  /// A field to store expanded items before model reset
+  QModelIndexList myExpandedItems;
 };
 
 #endif