Ignore:
Timestamp:
Jan 11, 2008, 3:44:33 PM (16 years ago)
Author:
garnier
Message:

modifs de test pour rubberband et mise en place du button mouse zoom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r673 r678  
    103103  QMenu *fContextMenu;
    104104#endif
    105   bool fMouseAction; // 1: rotate 0:move
     105  enum mouseActions {ROTATE, MOVE, ZOOM};
     106  mouseActions fMouseAction; // 1: rotate 0:move
    106107  QPoint lastPos;
    107108#if QT_VERSION < 0x040000
     109  QPopupMenu *fMouseRotate;
     110  QPopupMenu *fMouseMove;
     111  QPopupMenu *fMouseZoom;
    108112  QPopupMenu *fDrawingWireframe;
    109113  QPopupMenu *fDrawingLineRemoval;
     
    111115  QPopupMenu *fDrawingLineSurfaceRemoval;
    112116#else
     117  QAction *fMouseRotate;
     118  QAction *fMouseMove;
     119  QAction *fMouseZoom;
    113120  QAction *fDrawingWireframe;
    114121  QAction *fDrawingLineRemoval;
     
    118125
    119126private slots :
     127  void actionMouseRotate();
     128  void actionMouseMove();
     129  void actionMouseZoom();
    120130  void actionDrawingWireframe();
    121131  void actionDrawingLineRemoval();
     
    127137
    128138  void toggleDrawingAction(int);
    129   void toggleMouseAction(bool);
     139  void toggleMouseAction(mouseActions);
    130140  void toggleRepresentation(bool);
    131141  void toggleBackground(bool);
Note: See TracChangeset for help on using the changeset viewer.