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 contentsMousePressEvent(QMouseEvent* theEvent);
42 void contentsMouseMoveEvent(QMouseEvent* theEvent);
43 void contentsMouseReleaseEvent(QMouseEvent* theEvent);
45 SUPERVGUI_Main* myMain;
53 bool myIsPanActivated;
57 class SUPERVGUI_ToolTip: public QToolTip {
60 SUPERVGUI_ToolTip(QWidget* theWidget, QToolTipGroup* theGroup = 0):
61 QToolTip(theWidget, theGroup) {}
62 ~SUPERVGUI_ToolTip() { remove(parentWidget()); }
64 virtual void maybeTip(const QPoint& theP);