diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-10 15:17:53 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-10 15:17:53 -0500 |
commit | 37e3f157c7d76f13de807fa66e36df209e1005fb (patch) | |
tree | 7a4f131b2ee065337dac341bff34515310efba4f /experimental/tqtinterface/qt4/src/embedded | |
parent | 16630c3eff313238fa8412275555285c9195981b (diff) | |
download | tde-37e3f157c7d76f13de807fa66e36df209e1005fb.tar.gz tde-37e3f157c7d76f13de807fa66e36df209e1005fb.zip |
Added TQt4 HEAD
Diffstat (limited to 'experimental/tqtinterface/qt4/src/embedded')
4 files changed, 414 insertions, 0 deletions
diff --git a/experimental/tqtinterface/qt4/src/embedded/qt_embedded.pri b/experimental/tqtinterface/qt4/src/embedded/qt_embedded.pri new file mode 100644 index 000000000..5bdbdefd4 --- /dev/null +++ b/experimental/tqtinterface/qt4/src/embedded/qt_embedded.pri @@ -0,0 +1,192 @@ +# Qt/Embedded Drivers + +embedded { + EMBEDDED_P = embedded + + HEADERS += $$EMBEDDED_P/tqgfxdriverinterface_p.h \ + $$EMBEDDED_H/tqgfxdriverplugin_qws.h \ + $$EMBEDDED_H/tqgfxdriverfactory_qws.h \ + $$EMBEDDED_H/tqkbd_qws.h \ + $$EMBEDDED_P/tqkbddriverinterface_p.h \ + $$EMBEDDED_H/tqkbddriverplugin_qws.h \ + $$EMBEDDED_H/tqkbddriverfactory_qws.h \ + $$EMBEDDED_H/tqmouse_qws.h \ + $$EMBEDDED_P/tqmousedriverinterface_p.h \ + $$EMBEDDED_H/tqmousedriverplugin_qws.h \ + $$EMBEDDED_H/tqmousedriverfactory_qws.h + + SOURCES += $$EMBEDDED_CPP/tqgfxdriverplugin_qws.cpp \ + $$EMBEDDED_CPP/tqgfxdriverfactory_qws.cpp \ + $$EMBEDDED_CPP/tqkbd_qws.cpp \ + $$EMBEDDED_CPP/tqkbddriverplugin_qws.cpp \ + $$EMBEDDED_CPP/tqkbddriverfactory_qws.cpp \ + $$EMBEDDED_CPP/tqmouse_qws.cpp \ + $$EMBEDDED_CPP/tqmousedriverplugin_qws.cpp \ + $$EMBEDDED_CPP/tqmousedriverfactory_qws.cpp + +# +# Graphics drivers +# + linux-* { + HEADERS += $$EMBEDDED_H/tqgfxlinuxfb_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxlinuxfb_qws.cpp + } + else:DEFINES += TQT_NO_QWS_LINUXFB + + tqcontains( gfx-drivers, qvfb ) { + HEADERS += $$EMBEDDED_H/tqgfxvfb_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxvfb_qws.cpp + } + else:DEFINES += TQT_NO_QWS_VFB + + tqcontains( gfx-drivers, vnc ) { + HEADERS += $$EMBEDDED_H/tqgfxvnc_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxvnc_qws.cpp + } + else:DEFINES += TQT_NO_QWS_VNC + + !tqcontains( DEFINES, TQT_NO_QWS_LINUXFB):tqcontains( gfx-drivers, vga16 ) { + HEADERS += $$EMBEDDED_H/tqgfxvga16_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxvga16_qws.cpp + } + else:DEFINES += TQT_NO_QWS_VGA16 + + tqcontains( gfx-drivers, transformed ) { + HEADERS += $$EMBEDDED_H/tqgfxtransformed_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxtransformed_qws.cpp + } + else:DEFINES += TQT_NO_QWS_TRANSFORMED + + tqcontains( gfx-drivers, snap ) { + exists( $(SCITECH)/include/snap/graphics.h) { + HEADERS += $$EMBEDDED_H/tqgfxsnap_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxsnap_qws.cpp + INCLUDEPATH += $(SCITECH)/include + debug:LIBS += -L$(SCITECH)/lib/debug/linux/gcc/x86/so -lpm + else:LIBS += -L$(SCITECH)/lib/release/linux/gcc/x86/so -lpm + } + else { + message("SciTech SNAP SDK is not properly set up! Please make sure the SCITECH") + message("environment variable is pointing to the SciTech SNAP SDK.") + error("Please fix and re-build the makefiles.") + } + } + else:DEFINES += TQT_NO_QWS_SNAP + + tqcontains( gfx-drivers, mach64 ) { + HEADERS += $$EMBEDDED_H/tqgfxmach64_qws.h \ + $$EMBEDDED_H/tqgfxmach64defs_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxmach64_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MACH64 + + tqcontains( gfx-drivers, voodoo ) { + HEADERS += $$EMBEDDED_H/tqgfxvoodoo_qws.h \ + $$EMBEDDED_H/tqgfxvoodoodefs_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxvoodoo_qws.cpp + } + else:DEFINES += TQT_NO_QWS_VOODOO3 + + tqcontains( gfx-drivers, matrox ) { + HEADERS += $$EMBEDDED_H/tqgfxmatrox_qws.h \ + $$EMBEDDED_H/tqgfxmatroxdefs_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxmatrox_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MATROX + + tqcontains( gfx-drivers, shadowfb ) { + HEADERS += $$EMBEDDED_H/tqgfxshadow_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxshadow_qws.cpp + } + else:DEFINES += TQT_NO_QWS_SHADOWFB + + tqcontains( gfx-drivers, repeater ) { + HEADERS += $$EMBEDDED_H/tqgfxrepeater_qws.h + SOURCES += $$EMBEDDED_CPP/tqgfxrepeater_qws.cpp + } + else:DEFINES += TQT_NO_QWS_REPEATER + +# +# Keyboard drivers +# + + tqcontains( kbd-drivers, sl5000 ) { + HEADERS +=$$EMBEDDED_H/tqkbdsl5000_qws.h + SOURCES +=$$EMBEDDED_CPP/tqkbdsl5000_qws.cpp + !tqcontains( kbd-drivers, tty ) { + kbd-drivers += tty + } + } + else:DEFINES += TQT_NO_QWS_KBD_SL5000 + + tqcontains( kbd-drivers, tty ) { + HEADERS +=$$EMBEDDED_H/tqkbdtty_qws.h + SOURCES +=$$EMBEDDED_CPP/tqkbdtty_qws.cpp + !tqcontains( kbd-drivers, pc101 ) { + kbd-drivers += pc101 + } + } + else:DEFINES += TQT_NO_QWS_KBD_TTY + + tqcontains( kbd-drivers, usb ) { + HEADERS +=$$EMBEDDED_H/tqkbdusb_qws.h + SOURCES +=$$EMBEDDED_CPP/tqkbdusb_qws.cpp + !tqcontains( kbd-drivers, pc101 ) { + kbd-drivers += pc101 + } + } + else:DEFINES += TQT_NO_QWS_KBD_USB + + tqcontains( kbd-drivers, pc101 ) { + HEADERS +=$$EMBEDDED_H/tqkbdpc101_qws.h + SOURCES +=$$EMBEDDED_CPP/tqkbdpc101_qws.cpp + } + else:DEFINES += TQT_NO_QWS_KBD_PC101 + + tqcontains( kbd-drivers, yopy ) { + HEADERS +=$$EMBEDDED_H/tqkbdyopy_qws.h + SOURCES +=$$EMBEDDED_CPP/tqkbdyopy_qws.cpp + } + else:DEFINES += TQT_NO_QWS_KBD_YOPY + + tqcontains( kbd-drivers, vr41xx ) { + HEADERS +=$$EMBEDDED_H/tqkbdvr41xx_qws.h + SOURCES +=$$EMBEDDED_CPP/tqkbdvr41xx_qws.cpp + } + else:DEFINES += TQT_NO_QWS_KBD_VR41 + +# +# Mouse drivers +# + + tqcontains( mouse-drivers, pc ) { + HEADERS +=$$EMBEDDED_H/tqmousepc_qws.h + SOURCES +=$$EMBEDDED_CPP/tqmousepc_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MOUSE_PC + + tqcontains( mouse-drivers, bus ) { + HEADERS +=$$EMBEDDED_H/tqmousebus_qws.h + SOURCES +=$$EMBEDDED_CPP/tqmousebus_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MOUSE_BUS + + tqcontains( mouse-drivers, linuxtp ) { + HEADERS +=$$EMBEDDED_H/tqmouselinuxtp_qws.h + SOURCES +=$$EMBEDDED_CPP/tqmouselinuxtp_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MOUSE_LINUXTP + + tqcontains( mouse-drivers, vr41xx ) { + HEADERS +=$$EMBEDDED_H/tqmousevr41xx_qws.h + SOURCES +=$$EMBEDDED_CPP/tqmousevr41xx_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MOUSE_VR41 + + tqcontains( mouse-drivers, yopy ) { + HEADERS +=$$EMBEDDED_H/tqmouseyopy_qws.h + SOURCES +=$$EMBEDDED_CPP/tqmouseyopy_qws.cpp + } + else:DEFINES += TQT_NO_QWS_MOUSE_YOPY +} + diff --git a/experimental/tqtinterface/qt4/src/embedded/tqgfxdriverinterface_p.h b/experimental/tqtinterface/qt4/src/embedded/tqgfxdriverinterface_p.h new file mode 100644 index 000000000..ed485053c --- /dev/null +++ b/experimental/tqtinterface/qt4/src/embedded/tqgfxdriverinterface_p.h @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** Definition of TQt/Embedded Graphics Driver Interface +** +** Created : 20020211 +** +** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA. +** +** This file is part of the kernel module of the TQt GUI Toolkit. +** +** This file may be used under the terms of the GNU General +** Public License versions 2.0 or 3.0 as published by the Free +** Software Foundation and appearing in the files LICENSE.GPL2 +** and LICENSE.GPL3 included in the packaging of this file. +** Alternatively you may (at your option) use any later version +** of the GNU General Public License if such license has been +** publicly approved by Trolltech ASA (or its successors, if any) +** and the KDE Free TQt Foundation. +** +** Please review the following information to ensure GNU General +** Public Licensing requirements will be met: +** http://trolltech.com/products/qt/licenses/licensing/opensource/. +** If you are unsure which license is appropriate for your use, please +** review the following information: +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview +** or contact the sales department at sales@trolltech.com. +** +** Licensees holding valid TQt Commercial licenses may use this file in +** accordance with the TQt Commercial License Agreement provided with +** the Software. +** +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted +** herein. +** +**********************************************************************/ + +#ifndef TQGFXDRIVERINTERFACE_P_H +#define TQGFXDRIVERINTERFACE_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the TQt API. This header file may +// change from version to version without notice, or even be +// removed. +// +// We mean it. +// +// + +#ifndef TQT_H +#include <private/tqcom_p.h> +#endif // TQT_H + +#ifndef TQT_NO_COMPONENT + +// {449EC6C6-DF3E-43E3-9E57-354A3D05AB34} +#ifndef IID_TQGfxDriver +#define IID_TQGfxDriver TQUuid( 0x449ec6c6, 0xdf3e, 0x43e3, 0x9e, 0x57, 0x35, 0x4a, 0x3d, 0x05, 0xab, 0x34) +#endif + +class TQScreen; + +struct TQ_EXPORT TQGfxDriverInterface : public TQFeatureListInterface +{ + virtual TQScreen* create( const TQString& driver, int displayId ) = 0; +}; + +#endif // TQT_NO_COMPONENT + +#endif // TQGFXDRIVERINTERFACE_P_H diff --git a/experimental/tqtinterface/qt4/src/embedded/tqkbddriverinterface_p.h b/experimental/tqtinterface/qt4/src/embedded/tqkbddriverinterface_p.h new file mode 100644 index 000000000..d7c8f1718 --- /dev/null +++ b/experimental/tqtinterface/qt4/src/embedded/tqkbddriverinterface_p.h @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** Definition of TQt/Embedded Keyboard Driver Interface +** +** Created : 20020218 +** +** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA. +** +** This file is part of the kernel module of the TQt GUI Toolkit. +** +** This file may be used under the terms of the GNU General +** Public License versions 2.0 or 3.0 as published by the Free +** Software Foundation and appearing in the files LICENSE.GPL2 +** and LICENSE.GPL3 included in the packaging of this file. +** Alternatively you may (at your option) use any later version +** of the GNU General Public License if such license has been +** publicly approved by Trolltech ASA (or its successors, if any) +** and the KDE Free TQt Foundation. +** +** Please review the following information to ensure GNU General +** Public Licensing requirements will be met: +** http://trolltech.com/products/qt/licenses/licensing/opensource/. +** If you are unsure which license is appropriate for your use, please +** review the following information: +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview +** or contact the sales department at sales@trolltech.com. +** +** Licensees holding valid TQt Commercial licenses may use this file in +** accordance with the TQt Commercial License Agreement provided with +** the Software. +** +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted +** herein. +** +**********************************************************************/ + +#ifndef TQKBDDRIVERINTERFACE_P_H +#define TQKBDDRIVERINTERFACE_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the TQt API. This header file may +// change from version to version without notice, or even be +// removed. +// +// We mean it. +// +// + +#ifndef TQT_H +#include <private/tqcom_p.h> +#endif // TQT_H + +#ifndef TQT_NO_COMPONENT + +// {C7C838EA-FC3E-4905-92AD-F479E81F1D02} +#ifndef IID_TQKbdDriver +#define IID_TQKbdDriver TQUuid( 0xc7c838ea, 0xfc3e, 0x4905, 0x92, 0xad, 0xf4, 0x79, 0xe8, 0x1f, 0x1d, 0x02) +#endif + +class TQWSKeyboardHandler; + +struct TQ_EXPORT TQKbdDriverInterface : public TQFeatureListInterface +{ + virtual TQWSKeyboardHandler* create( const TQString& driver, const TQString& tqdevice ) = 0; +}; + +#endif // TQT_NO_COMPONENT + +#endif // TQKBDDRIVERINTERFACE_P_H diff --git a/experimental/tqtinterface/qt4/src/embedded/tqmousedriverinterface_p.h b/experimental/tqtinterface/qt4/src/embedded/tqmousedriverinterface_p.h new file mode 100644 index 000000000..be8d2e1e1 --- /dev/null +++ b/experimental/tqtinterface/qt4/src/embedded/tqmousedriverinterface_p.h @@ -0,0 +1,74 @@ +/**************************************************************************** +** +** Definition of TQt/Embedded Mouse Driver Interface +** +** Created : 20020220 +** +** Copyright (C) 2010 Timothy Pearson and (C) 1992-2008 Trolltech ASA. +** +** This file is part of the kernel module of the TQt GUI Toolkit. +** +** This file may be used under the terms of the GNU General +** Public License versions 2.0 or 3.0 as published by the Free +** Software Foundation and appearing in the files LICENSE.GPL2 +** and LICENSE.GPL3 included in the packaging of this file. +** Alternatively you may (at your option) use any later version +** of the GNU General Public License if such license has been +** publicly approved by Trolltech ASA (or its successors, if any) +** and the KDE Free TQt Foundation. +** +** Please review the following information to ensure GNU General +** Public Licensing requirements will be met: +** http://trolltech.com/products/qt/licenses/licensing/opensource/. +** If you are unsure which license is appropriate for your use, please +** review the following information: +** http://trolltech.com/products/qt/licenses/licensing/licensingoverview +** or contact the sales department at sales@trolltech.com. +** +** Licensees holding valid TQt Commercial licenses may use this file in +** accordance with the TQt Commercial License Agreement provided with +** the Software. +** +** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, +** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted +** herein. +** +**********************************************************************/ + +#ifndef TQMOUSEDRIVERINTERFACE_P_H +#define TQMOUSEDRIVERINTERFACE_P_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the TQt API. This header file may +// change from version to version without notice, or even be +// removed. +// +// We mean it. +// +// + +#ifndef TQT_H +#include <private/tqcom_p.h> +#endif // TQT_H + +#ifndef TQT_NO_COMPONENT + +// {4367CF5A-F7CE-407B-8BB6-DF19AEDA2EBB} +#ifndef IID_TQMouseDriver +#define IID_TQMouseDriver TQUuid( 0x4367cf5a, 0xf7ce, 0x407b, 0x8b, 0xb6, 0xdf, 0x19, 0xae, 0xda, 0x2e, 0xbb) +#endif + +class TQWSMouseHandler; + +struct TQ_EXPORT TQMouseDriverInterface : public TQFeatureListInterface +{ + virtual TQWSMouseHandler* create( const TQString& driver, const TQString &tqdevice ) = 0; +}; + +#endif // TQT_NO_COMPONENT + +#endif // TQMOUSEDRIVERINTERFACE_P_H |