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 );
106 virtual int GetNumber() = 0;
107 virtual QString GetName(
const int theIndex ) = 0;
108 virtual bool GetIsVisible(
const int theIndex ) = 0;
109 virtual void SetIsVisible(
const int theIndex,
const bool theIsVisible ) = 0;
110 virtual void Save() = 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 );