Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #3120: Show Empty panel if selection doesn't contain a shape
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_DataModel.h
diff --git
a/src/XGUI/XGUI_DataModel.h
b/src/XGUI/XGUI_DataModel.h
index 54181442184d8f54ec59b3a3adcd3eaf808a76b7..df3984e58e6bf49acb238e5f22ec504b147d7068 100644
(file)
--- 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;
/// \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;
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:
QModelIndex getIndex(ModuleBase_ITreeNode* theNode, int thCol) const;
signals:
+ /// Signal send before tree rebuild
void beforeTreeRebuild();
void beforeTreeRebuild();
-
/// Signal about tree had been rebuilt
void treeRebuilt();
/// Signal about tree had been rebuilt
void treeRebuilt();