textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputimple.cpp
branchRCL_3
changeset 44 ecbabf52600f
parent 43 ebd48d2de13c
equal deleted inserted replaced
43:ebd48d2de13c 44:ecbabf52600f
   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 //    currentItem = ( 0 == currentItem ) ? 1 : 0;
       
   501 //    
       
   502 //    iModel->SetGuideLine(currentItem);
       
   503 //    
       
   504 //    return ETrue;
   500     
   505     
   501     if (currentItem == 1)
   506     if (currentItem == 1)
   502         {
   507         {
   503         currentItem = 0;
   508         currentItem = 0;
   504         }
   509         }
   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);