virtual ~XGUI_DocumentDataModel();
// Event Listener method
- virtual void processEvent(const boost::shared_ptr<Events_Message>& theMessage);
+ virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
virtual QVariant data(const QModelIndex& theIndex, int theRole) const;
virtual QVariant headerData(int theSection, Qt::Orientation theOrient, int theRole =
void rebuildDataTree();
+ //! Clear internal data
+ void clear();
+
+
private:
enum
//! Deletes all saved pointers on QModelIndex objects.
void clearModelIndexes();
+ //! Deletes all saved pointers on QModelIndex objects.
+ void clearSubModels();
+
//! Removes sub-model on removing a part object. Also it removes QModelIndex-es which refer to this model
void removeSubModel(int theModelId);