X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_DataModel.h;h=df3984e58e6bf49acb238e5f22ec504b147d7068;hb=1035d41ad342fb22f5ea2552a8fc135aed95f3b8;hp=54181442184d8f54ec59b3a3adcd3eaf808a76b7;hpb=a9e4de1c34c1667e7fe625b24d16e682b64eb076;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_DataModel.h b/src/XGUI/XGUI_DataModel.h index 541814421..df3984e58 100644 --- a/src/XGUI/XGUI_DataModel.h +++ b/src/XGUI/XGUI_DataModel.h @@ -154,14 +154,23 @@ public: /// \param theIndex an index to check bool hasIndex(const QModelIndex& theIndex) const; + /// Returns true if the given node is a parto of the data tree + /// \param theNode a node to check + bool hasNode(ModuleBase_ITreeNode* theNode) const; + + /// Returns document of the given index + /// \param theIndex an index to check DocumentPtr document(const QModelIndex& theIndex) const; + /// Returns index for the node and column + /// \param theNode a node + /// \param thCol a column QModelIndex getIndex(ModuleBase_ITreeNode* theNode, int thCol) const; signals: + /// Signal send before tree rebuild void beforeTreeRebuild(); - /// Signal about tree had been rebuilt void treeRebuilt();