![]() |
http://www.sim.no http://www.coin3d.org |
00001 #ifndef SOQT_KEYBOARD_H 00002 #define SOQT_KEYBOARD_H 00003 00004 // src/Inventor/Qt/devices/SoQtKeyboard.h. Generated from SoGuiKeyboard.h.in by configure. 00005 00006 /**************************************************************************\ 00007 * 00008 * This file is part of the Coin 3D visualization library. 00009 * Copyright (C) by Kongsberg Oil & Gas Technologies. 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 Kongsberg Oil & Gas Technologies 00020 * about acquiring a Coin Professional Edition License. 00021 * 00022 * See http://www.coin3d.org/ for more information. 00023 * 00024 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00025 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00026 * 00027 \**************************************************************************/ 00028 00029 #include <Inventor/Qt/devices/SoQtDevice.h> 00030 00031 class SoKeyboardEvent; 00032 00033 // ************************************************************************* 00034 00035 #define SO_QT_ALL_KEYBOARD_EVENTS SoQtKeyboard::ALL 00036 00037 class SOQT_DLL_API SoQtKeyboard : public SoQtDevice { 00038 SOQT_OBJECT_HEADER(SoQtKeyboard, SoQtDevice); 00039 00040 public: 00041 enum Events { 00042 KEY_PRESS = 0x01, 00043 KEY_RELEASE = 0x02, 00044 ALL_EVENTS = KEY_PRESS | KEY_RELEASE 00045 }; 00046 00047 SoQtKeyboard(int eventmask = ALL_EVENTS); 00048 virtual ~SoQtKeyboard(void); 00049 00050 virtual void enable(QWidget * widget, SoQtEventHandler * handler, void * closure); 00051 virtual void disable(QWidget * widget, SoQtEventHandler * handler, void * closure); 00052 00053 virtual const SoEvent * translateEvent(QEvent * event); 00054 00055 private: 00056 class SoQtKeyboardP * pimpl; 00057 friend class SoQtKeyboardP; 00058 friend class SoGuiKeyboardP; 00059 }; 00060 00061 // ************************************************************************* 00062 00063 #endif // ! SOQT_KEYBOARD_H
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Mon Dec 26 2011 20:28:35 for SoQt by Doxygen 1.7.6.1.