class ModuleBase_IDocumentDataModel;
class XGUI_DataModel;
+class Config_DataModelReader;
/**
* \ingroup GUI
/// Resets the object browser into initial state
void clearContent();
+ void setXMLReader(Config_DataModelReader* theReader);
+
public slots:
//! Called on Edit command request
void onEditItem();
//! 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;
XGUI_DataModel* myDocModel;
XGUI_ActiveDocLbl* myActiveDocLbl;
XGUI_DataTree* myTreeView;
+
+ /// A field to store expanded items before model reset
+ QModelIndexList myExpandedItems;
};
#endif