Coin Logo http://www.sim.no
http://www.coin3d.org

SoQtMouse.h

00001 #ifndef SOQT_MOUSE_H
00002 #define SOQT_MOUSE_H
00003 
00004 // src/Inventor/Qt/devices/SoQtMouse.h.  Generated from SoGuiMouse.h.in by configure.
00005 
00006 /**************************************************************************\
00007  *
00008  *  This file is part of the Coin 3D visualization library.
00009  *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
00010  *
00011  *  This library is free software; you can redistribute it and/or
00012  *  modify it under the terms of the GNU General Public License
00013  *  ("GPL") version 2 as published by the Free Software Foundation.
00014  *  See the file LICENSE.GPL at the root directory of this source
00015  *  distribution for additional information about the GNU GPL.
00016  *
00017  *  For using Coin with software that can not be combined with the GNU
00018  *  GPL, and for taking advantage of the additional benefits of our
00019  *  support services, please contact Systems in Motion about acquiring
00020  *  a Coin Professional Edition License.
00021  *
00022  *  See <URL:http://www.coin3d.org/> for more information.
00023  *
00024  *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
00025  *  <URL:http://www.sim.no/>.
00026  *
00027 \**************************************************************************/
00028 
00029 #include <Inventor/Qt/devices/SoQtDevice.h>
00030 
00031 class SoMouseButtonEvent;
00032 class SoLocation2Event;
00033 
00034 // *************************************************************************
00035 
00036 class SOQT_DLL_API SoQtMouse : public SoQtDevice {
00037   SOQT_OBJECT_HEADER(SoQtMouse, SoQtDevice);
00038 
00039 public:
00040   enum Events {
00041     BUTTON_PRESS    = 0x01,
00042     BUTTON_RELEASE  = 0x02,
00043     POINTER_MOTION  = 0x04,
00044     BUTTON_MOTION   = 0x08,
00045 
00046     ALL_EVENTS = BUTTON_PRESS | BUTTON_RELEASE | POINTER_MOTION | BUTTON_MOTION
00047   };
00048 
00049   SoQtMouse(int eventmask = ALL_EVENTS);
00050   virtual ~SoQtMouse(void);
00051 
00052   virtual void enable(QWidget * widget, SoQtEventHandler * handler, void * closure);
00053   virtual void disable(QWidget * widget, SoQtEventHandler * handler, void * closure);
00054 
00055   virtual const SoEvent * translateEvent(QEvent * event);
00056 
00057 private:
00058   class SoQtMouseP * pimpl;
00059   friend class SoQtMouseP;
00060   friend class SoGuiMouseP;
00061 };
00062 
00063 // *************************************************************************
00064 
00065 #endif // ! SOQT_MOUSE_H

Copyright © 1998-2005 by Systems in Motion AS. All rights reserved.

Generated on Thu May 21 04:45:45 2009 for SoQt by Doxygen. 1.5.9