495 // --------------------------------------------------------- |
495 // --------------------------------------------------------- |
496 // |
496 // |
497 TBool CGSPenInputImple::ShowGuideLinePageL() |
497 TBool CGSPenInputImple::ShowGuideLinePageL() |
498 { |
498 { |
499 TInt currentItem = iModel->GuideLine(); |
499 TInt currentItem = iModel->GuideLine(); |
500 |
500 currentItem = ( 0 == currentItem ) ? 1 : 0; |
501 if (currentItem == 1) |
501 |
502 { |
502 iModel->SetGuideLine(currentItem); |
503 currentItem = 0; |
503 |
504 } |
504 return ETrue; |
505 else |
505 |
506 { |
506 // if (currentItem == 1) |
507 currentItem = 1; |
507 // { |
508 } |
508 // currentItem = 0; |
509 |
509 // } |
510 CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
510 // else |
511 R_GS_GUIDLINE_TEXT_SETTING_PAGE, |
511 // { |
512 currentItem, |
512 // currentItem = 1; |
513 iGuideLineItems); |
513 // } |
514 |
514 // |
515 CleanupStack::PushL(dlg); |
515 // CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
516 |
516 // R_GS_GUIDLINE_TEXT_SETTING_PAGE, |
517 TBool ret = EFalse; |
517 // currentItem, |
518 if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
518 // iGuideLineItems); |
519 { |
519 // |
520 if(currentItem == iModel->GuideLine()) |
520 // CleanupStack::PushL(dlg); |
521 { |
521 // |
522 iModel->SetGuideLine(currentItem == 0? 1:0); |
522 // TBool ret = EFalse; |
523 ret = ETrue; |
523 // if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
524 } |
524 // { |
525 } |
525 // if(currentItem == iModel->GuideLine()) |
526 |
526 // { |
527 CleanupStack::Pop(dlg); |
527 // iModel->SetGuideLine(currentItem == 0? 1:0); |
528 |
528 // ret = ETrue; |
529 return ret; |
529 // } |
|
530 // } |
|
531 // |
|
532 // CleanupStack::Pop(dlg); |
|
533 |
|
534 // return ret; |
530 } |
535 } |
531 |
536 |
532 // --------------------------------------------------------- |
537 // --------------------------------------------------------- |
533 // Display "Recognition with dictionary" setting page |
538 // Display "Recognition with dictionary" setting page |
534 // --------------------------------------------------------- |
539 // --------------------------------------------------------- |
651 // --------------------------------------------------------- |
656 // --------------------------------------------------------- |
652 // |
657 // |
653 TBool CGSPenInputImple::ShowInputMethodForFindPageL() |
658 TBool CGSPenInputImple::ShowInputMethodForFindPageL() |
654 { |
659 { |
655 TInt currentItem = iModel->InputMethodForFind(); |
660 TInt currentItem = iModel->InputMethodForFind(); |
656 |
661 currentItem = ( 0 == currentItem ) ? 1 : 0; |
657 CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
662 |
658 R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, |
663 iModel->SetInputMethodForFind(currentItem); |
659 currentItem, |
664 |
660 iInputMethodForFindItems); |
665 return ETrue; |
661 |
666 // CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
662 CleanupStack::PushL(dlg); |
667 // R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, |
663 TBool ret = EFalse; |
668 // currentItem, |
664 |
669 // iInputMethodForFindItems); |
665 if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
670 // |
666 { |
671 // CleanupStack::PushL(dlg); |
667 if(currentItem != iModel->InputMethodForFind()) |
672 // TBool ret = EFalse; |
668 { |
673 // |
669 iModel->SetInputMethodForFind(currentItem); |
674 // if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
670 ret = ETrue; |
675 // { |
671 } |
676 // if(currentItem != iModel->InputMethodForFind()) |
672 } |
677 // { |
673 |
678 // iModel->SetInputMethodForFind(currentItem); |
674 CleanupStack::Pop(dlg); |
679 // ret = ETrue; |
675 return ret; |
680 // } |
|
681 // } |
|
682 // |
|
683 // CleanupStack::Pop(dlg); |
|
684 // return ret; |
676 } |
685 } |
677 |
686 |
678 // --------------------------------------------------------- |
687 // --------------------------------------------------------- |
679 // Display "Chinese Find Method" setting page |
688 // Display "Chinese Find Method" setting page |
680 // --------------------------------------------------------- |
689 // --------------------------------------------------------- |
681 // |
690 // |
682 TBool CGSPenInputImple::ShowChineseFindMethodPageL() |
691 TBool CGSPenInputImple::ShowChineseFindMethodPageL() |
683 { |
692 { |
684 TInt currentItem = iModel->ChineseFindMethod(); |
693 |
685 TBool ret = EFalse; |
694 TBool ret = EFalse; |
686 if ( !iChineseFindMethodItems ) |
695 if ( !iChineseFindMethodItems ) |
687 { |
696 { |
688 // In that case, don't open setting page |
697 // In that case, don't open setting page |
689 return EFalse; |
698 return ret; |
690 } |
699 } |
|
700 TInt currentItem = iModel->ChineseFindMethod(); |
691 CAknRadioButtonSettingPage* dlg |
701 CAknRadioButtonSettingPage* dlg |
692 = new (ELeave) CAknRadioButtonSettingPage( |
702 = new (ELeave) CAknRadioButtonSettingPage( |
693 R_GS_CHINESEFINDMETHOD_TEXT_SETTING_PAGE, |
703 R_GS_CHINESEFINDMETHOD_TEXT_SETTING_PAGE, |
694 currentItem, |
704 currentItem, |
695 iChineseFindMethodItems); |
705 iChineseFindMethodItems); |