src/gui/kernel/qwidget_p.h
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     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 **
   171     quint32 savedWindowAttributesFromMaximized; // Saved attributes from when the calling updateMaximizeButton_sys()
   171     quint32 savedWindowAttributesFromMaximized; // Saved attributes from when the calling updateMaximizeButton_sys()
   172 #elif defined(Q_WS_QWS) // <--------------------------------------------------------- QWS
   172 #elif defined(Q_WS_QWS) // <--------------------------------------------------------- QWS
   173 #ifndef QT_NO_QWS_MANAGER
   173 #ifndef QT_NO_QWS_MANAGER
   174     QWSManager *qwsManager;
   174     QWSManager *qwsManager;
   175 #endif
   175 #endif
       
   176 #elif defined(Q_OS_SYMBIAN)
       
   177     uint inExpose : 1; // Prevents drawing recursion
   176 #endif
   178 #endif
   177 };
   179 };
   178 
   180 
   179 struct QWExtra {
   181 struct QWExtra {
   180     // *************************** Cross-platform variables *****************************
   182     // *************************** Cross-platform variables *****************************
   227     QImage maskBits;
   229     QImage maskBits;
   228     CGImageRef imageMask;
   230     CGImageRef imageMask;
   229 #endif
   231 #endif
   230 #elif defined(Q_OS_SYMBIAN) // <----------------------------------------------------- Symbian
   232 #elif defined(Q_OS_SYMBIAN) // <----------------------------------------------------- Symbian
   231     uint activated : 1; // RWindowBase::Activated has been called
   233     uint activated : 1; // RWindowBase::Activated has been called
       
   234 
       
   235     /**
       
   236      * If this bit is set, each native widget receives the signals from the
       
   237      * Symbian control immediately before and immediately after draw ops are
       
   238      * sent to the window server for this control:
       
   239      *      void beginNativePaintEvent(const QRect &paintRect);
       
   240      *      void endNativePaintEvent(const QRect &paintRect);
       
   241      */
       
   242     uint receiveNativePaintEvents : 1;
   232 
   243 
   233     /**
   244     /**
   234      * Defines the behaviour of QSymbianControl::Draw.
   245      * Defines the behaviour of QSymbianControl::Draw.
   235      */
   246      */
   236     enum NativePaintMode {
   247     enum NativePaintMode {
   253         ZeroFill,
   264         ZeroFill,
   254 
   265 
   255         Default = Blit
   266         Default = Blit
   256     };
   267     };
   257 
   268 
   258     NativePaintMode nativePaintMode : 2;
   269     NativePaintMode nativePaintMode;
   259 
       
   260     /**
       
   261      * If this bit is set, each native widget receives the signals from the
       
   262      * Symbian control immediately before and immediately after draw ops are
       
   263      * sent to the window server for this control:
       
   264      *      void beginNativePaintEvent(const QRect &paintRect);
       
   265      *      void endNativePaintEvent(const QRect &paintRect);
       
   266      */
       
   267     uint receiveNativePaintEvents : 1;
       
   268 
   270 
   269 #endif
   271 #endif
   270 };
   272 };
   271 
   273 
   272 /*!
   274 /*!
   468     QRect frameStrut() const;
   470     QRect frameStrut() const;
   469 
   471 
   470 #ifdef QT_KEYPAD_NAVIGATION
   472 #ifdef QT_KEYPAD_NAVIGATION
   471     static bool navigateToDirection(Direction direction);
   473     static bool navigateToDirection(Direction direction);
   472     static QWidget *widgetInNavigationDirection(Direction direction);
   474     static QWidget *widgetInNavigationDirection(Direction direction);
       
   475     static bool canKeypadNavigate(Qt::Orientation orientation);
       
   476     static bool inTabWidget(QWidget *widget);
   473 #endif
   477 #endif
   474 
   478 
   475     void setWindowIconText_sys(const QString &cap);
   479     void setWindowIconText_sys(const QString &cap);
   476     void setWindowIconText_helper(const QString &cap);
   480     void setWindowIconText_helper(const QString &cap);
   477     void setWindowTitle_sys(const QString &cap);
   481     void setWindowTitle_sys(const QString &cap);
   679     uint dirtyOpaqueChildren : 1;
   683     uint dirtyOpaqueChildren : 1;
   680     uint isOpaque : 1;
   684     uint isOpaque : 1;
   681     uint inDirtyList : 1;
   685     uint inDirtyList : 1;
   682     uint isScrolled : 1;
   686     uint isScrolled : 1;
   683     uint isMoved : 1;
   687     uint isMoved : 1;
       
   688     uint isGLWidget : 1;
   684     uint usesDoubleBufferedGLContext : 1;
   689     uint usesDoubleBufferedGLContext : 1;
   685 
   690 
   686     // *************************** Platform specific ************************************
   691     // *************************** Platform specific ************************************
   687 #if defined(Q_WS_X11) // <----------------------------------------------------------- X11
   692 #if defined(Q_WS_X11) // <----------------------------------------------------------- X11
   688     QX11Info xinfo;
   693     QX11Info xinfo;
   710     void registerTouchWindow();
   715     void registerTouchWindow();
   711     void winSetupGestures();
   716     void winSetupGestures();
   712 #elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
   717 #elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
   713     // This is new stuff
   718     // This is new stuff
   714     uint needWindowChange : 1;
   719     uint needWindowChange : 1;
   715     uint isGLWidget : 1;
       
   716 
   720 
   717     // Each wiget keeps a list of all its child and grandchild OpenGL widgets.
   721     // Each wiget keeps a list of all its child and grandchild OpenGL widgets.
   718     // This list is used to update the gl context whenever a parent and a granparent
   722     // This list is used to update the gl context whenever a parent and a granparent
   719     // moves, and also to check for intersections with gl widgets within the window
   723     // moves, and also to check for intersections with gl widgets within the window
   720     // when a widget moves.
   724     // when a widget moves.