20 #ifndef GEOMGUI_TEXTTREEWDG_H
21 #define GEOMGUI_TEXTTREEWDG_H
29 #include <QSharedPointer>
30 #include <QTreeWidget>
32 #include <SALOMEDSClient.hxx>
38 class SalomeApp_Application;
39 class SalomeApp_Study;
59 void removeBranch(
const BranchType& theBranchType,
const QString& theEntry,
63 QTreeWidgetItem* itemFromEntry(
const BranchType& theBranchType, QString theEntry );
64 void setAllShapeItemsVisibility(
const BranchType& theBranchType,
65 const QString& theEntry,
66 const bool theVisibility );
67 void setShapeItemVisibility(
const BranchType& theBranchType,
68 const QString& theEntry,
70 const bool theVisibility );
71 void updateVisibility();
73 void getSelected( QMap<QString, QList<int> >& theAnnotations );
74 void setSelected(
const QMap<QString, QList<int> >& theAnnotations );
76 QList<QString> getAllEntries(
const BranchType& theBranchType );
78 QString getSingleSelectedObject();
82 void redisplay( QString theEntry );
86 void updateBranches(
const QString& theEntry );
87 void updateDimensionBranch(
const QString& theEntry );
88 void updateAnnotationBranch(
const QString& theEntry );
89 void updateObjectName(
const QString& theEntry );
92 void onUpdateVisibilityColumn( QString theEntry, Qtx::VisibilityState theState );
95 void showContextMenu(
const QPoint& pos );
107 virtual QString
GetName(
const int theIndex ) = 0;
109 virtual void SetIsVisible(
const int theIndex,
const bool theIsVisible ) = 0;
114 bool setShapeItemVisibility( QSharedPointer<VisualProperty>& theProps,
116 const bool theVisibility );
117 QSharedPointer<VisualProperty> getVisualProperty(
const BranchType& theBranchType,
118 SalomeApp_Study* theStudy,
119 const std::string& theEntry );
120 void fillBranch(
const BranchType& theBranchType,
121 const QString& theEntry );
122 void updateVisibilityColumn(
const BranchType& theBranchType,
124 Qtx::VisibilityState theState );
126 QHash<QString, QTreeWidgetItem*>& getObjects(
const BranchType& theBranchType );
#define GEOMGUI_EXPORT
Definition: GEOM_GEOMGUI.hxx:36
Common interface for working with shape dimension and annotation properties of object in a unified wa...
Definition: GEOMGUI_TextTreeWdg.h:104
virtual bool GetIsVisible(const int theIndex)=0
virtual QString GetName(const int theIndex)=0
virtual int GetNumber()=0
virtual void SetIsVisible(const int theIndex, const bool theIsVisible)=0
Tree view contains Dimension and Annotation text items:
Definition: GEOMGUI_TextTreeWdg.h:47
QHash< QString, QTreeWidgetItem * > myDimensionObjects
Definition: GEOMGUI_TextTreeWdg.h:134
QIcon myInvisibleIcon
Definition: GEOMGUI_TextTreeWdg.h:133
int myWindowID
Definition: GEOMGUI_TextTreeWdg.h:131
BranchType
Definition: GEOMGUI_TextTreeWdg.h:51
GEOM_Displayer myDisplayer
Definition: GEOMGUI_TextTreeWdg.h:139
QTreeWidgetItem * myAnnotationsItem
Definition: GEOMGUI_TextTreeWdg.h:138
SalomeApp_Study * myStudy
Definition: GEOMGUI_TextTreeWdg.h:136
int getWinID()
Definition: GEOMGUI_TextTreeWdg.h:57
QHash< QString, QTreeWidgetItem * > myAnnotationObjects
Definition: GEOMGUI_TextTreeWdg.h:135
QMap< int, QAction * > myActions
menu actions list
Definition: GEOMGUI_TextTreeWdg.h:140
QTreeWidgetItem * myDimensionsItem
Definition: GEOMGUI_TextTreeWdg.h:137
QIcon myVisibleIcon
Definition: GEOMGUI_TextTreeWdg.h:132
Definition: GEOM_Displayer.h:72