20 #ifndef DEPENDENCYTREE_VIEW_H
21 #define DEPENDENCYTREE_VIEW_H
28 #include <GraphicsView_ViewPort.h>
29 #include <GraphicsView_ViewFrame.h>
31 #include <SalomeApp_Application.h>
34 #include <QPushButton>
56 void init( GraphicsView_ViewFrame* );
57 void updateModel(
bool =
true,
bool =
true );
59 void mouseMoveEvent(QMouseEvent* event);
60 void wheelEvent( QWheelEvent* event );
62 QString getViewName()
const;
68 void onRebuildModel();
72 void resizeEvent( QResizeEvent *event );
77 void onMoveNodes(
bool );
78 void onHierarchyType();
79 void onPreferenceChanged(
const QString&,
const QString& );
80 void onRenameObject(
const QString& theEntry );
88 void addNode(
const std::string& );
93 std::map<
int, std::vector< std::string > >&,
int,
const int );
97 void clearView(
bool );
101 int checkMaxLevelsNumber();
103 void getNewTreeModel(
bool =
true,
bool =
true );
105 void setHierarchyType(
const int );
106 void setNodesMovable(
const bool );
107 void setPrefBackgroundColor(
const QColor& );
108 void setNodeColor(
const QColor& );
109 void setMainNodeColor(
const QColor& );
110 void setUnpublishNodeColor(
const QColor& );
111 void setSelectNodeColor(
const QColor& );
112 void setArrowColor(
const QColor& );
113 void setHighlightArrowColor(
const QColor& );
114 void setSelectArrowColor(
const QColor& );
#define DEPENDENCYTREE_EXPORT
Definition: DependencyTree.h:30
std::map< std::pair< DependencyTree_Object *, DependencyTree_Object * >, DependencyTree_Arrow * > ArrowsInfo
Definition: DependencyTree_View.h:45
std::map< std::string, DependencyTree_Object * > EntryObjectMap
Definition: DependencyTree_View.h:42
Definition: DependencyTree_Arrow.h:30
Definition: DependencyTree_Object.h:34
Definition: DependencyTree_View.h:48
int myMaxUpwardLevelsNumber
Definition: DependencyTree_View.h:123
bool myIsUpdate
Definition: DependencyTree_View.h:134
LightApp_SelectionMgr * mySelectionMgr
Definition: DependencyTree_View.h:131
GEOMUtils::TreeModel myTreeModel
Definition: DependencyTree_View.h:116
ArrowsInfo myArrows
Definition: DependencyTree_View.h:119
QSpinBox * myHierarchyDepth
Definition: DependencyTree_View.h:126
QCheckBox * myDisplayDescendants
Definition: DependencyTree_View.h:128
int myMaxDownwardLevelsNumber
Definition: DependencyTree_View.h:122
QCheckBox * myDisplayAscendants
Definition: DependencyTree_View.h:127
QCheckBox * myNodesMovable
Definition: DependencyTree_View.h:125
QPushButton * updateButton
Definition: DependencyTree_View.h:129
EntryObjectMap myTreeMap
Definition: DependencyTree_View.h:118
GEOM::string_array_var myMainEntries
Definition: DependencyTree_View.h:132
int myLevelsNumber
Definition: DependencyTree_View.h:121
std::map< std::string, std::pair< LevelsList, LevelsList > > TreeModel
Definition: GEOMUtils.hxx:71
std::vector< LevelInfo > LevelsList
Definition: GEOMUtils.hxx:70