![]() |
http://www.coin3d.org/ http://www.kongsberg.com/kogt/ |
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 * Copyright (c) Kongsberg Oil & Gas Technologies AS 00008 * All rights reserved. 00009 * 00010 * Redistribution and use in source and binary forms, with or without 00011 * modification, are permitted provided that the following conditions are 00012 * met: 00013 * 00014 * Redistributions of source code must retain the above copyright notice, 00015 * this list of conditions and the following disclaimer. 00016 * 00017 * Redistributions in binary form must reproduce the above copyright 00018 * notice, this list of conditions and the following disclaimer in the 00019 * documentation and/or other materials provided with the distribution. 00020 * 00021 * Neither the name of the copyright holder nor the names of its 00022 * contributors may be used to endorse or promote products derived from 00023 * this software without specific prior written permission. 00024 * 00025 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00026 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00027 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00028 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00029 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00030 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00031 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00032 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00033 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00034 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00035 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00036 \**************************************************************************/ 00037 00038 #include <Inventor/Qt/devices/SoQtDevice.h> 00039 00040 class SoMouseButtonEvent; 00041 class SoLocation2Event; 00042 00043 // ************************************************************************* 00044 00045 class SOQT_DLL_API SoQtMouse : public SoQtDevice { 00046 SOQT_OBJECT_HEADER(SoQtMouse, SoQtDevice); 00047 00048 public: 00049 enum Events { 00050 BUTTON_PRESS = 0x01, 00051 BUTTON_RELEASE = 0x02, 00052 POINTER_MOTION = 0x04, 00053 BUTTON_MOTION = 0x08, 00054 00055 ALL_EVENTS = BUTTON_PRESS | BUTTON_RELEASE | POINTER_MOTION | BUTTON_MOTION 00056 }; 00057 00058 SoQtMouse(int eventmask = ALL_EVENTS); 00059 virtual ~SoQtMouse(void); 00060 00061 virtual void enable(QWidget * widget, SoQtEventHandler * handler, void * closure); 00062 virtual void disable(QWidget * widget, SoQtEventHandler * handler, void * closure); 00063 00064 virtual const SoEvent * translateEvent(QEvent * event); 00065 00066 private: 00067 class SoQtMouseP * pimpl; 00068 friend class SoQtMouseP; 00069 friend class SoGuiMouseP; 00070 }; 00071 00072 // ************************************************************************* 00073 00074 #endif // ! SOQT_MOUSE_H
Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Mar 2 2016 19:40:11 for SoQt by Doxygen 1.7.3.