1 // SUPERV SUPERVGUI : GUI for Supervisor component
3 // Copyright (C) 2003 OPEN CASCADE
5 // File : SUPERVGUI_ArrayView.h
9 #ifndef SUPERVGUI_ArrayView_H
10 #define SUPERVGUI_ArrayView_H
12 #include "SUPERVGUI_CanvasArray.h"
13 #include <qpopupmenu.h>
16 //VRV: porting on Qt 3.0.5
17 #if QT_VERSION >= 0x030005
20 //VRV: porting on Qt 3.0.5
24 class SUPERVGUI_ArrayView: public QCanvasView {
28 SUPERVGUI_ArrayView(SUPERVGUI_CanvasArray* theArray, SUPERVGUI_Main* theMain);
29 virtual ~SUPERVGUI_ArrayView();
31 SUPERVGUI_Main* getMain() const { return myMain; }
33 void ActivatePanning();
38 void changeBackground();
41 void resizeEvent( QResizeEvent* e);
44 void contentsMousePressEvent(QMouseEvent* theEvent);
45 void contentsMouseMoveEvent(QMouseEvent* theEvent);
46 void contentsMouseReleaseEvent(QMouseEvent* theEvent);
48 SUPERVGUI_Main* myMain;
56 bool myIsPanActivated;
60 class SUPERVGUI_ToolTip: public QToolTip {
63 SUPERVGUI_ToolTip(QWidget* theWidget, QToolTipGroup* theGroup = 0):
64 QToolTip(theWidget, theGroup) {}
65 ~SUPERVGUI_ToolTip() { remove(parentWidget()); }
67 virtual void maybeTip(const QPoint& theP);