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>
44 typedef std::map<std::string,DependencyTree_Object*>
EntryObjectMap;
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;
63 int getStudyId()
const;
69 void onRebuildModel();
73 void resizeEvent( QResizeEvent *event );
78 void onMoveNodes(
bool );
79 void onHierarchyType();
80 void onPreferenceChanged(
const QString&,
const QString& );
81 void onRenameObject(
const QString& theEntry );
89 void addNode(
const std::string& );
94 std::map<
int, std::vector< std::string > >&,
int,
const int );
98 void clearView(
bool );
102 int checkMaxLevelsNumber();
104 void getNewTreeModel(
bool =
true,
bool =
true );
106 void setHierarchyType(
const int );
107 void setNodesMovable(
const bool );
108 void setPrefBackgroundColor(
const QColor& );
109 void setNodeColor(
const QColor& );
110 void setMainNodeColor(
const QColor& );
111 void setUnpublishNodeColor(
const QColor& );
112 void setSelectNodeColor(
const QColor& );
113 void setArrowColor(
const QColor& );
114 void setHighlightArrowColor(
const QColor& );
115 void setSelectArrowColor(
const QColor& );