1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
|
---|
5 | **
|
---|
6 | ** Copyright (C) 2009 netlabs.org. OS/2 parts.
|
---|
7 | **
|
---|
8 | ** This file is part of the QtGui module of the Qt Toolkit.
|
---|
9 | **
|
---|
10 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
11 | ** Commercial Usage
|
---|
12 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
13 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
14 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
15 | ** a written agreement between you and Nokia.
|
---|
16 | **
|
---|
17 | ** GNU Lesser General Public License Usage
|
---|
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
19 | ** General Public License version 2.1 as published by the Free Software
|
---|
20 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
21 | ** packaging of this file. Please review the following information to
|
---|
22 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
24 | **
|
---|
25 | ** In addition, as a special exception, Nokia gives you certain
|
---|
26 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
27 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
28 | ** package.
|
---|
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 | **
|
---|
38 | ** If you are unsure which license is appropriate for your use, please
|
---|
39 | ** contact the sales department at qt-sales@nokia.com.
|
---|
40 | ** $QT_END_LICENSE$
|
---|
41 | **
|
---|
42 | ****************************************************************************/
|
---|
43 |
|
---|
44 | #include <private/qcursor_p.h>
|
---|
45 | #include <qbitmap.h>
|
---|
46 | #include <qcursor.h>
|
---|
47 |
|
---|
48 | #ifndef QT_NO_CURSOR
|
---|
49 |
|
---|
50 | #include <qimage.h>
|
---|
51 | #include <qt_os2.h>
|
---|
52 |
|
---|
53 | QT_BEGIN_NAMESPACE
|
---|
54 |
|
---|
55 | extern QCursorData *qt_cursorTable[Qt::LastCursor + 1]; // qcursor.cpp
|
---|
56 |
|
---|
57 | /*****************************************************************************
|
---|
58 | Internal QCursorData class
|
---|
59 | *****************************************************************************/
|
---|
60 |
|
---|
61 | QCursorData::QCursorData(Qt::CursorShape s)
|
---|
62 | : cshape(s), bm(0), bmm(0), hx(0), hy(0) // @todo, hcurs(0)
|
---|
63 | {
|
---|
64 | ref = 1;
|
---|
65 | }
|
---|
66 |
|
---|
67 | QCursorData::~QCursorData()
|
---|
68 | {
|
---|
69 | delete bm;
|
---|
70 | delete bmm;
|
---|
71 | // @todo
|
---|
72 | // if (hcurs)
|
---|
73 | // delete it...
|
---|
74 | }
|
---|
75 |
|
---|
76 |
|
---|
77 | QCursorData *QCursorData::setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY)
|
---|
78 | {
|
---|
79 | // @todo implement
|
---|
80 | return 0;
|
---|
81 | }
|
---|
82 |
|
---|
83 | #endif //QT_NO_CURSOR
|
---|
84 |
|
---|
85 | QPoint QCursor::pos()
|
---|
86 | {
|
---|
87 | // @todo implement
|
---|
88 | return QPoint();
|
---|
89 | }
|
---|
90 |
|
---|
91 | void QCursor::setPos(int x, int y)
|
---|
92 | {
|
---|
93 | // @todo implement
|
---|
94 | }
|
---|
95 |
|
---|
96 | #ifndef QT_NO_CURSOR
|
---|
97 |
|
---|
98 | void QCursorData::update()
|
---|
99 | {
|
---|
100 | if (!QCursorData::initialized)
|
---|
101 | QCursorData::initialize();
|
---|
102 | // @todo implement
|
---|
103 | }
|
---|
104 |
|
---|
105 | QT_END_NAMESPACE
|
---|
106 | #endif // QT_NO_CURSOR
|
---|