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 ** |
66 #include <coecntrl.h> |
66 #include <coecntrl.h> |
67 #include <eikenv.h> |
67 #include <eikenv.h> |
68 #include <eikappui.h> |
68 #include <eikappui.h> |
69 |
69 |
70 #ifdef Q_WS_S60 |
70 #ifdef Q_WS_S60 |
71 #include <aknutils.h> // AknLayoutUtils |
71 #include <AknUtils.h> // AknLayoutUtils |
72 #include <avkon.hrh> // EEikStatusPaneUidTitle |
72 #include <avkon.hrh> // EEikStatusPaneUidTitle |
73 #include <akntitle.h> // CAknTitlePane |
73 #include <akntitle.h> // CAknTitlePane |
74 #include <akncontext.h> // CAknContextPane |
74 #include <akncontext.h> // CAknContextPane |
75 #include <eikspane.h> // CEikStatusPane |
75 #include <eikspane.h> // CEikStatusPane |
76 #include <aknpopupfader.h> // MAknFadedComponent and TAknPopupFader |
76 #include <AknPopupFader.h> // MAknFadedComponent and TAknPopupFader |
77 #endif |
77 #endif |
78 |
78 |
79 QT_BEGIN_NAMESPACE |
79 QT_BEGIN_NAMESPACE |
80 |
80 |
81 // Application internal HandleResourceChangeL events, |
81 // Application internal HandleResourceChangeL events, |
119 int hasTouchscreen : 1; |
119 int hasTouchscreen : 1; |
120 int mouseInteractionEnabled : 1; |
120 int mouseInteractionEnabled : 1; |
121 int virtualMouseRequired : 1; |
121 int virtualMouseRequired : 1; |
122 int qtOwnsS60Environment : 1; |
122 int qtOwnsS60Environment : 1; |
123 int supportsPremultipliedAlpha : 1; |
123 int supportsPremultipliedAlpha : 1; |
|
124 int avkonComponentsSupportTransparency : 1; |
124 QApplication::QS60MainApplicationFactory s60ApplicationFactory; // typedef'ed pointer type |
125 QApplication::QS60MainApplicationFactory s60ApplicationFactory; // typedef'ed pointer type |
125 static inline void updateScreenSize(); |
126 static inline void updateScreenSize(); |
126 static inline RWsSession& wsSession(); |
127 static inline RWsSession& wsSession(); |
127 static inline RWindowGroup& windowGroup(); |
128 static inline RWindowGroup& windowGroup(); |
128 static inline CWsScreenDevice* screenDevice(); |
129 static inline CWsScreenDevice* screenDevice(); |
129 static inline CCoeAppUi* appUi(); |
130 static inline CCoeAppUi* appUi(); |
|
131 static inline CEikMenuBar* menuBar(); |
130 #ifdef Q_WS_S60 |
132 #ifdef Q_WS_S60 |
131 static inline CEikStatusPane* statusPane(); |
133 static inline CEikStatusPane* statusPane(); |
132 static inline CCoeControl* statusPaneSubPane(TInt aPaneId); |
134 static inline CCoeControl* statusPaneSubPane(TInt aPaneId); |
133 static inline CAknTitlePane* titlePane(); |
135 static inline CAknTitlePane* titlePane(); |
134 static inline CAknContextPane* contextPane(); |
136 static inline CAknContextPane* contextPane(); |
267 inline CCoeAppUi* QS60Data::appUi() |
269 inline CCoeAppUi* QS60Data::appUi() |
268 { |
270 { |
269 return CCoeEnv::Static()-> AppUi(); |
271 return CCoeEnv::Static()-> AppUi(); |
270 } |
272 } |
271 |
273 |
|
274 inline CEikMenuBar* QS60Data::menuBar() |
|
275 { |
|
276 return CEikonEnv::Static()->AppUiFactory()->MenuBar(); |
|
277 } |
|
278 |
272 #ifdef Q_WS_S60 |
279 #ifdef Q_WS_S60 |
273 inline CEikStatusPane* QS60Data::statusPane() |
280 inline CEikStatusPane* QS60Data::statusPane() |
274 { |
281 { |
275 return CEikonEnv::Static()->AppUiFactory()->StatusPane(); |
282 return CEikonEnv::Static()->AppUiFactory()->StatusPane(); |
276 } |
283 } |