[67] | 1 | /****************************************************************************
|
---|
| 2 | **
|
---|
| 3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
[564] | 4 | ** All rights reserved.
|
---|
| 5 | ** Contact: Nokia Corporation ([email protected])
|
---|
[67] | 6 | **
|
---|
| 7 | ** Copyright (C) 2009 netlabs.org. OS/2 parts.
|
---|
| 8 | **
|
---|
| 9 | ** This file is part of the QtGui module of the Qt Toolkit.
|
---|
| 10 | **
|
---|
| 11 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
| 12 | ** Commercial Usage
|
---|
| 13 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
| 14 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
| 15 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
| 16 | ** a written agreement between you and Nokia.
|
---|
| 17 | **
|
---|
| 18 | ** GNU Lesser General Public License Usage
|
---|
| 19 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
| 20 | ** General Public License version 2.1 as published by the Free Software
|
---|
| 21 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
| 22 | ** packaging of this file. Please review the following information to
|
---|
| 23 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
| 24 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
| 25 | **
|
---|
[564] | 26 | ** In addition, as a special exception, Nokia gives you certain additional
|
---|
| 27 | ** rights. These rights are described in the Nokia Qt LGPL Exception
|
---|
| 28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
---|
[67] | 29 | **
|
---|
| 30 | ** GNU General Public License Usage
|
---|
| 31 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
| 32 | ** General Public License version 3.0 as published by the Free Software
|
---|
| 33 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
| 34 | ** packaging of this file. Please review the following information to
|
---|
| 35 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
| 36 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
| 37 | **
|
---|
[564] | 38 | ** If you have questions regarding the use of this file, please contact
|
---|
| 39 | ** Nokia at [email protected].
|
---|
[67] | 40 | ** $QT_END_LICENSE$
|
---|
| 41 | **
|
---|
| 42 | ****************************************************************************/
|
---|
| 43 |
|
---|
| 44 | #ifndef QWINDOWDEFS_PM_H
|
---|
| 45 | #define QWINDOWDEFS_PM_H
|
---|
| 46 |
|
---|
| 47 | #include <QtCore/qglobal.h>
|
---|
[123] | 48 | #include <QtCore/qstring.h>
|
---|
[67] | 49 |
|
---|
| 50 | QT_BEGIN_HEADER
|
---|
| 51 |
|
---|
| 52 | QT_BEGIN_NAMESPACE
|
---|
| 53 |
|
---|
| 54 | QT_MODULE(Gui)
|
---|
| 55 |
|
---|
| 56 | QT_END_NAMESPACE
|
---|
| 57 |
|
---|
[580] | 58 | // common typedefs from os2.h to avoid inclusion of qt_os2.h in public headers
|
---|
| 59 | typedef unsigned long ULONG;
|
---|
| 60 | typedef unsigned short USHORT;
|
---|
[89] | 61 | typedef unsigned long LHANDLE;
|
---|
| 62 | typedef LHANDLE HWND;
|
---|
[100] | 63 | typedef LHANDLE HPS;
|
---|
[260] | 64 | typedef LHANDLE HBITMAP;
|
---|
[108] | 65 | typedef LHANDLE HPOINTER;
|
---|
[113] | 66 | typedef LHANDLE HRGN;
|
---|
[92] | 67 | typedef struct _QMSG QMSG;
|
---|
| 68 | typedef void *MRESULT;
|
---|
[89] | 69 |
|
---|
[67] | 70 | typedef HWND WId;
|
---|
| 71 |
|
---|
[113] | 72 | #define NULLHANDLE ((LHANDLE)0)
|
---|
| 73 |
|
---|
[92] | 74 | // constants to address extra window data
|
---|
| 75 | #define QWL_QTCLIPRGN (QWL_USER)
|
---|
| 76 | #define QWL_QTMODAL (QWL_USER + sizeof(ULONG))
|
---|
| 77 | #define QT_EXTRAWINDATASIZE (sizeof(LONG) * 2)
|
---|
| 78 |
|
---|
[67] | 79 | QT_BEGIN_NAMESPACE
|
---|
| 80 |
|
---|
[120] | 81 | class QWidget;
|
---|
| 82 |
|
---|
| 83 | Q_GUI_EXPORT HPS qt_display_ps();
|
---|
| 84 |
|
---|
[603] | 85 | Q_GUI_EXPORT int qt_display_width();
|
---|
| 86 | Q_GUI_EXPORT int qt_display_height();
|
---|
| 87 |
|
---|
[605] | 88 | Q_GUI_EXPORT QWidget *qt_widget_from_hwnd(HWND hwnd);
|
---|
[120] | 89 |
|
---|
[605] | 90 | // QDebug helpers for debugging various API types
|
---|
[120] | 91 |
|
---|
[605] | 92 | // don't drag qdebug.h but require it to be included first
|
---|
| 93 | #if defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM)
|
---|
[120] | 94 |
|
---|
[605] | 95 | struct QDebugHWND { HWND hwnd; };
|
---|
| 96 | inline QDebugHWND qDebugHWND(HWND hwnd) { QDebugHWND d = { hwnd }; return d; }
|
---|
| 97 | QDebug operator<<(QDebug debug, const QDebugHWND &d);
|
---|
[120] | 98 |
|
---|
| 99 | // the following declarations require OS/2 types not defined here,
|
---|
[605] | 100 | // don't drag them in as well but require qt_os2.h to be included first
|
---|
[120] | 101 | #if defined(QT_OS2_H)
|
---|
| 102 |
|
---|
[605] | 103 | QDebug operator<<(QDebug debug, const RECTL &rcl);
|
---|
| 104 | QDebug operator<<(QDebug debug, const SWP &swp);
|
---|
| 105 | QDebug operator<<(QDebug debug, const QMSG &qmsg);
|
---|
[120] | 106 |
|
---|
| 107 | #endif // defined(QT_OS2_H)
|
---|
| 108 |
|
---|
| 109 | #endif // defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM)
|
---|
| 110 |
|
---|
[67] | 111 | QT_END_NAMESPACE
|
---|
| 112 |
|
---|
| 113 | QT_END_HEADER
|
---|
| 114 |
|
---|
| 115 | #endif // QWINDOWDEFS_WIN_H
|
---|