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

SoQtKeyboard.h
1 #ifndef SOQT_KEYBOARD_H
2 #define SOQT_KEYBOARD_H
3 
4 // src/Inventor/Qt/devices/SoQtKeyboard.h. Generated from SoGuiKeyboard.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 SoKeyboardEvent;
32 
33 // *************************************************************************
34 
35 #define SO_QT_ALL_KEYBOARD_EVENTS SoQtKeyboard::ALL
36 
37 class SOQT_DLL_API SoQtKeyboard : public SoQtDevice {
38  SOQT_OBJECT_HEADER(SoQtKeyboard, SoQtDevice);
39 
40 public:
41  enum Events {
42  KEY_PRESS = 0x01,
43  KEY_RELEASE = 0x02,
44  ALL_EVENTS = KEY_PRESS | KEY_RELEASE
45  };
46 
47  SoQtKeyboard(int eventmask = ALL_EVENTS);
48  virtual ~SoQtKeyboard(void);
49 
50  virtual void enable(QWidget * widget, SoQtEventHandler * handler, void * closure);
51  virtual void disable(QWidget * widget, SoQtEventHandler * handler, void * closure);
52 
53  virtual const SoEvent * translateEvent(QEvent * event);
54 
55 private:
56  class SoQtKeyboardP * pimpl;
57  friend class SoQtKeyboardP;
58  friend class SoGuiKeyboardP;
59 };
60 
61 // *************************************************************************
62 
63 #endif // ! SOQT_KEYBOARD_H
The SoQtDevice class is the base class for the translation devices.The SoQt device classes provide gl...
Definition: SoQtDevice.h:64
Events
Definition: SoQtKeyboard.h:41
virtual const SoEvent * translateEvent(QEvent *event)=0
virtual void disable(QWidget *w, SoQtEventHandler *handler, void *closure)=0
virtual void enable(QWidget *w, SoQtEventHandler *handler, void *closure)=0
The SoQtKeyboard class is the keyboard input device abstraction.The SoQtKeyboard class is the glue be...
Definition: SoQtKeyboard.h:37

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

Generated on Sun Mar 6 2016 for SoQt by Doxygen 1.8.11.