src/gui/kernel/qwidget_p.h
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   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
   232     uint inExpose : 1; // Prevents drawing recursion
   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;
   233 
   243 
   234     /**
   244     /**
   235      * Defines the behaviour of QSymbianControl::Draw.
   245      * Defines the behaviour of QSymbianControl::Draw.
   236      */
   246      */
   237     enum NativePaintMode {
   247     enum NativePaintMode {
   254         ZeroFill,
   264         ZeroFill,
   255 
   265 
   256         Default = Blit
   266         Default = Blit
   257     };
   267     };
   258 
   268 
   259     NativePaintMode nativePaintMode : 2;
   269     NativePaintMode nativePaintMode;
   260 
       
   261     /**
       
   262      * If this bit is set, each native widget receives the signals from the
       
   263      * Symbian control immediately before and immediately after draw ops are
       
   264      * sent to the window server for this control:
       
   265      *      void beginNativePaintEvent(const QRect &paintRect);
       
   266      *      void endNativePaintEvent(const QRect &paintRect);
       
   267      */
       
   268     uint receiveNativePaintEvents : 1;
       
   269 
   270 
   270 #endif
   271 #endif
   271 };
   272 };
   272 
   273 
   273 /*!
   274 /*!
   469     QRect frameStrut() const;
   470     QRect frameStrut() const;
   470 
   471 
   471 #ifdef QT_KEYPAD_NAVIGATION
   472 #ifdef QT_KEYPAD_NAVIGATION
   472     static bool navigateToDirection(Direction direction);
   473     static bool navigateToDirection(Direction direction);
   473     static QWidget *widgetInNavigationDirection(Direction direction);
   474     static QWidget *widgetInNavigationDirection(Direction direction);
       
   475     static bool canKeypadNavigate(Qt::Orientation orientation);
       
   476     static bool inTabWidget(QWidget *widget);
   474 #endif
   477 #endif
   475 
   478 
   476     void setWindowIconText_sys(const QString &cap);
   479     void setWindowIconText_sys(const QString &cap);
   477     void setWindowIconText_helper(const QString &cap);
   480     void setWindowIconText_helper(const QString &cap);
   478     void setWindowTitle_sys(const QString &cap);
   481     void setWindowTitle_sys(const QString &cap);
   680     uint dirtyOpaqueChildren : 1;
   683     uint dirtyOpaqueChildren : 1;
   681     uint isOpaque : 1;
   684     uint isOpaque : 1;
   682     uint inDirtyList : 1;
   685     uint inDirtyList : 1;
   683     uint isScrolled : 1;
   686     uint isScrolled : 1;
   684     uint isMoved : 1;
   687     uint isMoved : 1;
       
   688     uint isGLWidget : 1;
   685     uint usesDoubleBufferedGLContext : 1;
   689     uint usesDoubleBufferedGLContext : 1;
   686 
   690 
   687     // *************************** Platform specific ************************************
   691     // *************************** Platform specific ************************************
   688 #if defined(Q_WS_X11) // <----------------------------------------------------------- X11
   692 #if defined(Q_WS_X11) // <----------------------------------------------------------- X11
   689     QX11Info xinfo;
   693     QX11Info xinfo;
   711     void registerTouchWindow();
   715     void registerTouchWindow();
   712     void winSetupGestures();
   716     void winSetupGestures();
   713 #elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
   717 #elif defined(Q_WS_MAC) // <--------------------------------------------------------- MAC
   714     // This is new stuff
   718     // This is new stuff
   715     uint needWindowChange : 1;
   719     uint needWindowChange : 1;
   716     uint isGLWidget : 1;
       
   717 
   720 
   718     // 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.
   719     // 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
   720     // 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
   721     // when a widget moves.
   724     // when a widget moves.