1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
82 class QGraphicsSystem; |
82 class QGraphicsSystem; |
83 class QInputContext; |
83 class QInputContext; |
84 class QObject; |
84 class QObject; |
85 class QWidget; |
85 class QWidget; |
86 class QSocketNotifier; |
86 class QSocketNotifier; |
|
87 class QGestureManager; |
87 |
88 |
88 extern bool qt_is_gui_used; |
89 extern bool qt_is_gui_used; |
89 #ifndef QT_NO_CLIPBOARD |
90 #ifndef QT_NO_CLIPBOARD |
90 extern QClipboard *qt_clipboard; |
91 extern QClipboard *qt_clipboard; |
91 #endif |
92 #endif |
424 static QIcon *app_icon; |
425 static QIcon *app_icon; |
425 static bool obey_desktop_settings; |
426 static bool obey_desktop_settings; |
426 static int cursor_flash_time; |
427 static int cursor_flash_time; |
427 static int mouse_double_click_time; |
428 static int mouse_double_click_time; |
428 static int keyboard_input_time; |
429 static int keyboard_input_time; |
|
430 #ifndef QT_NO_WHEELEVENT |
429 static int wheel_scroll_lines; |
431 static int wheel_scroll_lines; |
|
432 #endif |
430 |
433 |
431 static bool animate_ui; |
434 static bool animate_ui; |
432 static bool animate_menu; |
435 static bool animate_menu; |
433 static bool animate_tooltip; |
436 static bool animate_tooltip; |
434 static bool animate_combo; |
437 static bool animate_combo; |
498 #ifdef Q_OS_SYMBIAN |
501 #ifdef Q_OS_SYMBIAN |
499 static void setNavigationMode(Qt::NavigationMode mode); |
502 static void setNavigationMode(Qt::NavigationMode mode); |
500 static TUint resolveS60ScanCode(TInt scanCode, TUint keysym); |
503 static TUint resolveS60ScanCode(TInt scanCode, TUint keysym); |
501 QSet<WId> nativeWindows; |
504 QSet<WId> nativeWindows; |
502 |
505 |
503 int symbianProcessWsEvent(const TWsEvent *event); |
506 int symbianProcessWsEvent(const QSymbianEvent *symbianEvent); |
504 int symbianHandleCommand(int command); |
507 int symbianHandleCommand(const QSymbianEvent *symbianEvent); |
505 int symbianResourceChange(int type); |
508 int symbianResourceChange(const QSymbianEvent *symbianEvent); |
506 |
509 |
507 #endif |
510 #endif |
508 #if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined (Q_WS_QWS) |
511 #if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined (Q_WS_QWS) |
509 void sendSyntheticEnterLeave(QWidget *widget); |
512 void sendSyntheticEnterLeave(QWidget *widget); |
510 #endif |
513 #endif |
511 |
514 |
|
515 QGestureManager *gestureManager; |
512 QWidget *gestureWidget; |
516 QWidget *gestureWidget; |
513 |
517 |
514 QMap<int, QWeakPointer<QWidget> > widgetForTouchPointId; |
518 QMap<int, QWeakPointer<QWidget> > widgetForTouchPointId; |
515 QMap<int, QTouchEvent::TouchPoint> appCurrentTouchPoints; |
519 QMap<int, QTouchEvent::TouchPoint> appCurrentTouchPoints; |
516 static void updateTouchPointsForWidget(QWidget *widget, QTouchEvent *touchEvent); |
520 static void updateTouchPointsForWidget(QWidget *widget, QTouchEvent *touchEvent); |