~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to build/msvc7/src/Inventor/Qt/devices/SoQtKeyboard.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2006-02-06 22:34:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060206223400-g69m5soqa4zh0gkc
Tags: 1.3.0-3
debian/control: update libsoqt-dev depends.  Closes: #351700.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************\
 
2
 *
 
3
 *  This file is part of the Coin 3D visualization library.
 
4
 *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
 
5
 *
 
6
 *  This library is free software; you can redistribute it and/or
 
7
 *  modify it under the terms of the GNU General Public License
 
8
 *  ("GPL") version 2 as published by the Free Software Foundation.
 
9
 *  See the file LICENSE.GPL at the root directory of this source
 
10
 *  distribution for additional information about the GNU GPL.
 
11
 *
 
12
 *  For using Coin with software that can not be combined with the GNU
 
13
 *  GPL, and for taking advantage of the additional benefits of our
 
14
 *  support services, please contact Systems in Motion about acquiring
 
15
 *  a Coin Professional Edition License.
 
16
 *
 
17
 *  See <URL:http://www.coin3d.org/> for more information.
 
18
 *
 
19
 *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
 
20
 *  <URL:http://www.sim.no/>.
 
21
 *
 
22
\**************************************************************************/
 
23
 
 
24
#ifndef SOQT_KEYBOARD_H
 
25
#define SOQT_KEYBOARD_H
 
26
 
 
27
#include <Inventor/Qt/devices/SoQtDevice.h>
 
28
 
 
29
class SoKeyboardEvent;
 
30
 
 
31
// *************************************************************************
 
32
 
 
33
#define SO_QT_ALL_KEYBOARD_EVENTS SoQtKeyboard::ALL
 
34
 
 
35
class SOQT_DLL_API SoQtKeyboard : public SoQtDevice {
 
36
  SOQT_OBJECT_HEADER(SoQtKeyboard, SoQtDevice);
 
37
 
 
38
public:
 
39
  enum Events {
 
40
    KEY_PRESS = 0x01,
 
41
    KEY_RELEASE = 0x02,
 
42
    ALL_EVENTS = KEY_PRESS | KEY_RELEASE
 
43
  };
 
44
 
 
45
  SoQtKeyboard(int eventmask = ALL_EVENTS);
 
46
  virtual ~SoQtKeyboard(void);
 
47
 
 
48
  virtual void enable(QWidget * widget, SoQtEventHandler * handler, void * closure);
 
49
  virtual void disable(QWidget * widget, SoQtEventHandler * handler, void * closure);
 
50
 
 
51
  virtual const SoEvent * translateEvent(QEvent * event);
 
52
 
 
53
private:
 
54
  class SoQtKeyboardP * pimpl;
 
55
  friend class SoQtKeyboardP;
 
56
  friend class SoGuiKeyboardP;
 
57
};
 
58
 
 
59
// *************************************************************************
 
60
 
 
61
#endif // ! SOQT_KEYBOARD_H