source: trunk/src/gui/kernel/qapplication_p.h@ 352

Last change on this file since 352 was 95, checked in by Dmitry A. Kuminov, 16 years ago

gui: Added OS/2 stubs for platform-specific parts of all key GUI classes. Non-key classes are temporarily disabled with QT_NO_ defines.

File size: 13.1 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the QtGui module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42#ifndef QAPPLICATION_P_H
43#define QAPPLICATION_P_H
44
45//
46// W A R N I N G
47// -------------
48//
49// This file is not part of the Qt API. It exists for the convenience
50// of qapplication_*.cpp, qwidget*.cpp, qcolor_x11.cpp, qfiledialog.cpp
51// and many other. This header file may change from version to version
52// without notice, or even be removed.
53//
54// We mean it.
55//
56
57#include "QtGui/qapplication.h"
58#include "QtGui/qfont.h"
59#include "QtGui/qcursor.h"
60#include "QtGui/qregion.h"
61#include "QtCore/qmutex.h"
62#include "QtCore/qtranslator.h"
63#include "QtCore/qbasictimer.h"
64#include "QtCore/qhash.h"
65#include "QtCore/qpointer.h"
66#include "private/qcoreapplication_p.h"
67#include "private/qshortcutmap_p.h"
68#include <private/qthread_p.h>
69#ifdef Q_WS_QWS
70#include "QtGui/qscreen_qws.h"
71#include <private/qgraphicssystem_qws_p.h>
72#endif
73
74QT_BEGIN_NAMESPACE
75
76class QClipboard;
77class QGraphicsScene;
78class QGraphicsSystem;
79class QInputContext;
80class QKeyEvent;
81class QMouseEvent;
82class QObject;
83class QWheelEvent;
84class QWidget;
85
86extern bool qt_is_gui_used;
87#ifndef QT_NO_CLIPBOARD
88extern QClipboard *qt_clipboard;
89#endif
90
91#if defined (Q_OS_WIN32) || defined (Q_OS_CYGWIN) || defined(Q_OS_WINCE)
92extern QSysInfo::WinVersion qt_winver;
93enum { QT_TABLET_NPACKETQSIZE = 128 };
94# ifdef Q_OS_WINCE
95 extern DWORD qt_cever;
96# endif
97#elif defined (Q_OS_MAC)
98extern QSysInfo::MacVersion qt_macver;
99#endif
100#if defined(Q_WS_QWS)
101class QWSManager;
102class QDirectPainter;
103#endif
104
105#ifndef QT_NO_TABLET
106struct QTabletDeviceData
107{
108#ifndef Q_WS_MAC
109 int minPressure;
110 int maxPressure;
111 int minTanPressure;