| 1 | /****************************************************************************
|
|---|
| 2 | ** $Id: qwindowdefs_pm.h 8 2005-11-16 19:36:46Z dmik $
|
|---|
| 3 | **
|
|---|
| 4 | ** Definition of OS/2 functions, types and constants for the PM
|
|---|
| 5 | ** window system
|
|---|
| 6 | **
|
|---|
| 7 | ** Copyright (C) 1992-2002 Trolltech AS. All rights reserved.
|
|---|
| 8 | ** Copyright (C) 2004 Norman ASA. Initial OS/2 Port.
|
|---|
| 9 | ** Copyright (C) 2005 netlabs.org. Further OS/2 Development.
|
|---|
| 10 | **
|
|---|
| 11 | ** This file is part of the kernel module of the Qt GUI Toolkit.
|
|---|
| 12 | **
|
|---|
| 13 | ** This file may be distributed under the terms of the Q Public License
|
|---|
| 14 | ** as defined by Trolltech AS of Norway and appearing in the file
|
|---|
| 15 | ** LICENSE.QPL included in the packaging of this file.
|
|---|
| 16 | **
|
|---|
| 17 | ** This file may be distributed and/or modified under the terms of the
|
|---|
| 18 | ** GNU General Public License version 2 as published by the Free Software
|
|---|
| 19 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
|---|
| 20 | ** packaging of this file.
|
|---|
| 21 | **
|
|---|
| 22 | ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
|
|---|
| 23 | ** licenses may use this file in accordance with the Qt Commercial License
|
|---|
| 24 | ** Agreement provided with the Software.
|
|---|
| 25 | **
|
|---|
| 26 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
|---|
| 27 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
|---|
| 28 | **
|
|---|
| 29 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
|---|
| 30 | ** information about Qt Commercial License Agreements.
|
|---|
| 31 | ** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
|---|
| 32 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
|---|
| 33 | **
|
|---|
| 34 | ** Contact info@trolltech.com if any conditions of this licensing are
|
|---|
| 35 | ** not clear to you.
|
|---|
| 36 | **
|
|---|
| 37 | **********************************************************************/
|
|---|
| 38 |
|
|---|
| 39 | #ifndef QWINDOWDEFS_PM_H
|
|---|
| 40 | #ifndef QT_H
|
|---|
| 41 | #endif // QT_H
|
|---|
| 42 | #define QWINDOWDEFS_PM_H
|
|---|
| 43 |
|
|---|
| 44 | #ifndef QT_H
|
|---|
| 45 | #endif // QT_H
|
|---|
| 46 |
|
|---|
| 47 | #ifdef __cplusplus
|
|---|
| 48 | extern "C" {
|
|---|
| 49 | #endif
|
|---|
| 50 |
|
|---|
| 51 | #if defined(Q_CC_GNU) && !defined(USE_OS2_TOOLKIT_HEADERS)
|
|---|
| 52 |
|
|---|
| 53 | #define OS2EMX_PLAIN_CHAR
|
|---|
| 54 | #define INCL_BASE
|
|---|
| 55 | #define INCL_PM
|
|---|
| 56 | #include <os2.h>
|
|---|
| 57 |
|
|---|
| 58 | #else
|
|---|
| 59 |
|
|---|
| 60 | #ifndef _Seg16
|
|---|
| 61 | #define _Seg16
|
|---|
| 62 | #endif
|
|---|
| 63 | #include <os2def.h>
|
|---|
| 64 |
|
|---|
| 65 | #endif
|
|---|
| 66 |
|
|---|
| 67 | #ifdef __cplusplus
|
|---|
| 68 | }
|
|---|
| 69 | #endif
|
|---|
| 70 |
|
|---|
| 71 | typedef HWND WId;
|
|---|
| 72 |
|
|---|
| 73 | //@@TODO (dmik): remove
|
|---|
| 74 | //Q_EXPORT HINSTANCE qWinAppInst();
|
|---|
| 75 | //Q_EXPORT HINSTANCE qWinAppPrevInst();
|
|---|
| 76 | //Q_EXPORT int qWinAppCmdShow();
|
|---|
| 77 | Q_EXPORT HPS qt_display_ps();
|
|---|
| 78 |
|
|---|
| 79 | // special LCID values for font and bitmap handling
|
|---|
| 80 | const LONG LCID_QTPixmapBrush = 1;
|
|---|
| 81 | const LONG LCID_QTFont = 2;
|
|---|
| 82 |
|
|---|
| 83 | // constants to address extra window data
|
|---|
| 84 | const LONG QWL_QTCLIPRGN = QWL_USER;
|
|---|
| 85 | const LONG QWL_QTMODAL = QWL_USER + sizeof(LONG);
|
|---|
| 86 | const ULONG QT_EXTRAWINDATASIZE = sizeof(LONG) * 2;
|
|---|
| 87 |
|
|---|
| 88 | #endif
|
|---|