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

SoQtMouse.h
1 #ifndef SOQT_MOUSE_H
2 #define SOQT_MOUSE_H
3 
4 // src/Inventor/Qt/devices/SoQtMouse.h. Generated from SoGuiMouse.h.in by configure.
5 
6 /**************************************************************************\
7  *
8  * This file is part of the Coin 3D visualization library.
9  * Copyright (C) by Kongsberg Oil & Gas Technologies.
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * ("GPL") version 2 as published by the Free Software Foundation.
14  * See the file LICENSE.GPL at the root directory of this source
15  * distribution for additional information about the GNU GPL.
16  *
17  * For using Coin with software that can not be combined with the GNU
18  * GPL, and for taking advantage of the additional benefits of our
19  * support services, please contact Kongsberg Oil & Gas Technologies
20  * about acquiring a Coin Professional Edition License.
21  *
22  * See http://www.coin3d.org/ for more information.
23  *
24  * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
25  * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
26  *
27 \**************************************************************************/
28 
29 #include <Inventor/Qt/devices/SoQtDevice.h>
30 
31 class SoMouseButtonEvent;
32 class SoLocation2Event;
33 
34 // *************************************************************************
35 
36 class SOQT_DLL_API SoQtMouse : public SoQtDevice {
37  SOQT_OBJECT_HEADER(SoQtMouse, SoQtDevice);
38 
39 public:
40  enum Events {
41  BUTTON_PRESS = 0x01,
42  BUTTON_RELEASE = 0x02,
43  POINTER_MOTION = 0x04,
44  BUTTON_MOTION = 0x08,
45 
46  ALL_EVENTS = BUTTON_PRESS | BUTTON_RELEASE | POINTER_MOTION | BUTTON_MOTION
47  };
48 
49  SoQtMouse(int eventmask = ALL_EVENTS);
50  virtual ~SoQtMouse(void);
51 
52  virtual void enable(QWidget * widget, SoQtEventHandler * handler, void * closure);
53  virtual void disable(QWidget * widget, SoQtEventHandler * handler, void * closure);
54 
55  virtual const SoEvent * translateEvent(QEvent * event);
56 
57 private:
58  class SoQtMouseP * pimpl;
59  friend class SoQtMouseP;
60  friend class SoGuiMouseP;
61 };
62 
63 // *************************************************************************
64 
65 #endif // ! SOQT_MOUSE_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Fri Aug 3 2012 for SoQt by Doxygen 1.8.1.1.