140 CGlxResourceUtilities::GetResourceFilenameL(resourceFile); |
140 CGlxResourceUtilities::GetResourceFilenameL(resourceFile); |
141 iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile); |
141 iResourceOffset = CCoeEnv::Static()->AddResourceFileL(resourceFile); |
142 |
142 |
143 // Get the Hitchcock environment. |
143 // Get the Hitchcock environment. |
144 iUiUtility = CGlxUiUtility::UtilityL(); |
144 iUiUtility = CGlxUiUtility::UtilityL(); |
145 iEnv = iUiUtility->Env(); |
|
146 iFetchUri = EFalse; |
145 iFetchUri = EFalse; |
147 iMMCNotifier = CGlxMMCNotifier::NewL(*this); |
146 iMMCNotifier = CGlxMMCNotifier::NewL(*this); |
148 } |
147 } |
149 |
148 |
150 //----------------------------------------------------------------------------- |
149 //----------------------------------------------------------------------------- |
392 // Create and Display Grid widget |
392 // Create and Display Grid widget |
393 iFetcherContainer->CreateAndDisplayGridL(); |
393 iFetcherContainer->CreateAndDisplayGridL(); |
394 } |
394 } |
395 |
395 |
396 //----------------------------------------------------------------------------- |
396 //----------------------------------------------------------------------------- |
397 // CGlxFetcherDialog::DynInitMenuPaneL |
|
398 //----------------------------------------------------------------------------- |
|
399 void CGlxFetcherDialog::DynInitMenuPaneL( |
|
400 TInt /*aResourceId*/, CEikMenuPane* /*aMenuPane*/ ) |
|
401 { |
|
402 TRACER("CGlxFetcherDialog::DynInitMenuPaneL"); |
|
403 // No Implementation |
|
404 } |
|
405 |
|
406 //----------------------------------------------------------------------------- |
|
407 // CGlxFetcherDialog::OfferKeyEventL |
397 // CGlxFetcherDialog::OfferKeyEventL |
408 //----------------------------------------------------------------------------- |
398 //----------------------------------------------------------------------------- |
409 TKeyResponse CGlxFetcherDialog::OfferKeyEventL(const TKeyEvent& aKeyEvent, |
399 TKeyResponse CGlxFetcherDialog::OfferKeyEventL(const TKeyEvent& aKeyEvent, |
410 TEventCode aType) |
400 TEventCode aType) |
411 { |
401 { |
412 TRACER("CGlxFetcherDialog::OfferKeyEventL"); |
402 TRACER("CGlxFetcherDialog::OfferKeyEventL"); |
413 TKeyResponse response = EKeyWasNotConsumed; |
403 TKeyResponse response = EKeyWasNotConsumed; |
414 response = iFetcherContainer->OfferKeyEventL(aKeyEvent,aType); |
404 response = iFetcherContainer->OfferKeyEventL(aKeyEvent,aType); |
415 |
405 |
416 if(response == EKeyWasNotConsumed) |
406 if(response == EKeyWasNotConsumed) |
|
407 { |
417 response = CAknDialog::OfferKeyEventL(aKeyEvent,aType); |
408 response = CAknDialog::OfferKeyEventL(aKeyEvent,aType); |
|
409 } |
418 |
410 |
419 return response; |
411 return response; |
420 } |
412 } |
421 |
413 |
422 //----------------------------------------------------------------------------- |
414 //----------------------------------------------------------------------------- |
423 // CGlxFetcherDialog::HandlePointerEventL |
415 // CGlxFetcherDialog::HandleDoubleTapEventL |
424 // Handles all pointer events to the screen. |
|
425 // Offers the events to the primary display control (container - widgets) |
|
426 // and also finally calls handlescreenbufferevent and draws the bitmap onto |
|
427 // the screen |
|
428 //----------------------------------------------------------------------------- |
|
429 void CGlxFetcherDialog::HandlePointerEventL( |
|
430 const TPointerEvent& aPointerEvent) |
|
431 { |
|
432 TRACER("CGlxFetcherDialog::HandlePointerEventL"); |
|
433 CCoeControl::HandlePointerEventL( aPointerEvent ); |
|
434 iEnv->PrimaryDisplay().HandlePointerEventL( aPointerEvent ); |
|
435 } |
|
436 |
|
437 //----------------------------------------------------------------------------- |
|
438 // CGlxFetcherDialog::HandleDoubleTapEvent |
|
439 // Callback from the container for double tap events |
416 // Callback from the container for double tap events |
440 // Offers the event from container to Dialog |
417 // Offers the event from container to Dialog |
441 //----------------------------------------------------------------------------- |
418 //----------------------------------------------------------------------------- |
442 void CGlxFetcherDialog::HandleDoubleTapEventL(TInt aCommandId) |
419 void CGlxFetcherDialog::HandleDoubleTapEventL(TInt aCommandId) |
443 { |
420 { |