1 #ifndef _WINDOWS_IMGRAPH_HEADER_
2 #define _WINDOWS_IMGRAPH_HEADER_
6 #pragma warning(disable:4996 4244 4251 4275 4800 4503)
8 #include <QGraphicsView>
9 #include <QResizeEvent>
18 #include <QMainWindow>
21 #include <QPainterPath>
22 #include <QTreeWidget>
35 class VertexRepresentation;
36 class GroupParamRepresentation;
44 virtual void mousePressEvent(QMouseEvent *);
52 QVector<QAction*> vect_QActions;
55 bool eventFilter(QObject *obj, QEvent *event);
57 void createToolbar(QToolBar* toolBar);
59 static Window* getInstance();
60 static void releaseInstance();
61 static void synchroMainGraph();
66 void setStatusMessage(QString msg){
67 statusBar()->showMessage(msg);
71 std::string getKey(QTreeWidgetItem* w) {
72 try{
return keysName_.at(w); }
73 catch (std::out_of_range){
return ""; };
78 bool event(QEvent *event);
80 bool consumeEvent(QEvent *event);
82 void showListAlgoDock(
bool listOfAlgo);
94 QTabWidget* _tabWidget;
98 QDockWidget * _property_dock;
100 std::vector<QTreeWidgetItem *> dock_categories;
101 std::map<QTreeWidgetItem*, std::string> keysName_;
103 void fillDock(
int idDock);
105 void closeEvent(QCloseEvent *event);
114 void saveAsProject();
115 void createSubgraph();
121 void closeTab_(
int index)
125 delete _tabWidget->widget(index);
Definition: VertexRepresentation.h:79
Definition: GraphicView.h:84