1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
|
/****************************************************************************
** $Id: qt/src/kernel/q1xcompatibility.h 2.3.1 edited 2001-01-26 $
**
** Various macros etc. to ease porting from Qt 1.x to 2.0. THIS FILE
** WILL CHANGE OR DISAPPEAR IN THE NEXT VERSION OF Qt.
**
** Created : 980824
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
** This file is part of the kernel module of the Qt GUI Toolkit.
**
** This file may be distributed under the terms of the Q Public License
** as defined by Trolltech AS of Norway and appearing in the file
** LICENSE.QPL included in the packaging of this file.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
** licenses may use this file in accordance with the Qt Commercial License
** Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
** information about Qt Commercial License Agreements.
** See http://www.trolltech.com/qpl/ for QPL licensing information.
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef Q1XCOMPATIBILITY_H
#define Q1XCOMPATIBILITY_H
#define Event_None QEvent::None
#define Event_Timer QEvent::Timer
#define Event_MouseButtonPress QEvent::MouseButtonPress
#define Event_MouseButtonRelease QEvent::MouseButtonRelease
#define Event_MouseButtonDblClick QEvent::MouseButtonDblClick
#define Event_MouseMove QEvent::MouseMove
#define Event_KeyPress QEvent::KeyPress
#define Event_KeyRelease QEvent::KeyRelease
#define Event_FocusIn QEvent::FocusIn
#define Event_FocusOut QEvent::FocusOut
#define Event_Enter QEvent::Enter
#define Event_Leave QEvent::Leave
#define Event_Paint QEvent::Paint
#define Event_Move QEvent::Move
#define Event_Resize QEvent::Resize
#define Event_Create QEvent::Create
#define Event_Destroy QEvent::Destroy
#define Event_Show QEvent::Show
#define Event_Hide QEvent::Hide
#define Event_Close QEvent::Close
#define Event_Quit QEvent::Quit
#define Event_Accel QEvent::Accel
#define Event_Clipboard QEvent::Clipboard
#define Event_SockAct QEvent::SockAct
#define Event_DragEnter QEvent::DragEnter
#define Event_DragMove QEvent::DragMove
#define Event_DragLeave QEvent::DragLeave
#define Event_Drop QEvent::Drop
#define Event_DragResponse QEvent::DragResponse
#define Event_ChildInserted QEvent::ChildInserted
#define Event_ChildRemoved QEvent::ChildRemoved
#define Event_LayoutHint QEvent::LayoutHint
#define Event_ActivateControl QEvent::ActivateControl
#define Event_DeactivateControl QEvent::DeactivateControl
#define Event_User QEvent::User
#define Q_TIMER_EVENT(x) ((QTimerEvent*)x)
#define Q_MOUSE_EVENT(x) ((QMouseEvent*)x)
#define Q_KEY_EVENT(x) ((QKeyEvent*)x)
#define Q_FOCUS_EVENT(x) ((QFocusEvent*)x)
#define Q_PAINT_EVENT(x) ((QPaintEvent*)x)
#define Q_MOVE_EVENT(x) ((QMoveEvent*)x)
#define Q_RESIZE_EVENT(x) ((QResizeEvent*)x)
#define Q_CLOSE_EVENT(x) ((QCloseEvent*)x)
#define Q_SHOW_EVENT(x) ((QShowEvent*)x)
#define Q_HIDE_EVENT(x) ((QHideEvent*)x)
#define Q_CUSTOM_EVENT(x) ((QCustomEvent*)x)
#define NoButton Qt::NoButton
#define LeftButton Qt::LeftButton
#define RightButton Qt::RightButton
#define MidButton Qt::MidButton
#define MouseButtonMask Qt::MouseButtonMask
#define ShiftButton Qt::ShiftButton
#define ControlButton Qt::ControlButton
#define AltButton Qt::AltButton
#define KeyButtonMask Qt::KeyButtonMask
// Painter device types (is-A)
#define PDT_UNDEF QInternal::UndefinedDevice
#define PDT_WIDGET QInternal::Widget
#define PDT_PIXMAP QInternal::Pixmap
#define PDT_PRINTER QInternal::Printer
#define PDT_PICTURE QInternal::Picture
#define PDT_SYSTEM QInternal::System
#define PDT_MASK QInternal::DeviceTypeMask
// Painter device flags
#define PDF_EXTDEV QInternal::ExternalDevice
// old qpaindevicedefs.h stuff
#define PDC_BEGIN QPaintDevice::PdcBeg
#define PDC_DRAWARC QPaintDevice::PdcDrawArc
#define PDC_DRAWCHORD QPaintDevice::PdcDrawChord
#define PDC_DRAWELLIPSE QPaintDevice::PdcDrawEllipse
#define PDC_DRAWIMAGE QPaintDevice::PdcDrawImage
#define PDC_DRAWLINE QPaintDevice::PdcDrawLine
#define PDC_DRAWLINESEGS QPaintDevice::PdcDrawLineSegments/g
#define PDC_DRAWPIE QPaintDevice::PdcDrawPie
#define PDC_DRAWPIXMAP QPaintDevice::PdcDrawPixmap
#define PDC_DRAWPOINT QPaintDevice::PdcDrawPoint
#define PDC_DRAWPOLYGON QPaintDevice::PdcDrawPolygon
#define PDC_DRAWPOLYLINE QPaintDevice::PdcDrawPolyline
#define PDC_DRAWQUADBEZIER QPaintDevice::PdcDrawQuadBezier
#define PDC_DRAWRECT QPaintDevice::PdcDrawRect
#define PDC_DRAWROUNDRECT QPaintDevice::PdcDrawRoundRect
#define PDC_DRAWTEXT QPaintDevice::PdcDrawText
#define PDC_DRAWTEXT2 QPaintDevice::PdcDrawText2
#define PDC_DRAWTEXT2FRMT QPaintDevice::PdcDrawText2Formatted
#define PDC_DRAWTEXTFRMT QPaintDevice::PdcDrawTextFormatted
#define PDC_DRAW_FIRST QPaintDevice::PdcDrawFirst
#define PDC_DRAW_LAST QPaintDevice::PdcDrawLast
#define PDC_END QPaintDevice::PdcEnd
#define PDC_LINETO QPaintDevice::PdcLineTo
#define PDC_MOVETO QPaintDevice::PdcMoveTo
#define PDC_NOP QPaintDevice::PdcNOP
#define PDC_RESERVED_START QPaintDevice::PdcReservedStart
#define PDC_RESERVED_STOP QPaintDevice::PdcReservedStop
#define PDC_RESTORE QPaintDevice::PdcRestore
#define PDC_RESTOREWMATRIX QPaintDevice::PdcRestoreWMatrix
#define PDC_SAVE QPaintDevice::PdcSave
#define PDC_SAVEWMATRIX QPaintDevice::PdcSaveWMatrix
#define PDC_SETBKCOLOR QPaintDevice::PdcSetBkColor
#define PDC_SETBKMODE QPaintDevice::PdcSetBkMode
#define PDC_SETBRUSH QPaintDevice::PdcSetBrush
#define PDC_SETBRUSHORIGIN QPaintDevice::PdcSetBrushOrigin
#define PDC_SETCLIP QPaintDevice::PdcSetClip
#define PDC_SETCLIPRGN QPaintDevice::PdcSetClipRegion
#define PDC_SETDEV QPaintDevice::PdcSetdev
#define PDC_SETFONT QPaintDevice::PdcSetFont
#define PDC_SETPEN QPaintDevice::PdcSetPen
#define PDC_SETROP QPaintDevice::PdcSetROP
#define PDC_SETTABARRAY QPaintDevice::PdcSetTabArray
#define PDC_SETTABSTOPS QPaintDevice::PdcSetTabStops
#define PDC_SETUNIT QPaintDevice::PdcSetUnit
#define PDC_SETVIEWPORT QPaintDevice::PdcSetViewport
#define PDC_SETVXFORM QPaintDevice::PdcSetVXform
#define PDC_SETWINDOW QPaintDevice::PdcSetWindow
#define PDC_SETWMATRIX QPaintDevice::PdcSetWMatrix
#define PDC_SETWXFORM QPaintDevice::PdcSetWXform
#define PDM_WIDTH QPaintDeviceMetrics::PdmWidth
#define PDM_HEIGHT QPaintDeviceMetrics::PdmHeight
#define PDM_WIDTHMM QPaintDeviceMetrics::PdmWidthMM
#define PDM_HEIGHTMM QPaintDeviceMetrics::PdmHeightMM
#define PDM_NUMCOLORS QPaintDeviceMetrics::PdmNumColors
#define PDM_DEPTH QPaintDeviceMetrics::PdmDepth
#endif // Q1XCOMPATIBILITY_H
|