226 { |
226 { |
227 CWindowGc& gc = SystemGc(); |
227 CWindowGc& gc = SystemGc(); |
228 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
228 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
229 AknsDrawUtils::Background( skin, iExtension->iBgContext, this, gc, Rect() ); |
229 AknsDrawUtils::Background( skin, iExtension->iBgContext, this, gc, Rect() ); |
230 |
230 |
231 if (Layout_Meta_Data::IsPenEnabled() && Layout_Meta_Data::IsLandscapeOrientation()) |
|
232 { |
|
233 #if 0 |
|
234 TRect application_window( KWholeScreen ); |
|
235 TAknLayoutRect area_side_right_pane; |
|
236 TInt variety = 0; |
|
237 area_side_right_pane.LayoutRect(application_window, AknLayoutScalable_Avkon::area_side_right_pane(variety)); |
|
238 |
|
239 CFbsBitmap *mask1 = AknsUtils::GetCachedBitmap( skin, KAknsIIDQgnIndiSctrlSkMaskLsc ); |
|
240 CFbsBitmap *mask5 = AknsUtils::GetCachedBitmap( skin, KAknsIIDQgnIndiSctrlSkMaskLsc ); |
|
241 |
|
242 CFbsBitmap *bitmap = new(ELeave)CFbsBitmap; |
|
243 CleanupStack::PushL(bitmap); |
|
244 bitmap->Create(area_side_right_pane.Rect().Size(), EColor16MA); |
|
245 CFbsBitGc* bitmapContext = NULL; |
|
246 CFbsBitmapDevice* bitmapDevice = |
|
247 CFbsBitmapDevice::NewL( bitmap ); |
|
248 CleanupStack::PushL( bitmapDevice ); |
|
249 bitmapDevice->CreateContext( bitmapContext ); |
|
250 CleanupStack::PushL( bitmapContext ); |
|
251 |
|
252 TRect area_side_right_pane_rect = area_side_right_pane.Rect(); |
|
253 area_side_right_pane_rect.iTl = TPoint(0,0); |
|
254 |
|
255 TAknLayoutRect sctrl_sk_top_pane; |
|
256 sctrl_sk_top_pane.LayoutRect(area_side_right_pane_rect, AknLayoutScalable_Avkon::sctrl_sk_top_pane(0)); |
|
257 |
|
258 TAknLayoutRect sctrl_sk_bottom_pane; |
|
259 sctrl_sk_bottom_pane.LayoutRect(area_side_right_pane_rect, AknLayoutScalable_Avkon::sctrl_sk_bottom_pane(0)); |
|
260 |
|
261 TAknLayoutRect grid_sctrl_middle_pane; |
|
262 grid_sctrl_middle_pane.LayoutRect(area_side_right_pane_rect, AknLayoutScalable_Avkon::grid_sctrl_middle_pane(0)); |
|
263 |
|
264 TAknLayoutRect cell_sctrl_middle_pane1; |
|
265 cell_sctrl_middle_pane1.LayoutRect(grid_sctrl_middle_pane.Rect(), AknLayoutScalable_Avkon::cell_sctrl_middle_pane(0,0,0)); |
|
266 TAknLayoutRect cell_sctrl_middle_pane2; |
|
267 cell_sctrl_middle_pane2.LayoutRect(grid_sctrl_middle_pane.Rect(), AknLayoutScalable_Avkon::cell_sctrl_middle_pane(0,0,1)); |
|
268 TAknLayoutRect cell_sctrl_middle_pane3; |
|
269 cell_sctrl_middle_pane3.LayoutRect(grid_sctrl_middle_pane.Rect(), AknLayoutScalable_Avkon::cell_sctrl_middle_pane(0,0,2)); |
|
270 |
|
271 AknsDrawUtils::DrawFrame( skin, *bitmapContext, sctrl_sk_top_pane.Rect(), Convert(sctrl_sk_top_pane.Rect()), KAknsIIDQgnFrSctrlSkButton, KAknsIIDQgnFrSctrlSkButtonCenter); |
|
272 AknsDrawUtils::DrawFrame( skin, *bitmapContext, cell_sctrl_middle_pane1.Rect(), Convert2(cell_sctrl_middle_pane1.Rect()), KAknsIIDQgnFrSctrlButton, KAknsIIDQgnFrSctrlButtonCenter); |
|
273 AknsDrawUtils::DrawFrame( skin, *bitmapContext, cell_sctrl_middle_pane2.Rect(), Convert2(cell_sctrl_middle_pane2.Rect()), KAknsIIDQgnFrSctrlButton, KAknsIIDQgnFrSctrlButtonCenter); |
|
274 AknsDrawUtils::DrawFrame( skin, *bitmapContext, cell_sctrl_middle_pane3.Rect(), Convert2(cell_sctrl_middle_pane3.Rect()), KAknsIIDQgnFrSctrlButton, KAknsIIDQgnFrSctrlButtonCenter); |
|
275 AknsDrawUtils::DrawFrame( skin, *bitmapContext, sctrl_sk_bottom_pane.Rect(), Convert(sctrl_sk_bottom_pane.Rect()), KAknsIIDQgnFrSctrlSkButton, KAknsIIDQgnFrSctrlSkButtonCenter); |
|
276 |
|
277 TSize size1 = sctrl_sk_top_pane.Rect().Size(); |
|
278 TSize size5 = sctrl_sk_bottom_pane.Rect().Size(); |
|
279 AknIconUtils::SetSize(mask1, size1, EAspectRatioNotPreserved); |
|
280 AknIconUtils::SetSize(mask5, size5, EAspectRatioNotPreserved); |
|
281 |
|
282 gc.BitBltMasked( area_side_right_pane.Rect().iTl+sctrl_sk_top_pane.Rect().iTl, bitmap, sctrl_sk_top_pane.Rect(), mask1, EFalse); |
|
283 gc.BitBltMasked( area_side_right_pane.Rect().iTl+sctrl_sk_bottom_pane.Rect().iTl, bitmap, sctrl_sk_bottom_pane.Rect(), mask5, EFalse); |
|
284 |
|
285 CleanupStack::PopAndDestroy(3); // bitmap, bitmapdevice, bitmapcontext |
|
286 #endif |
|
287 } |
|
288 |
|
289 |
|
290 iEikonEnv->WsSession().Flush(); |
231 iEikonEnv->WsSession().Flush(); |
291 return; |
232 return; |
292 } |
233 } |
293 |
234 |
294 EXPORT_C void CAknScreenClearerBase::HandlePointerEventL(const TPointerEvent& aPointerEvent) |
235 EXPORT_C void CAknScreenClearerBase::HandlePointerEventL(const TPointerEvent& aPointerEvent) |