1 // File : SUPERVGraph_Graph.h
2 // Created : 17 / 10 / 2001
3 // Author : Francis KLOSS
5 // Module : SUPERVGraph
6 // Copyright : Open CASCADE
8 #ifndef SUPERVGraph_Graph_HXX
9 #define SUPERVGraph_Graph_HXX
12 #include "QAD_Popup.h"
14 #include <qscrollview.h>
15 #include <qpopupmenu.h>
17 class QAD_EXPORT SUPERVGraph_Graph: public QScrollView, public QAD_PopupClientServer
22 SUPERVGraph_Graph(QWidget* parent);
25 /* popup management */
29 void contentsMousePressEvent(QMouseEvent* e);
30 void contentsMouseReleaseEvent(QMouseEvent* e);
31 void contentsMouseMoveEvent(QMouseEvent* e);
36 void Draw(int x, int y);
41 void showInformation();
42 void changeInformation();
45 void onChangeBackgroundColor();
48 bool eventFilter(QObject* object, QEvent* event);
51 // SUPERVGraph_Point* findPoint(int x, int y);
52 float distance(int xp, int yp, int xl, int yl, int xn, int yn);
54 // SUPERVGraph_Main* main;