Salome HOME
Move MakeBrick*.py to examples module for availability for testing.
[modules/shaper.git] / src / ModuleBase / ModuleBase_IDocumentDataModel.h
index b18866eeae01c1bdd238d0cc1449ffb053360b77..aecb0152f5a183e95e71d003e414058963092176 100644 (file)
@@ -16,7 +16,7 @@ class MODULEBASE_EXPORT ModuleBase_IDocumentDataModel : public QAbstractItemMode
 {
 Q_OBJECT
 public:
-  ModuleBase_IDocumentDataModel(QObject* theParent): QAbstractItemModel(theParent) {}
+  ModuleBase_IDocumentDataModel(QObject* theParent);
 
   //! Returns an object by the given Model index.
   //! Returns 0 if the given index is not index of an object
@@ -27,10 +27,14 @@ public:
   virtual QModelIndex objectIndex(const ObjectPtr theObject) const = 0;
 
   //! Clear internal data
-  virtual void clear() {}
+  virtual void clear();
 
   //! Rebuild data tree
-  virtual void rebuildDataTree() {}
+  virtual void rebuildDataTree();
+
+  /// Returns last history object index
+  virtual QModelIndex lastHistoryIndex() const { return QModelIndex(); }
+
 };
 
 #endif
\ No newline at end of file