- Timestamp:
- Jan 25, 2008, 2:51:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh
r688 r696 55 55 class QImage; 56 56 class QAction; 57 class QMouseEvent; 58 class QKeyEvent; 57 59 58 60 class G4OpenGLSceneHandler; … … 78 80 void G4MouseDoubleClickEvent(QPoint p); 79 81 #if QT_VERSION < 0x040000 80 void G4Mouse MoveEvent(int, int, Qt::ButtonState);82 void G4MouseEvent(int, int, Qt::ButtonState); 81 83 #else 82 void G4Mouse MoveEvent(int, int, Qt::MouseButtons);84 void G4MouseEvent(int, int, Qt::MouseButtons); 83 85 #endif 86 void G4MouseRotateEvent(int, int); 87 void G4MouseMoveEvent(int, int, int); 88 void G4keyPressEvent (QKeyEvent * event); 84 89 85 90 … … 103 108 QMenu *fContextMenu; 104 109 #endif 105 enum mouseActions { ROTATE, MOVE, ZOOM, PICK};110 enum mouseActions {STYLE1,STYLE2,STYLE3,STYLE4}; 106 111 mouseActions fMouseAction; // 1: rotate 0:move 107 QPoint lastPos; 112 QPoint fLastPos; 113 /* delta of scene translation. This delta is put in % of the scene view */ 114 float fDeltaSceneTranslation; 115 /* delta of left right move. This delta is put in % of the scene view */ 116 float fDeltaZoom; 117 108 118 #if QT_VERSION < 0x040000 109 119 QPopupMenu *fMouseRotate;
Note: See TracChangeset
for help on using the changeset viewer.