43 #include "peninputgenericitutdatamgr.h" |
43 #include "peninputgenericitutdatamgr.h" |
44 #include "peninputgenericitutuimgrbase.h" |
44 #include "peninputgenericitutuimgrbase.h" |
45 #include "peninputgenericitutuistatebase.h" |
45 #include "peninputgenericitutuistatebase.h" |
46 #include "peninputgenericitutconverter.h" |
46 #include "peninputgenericitutconverter.h" |
47 |
47 |
|
48 _LIT(KEmptyString, ""); |
48 const TInt KPeriodicTimerIntervalSec(2500000); |
49 const TInt KPeriodicTimerIntervalSec(2500000); |
49 /* Teleca change end, 18.05.2009 ssal */ |
50 /* Teleca change end, 18.05.2009 ssal */ |
50 CGenericItutWindowManager* CGenericItutWindowManager::NewL(CGenericItutUiLayout* aLayoutOwner, |
51 CGenericItutWindowManager* CGenericItutWindowManager::NewL(CGenericItutUiLayout* aLayoutOwner, |
51 CGenericItutDataMgr* aDataMgr) |
52 CGenericItutDataMgr* aDataMgr) |
52 { |
53 { |
414 CFepUiLayout* CGenericItutWindowManager::UiLayout() |
430 CFepUiLayout* CGenericItutWindowManager::UiLayout() |
415 { |
431 { |
416 return iLayoutOwner; |
432 return iLayoutOwner; |
417 } |
433 } |
418 |
434 |
|
435 TBool CGenericItutWindowManager::IsPortraitWest() |
|
436 { |
|
437 return !iDataMgr->IsChinese() && !iDataMgr->IsLandScape(); |
|
438 } |
419 void CGenericItutWindowManager::HandleAppInfoChangeL(const TDesC& aInfo) |
439 void CGenericItutWindowManager::HandleAppInfoChangeL(const TDesC& aInfo) |
420 { |
440 { |
421 CGenericItutUiLayout * itutLayoutOwner; |
441 CGenericItutUiLayout * itutLayoutOwner; |
422 itutLayoutOwner = static_cast<CGenericItutUiLayout *>(UiLayout()); |
442 itutLayoutOwner = static_cast<CGenericItutUiLayout *>(UiLayout()); |
423 if ( aInfo.Length() > 0 && |
443 if ( aInfo.Length() > 0 && |
424 itutLayoutOwner->UiMgr()->CurrentState() && |
444 itutLayoutOwner->UiMgr()->CurrentState() && |
425 itutLayoutOwner->UiMgr()->CurrentState()->StateType() != |
445 itutLayoutOwner->UiMgr()->CurrentState()->StateType() != |
426 CGenericItutUiMgrBase::EStateSpelling && |
446 CGenericItutUiMgrBase::EStateSpelling && |
427 !iInEditWordQueryDlg) |
447 !iInEditWordQueryDlg) |
428 { |
448 { |
|
449 if ( IsPortraitWest() && (!iDataMgr->IsChineseGlobalLanguage())) |
|
450 { |
|
451 iWindow->Icf()->HideBubble(); |
|
452 iWindow->SetIndiWithTextFlag( ETrue ); |
|
453 iWindow->IndiBubbleWithText(); |
|
454 |
|
455 if ( iDataMgr->IndicatorData().iIndicatorImgID != 0 && |
|
456 iDataMgr->IndicatorData().iIndicatorMaskID != 0 && |
|
457 iDataMgr->IndicatorData().iIndicatorTextImgID != 0 && |
|
458 iDataMgr->IndicatorData().iIndicatorTextMaskID != 0 ) |
|
459 { |
|
460 iWindow->SetIndiBubbleImageL( |
|
461 iDataMgr->IndicatorData().iIndicatorImgID, |
|
462 iDataMgr->IndicatorData().iIndicatorMaskID, |
|
463 iDataMgr->IndicatorData().iIndicatorTextImgID, |
|
464 iDataMgr->IndicatorData().iIndicatorTextMaskID); |
|
465 } |
|
466 } |
429 iWindow->Icf()->ShowBubble(aInfo,iWindow->Icf()->MsgBubbleCtrl()->Rect()); |
467 iWindow->Icf()->ShowBubble(aInfo,iWindow->Icf()->MsgBubbleCtrl()->Rect()); |
430 } |
468 } |
431 else |
469 else |
432 { |
470 { |
433 iWindow->Icf()->HideBubble(); |
471 if ((!IsPortraitWest()) || iDataMgr->IsChineseGlobalLanguage()) |
|
472 { |
|
473 iWindow->Icf()->HideBubble(); |
|
474 } |
|
475 else |
|
476 { |
|
477 if ( itutLayoutOwner->UiMgr()->CurrentState() && |
|
478 itutLayoutOwner->UiMgr()->CurrentState()->StateType() != |
|
479 CGenericItutUiMgrBase::EStateSpelling ) |
|
480 { |
|
481 iWindow->Icf()->HideBubble(); |
|
482 iWindow->SetIndiWithTextFlag( EFalse ); |
|
483 iWindow->IndiBubbleWithoutText(); |
|
484 } |
|
485 |
|
486 if ( iDataMgr->IndicatorData().iIndicatorImgID != 0 && |
|
487 iDataMgr->IndicatorData().iIndicatorMaskID != 0 && |
|
488 iDataMgr->IndicatorData().iIndicatorTextImgID != 0 && |
|
489 iDataMgr->IndicatorData().iIndicatorTextMaskID != 0 ) |
|
490 { |
|
491 iWindow->SetIndiBubbleImageL( |
|
492 iDataMgr->IndicatorData().iIndicatorImgID, |
|
493 iDataMgr->IndicatorData().iIndicatorMaskID, |
|
494 iDataMgr->IndicatorData().iIndicatorTextImgID, |
|
495 iDataMgr->IndicatorData().iIndicatorTextMaskID); |
|
496 } |
|
497 |
|
498 iWindow->Icf()->ShowBubble( KEmptyString, |
|
499 iWindow->Icf()->MsgBubbleCtrl()->Rect()); |
|
500 } |
434 } |
501 } |
435 } |
502 } |
436 |
503 |
437 /* Teleca change begin, 19.05.2009 ssal */ |
504 /* Teleca change begin, 19.05.2009 ssal */ |
438 void CGenericItutWindowManager::DisplayWarningNote(const TDesC& aInfo) |
505 void CGenericItutWindowManager::DisplayWarningNote(const TDesC& aInfo) |