textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputimple.cpp
branchRCL_3
changeset 20 ebd48d2de13c
parent 7 6defe5d1bd39
child 21 ecbabf52600f
equal deleted inserted replaced
19:ac7e4d1d9209 20:ebd48d2de13c
   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;
       
   505     
   500     
   506     if (currentItem == 1)
   501     if (currentItem == 1)
   507         {
   502         {
   508         currentItem = 0;
   503         currentItem = 0;
   509         }
   504         }
   656 // ---------------------------------------------------------
   651 // ---------------------------------------------------------
   657 //
   652 //
   658 TBool CGSPenInputImple::ShowInputMethodForFindPageL()
   653 TBool CGSPenInputImple::ShowInputMethodForFindPageL()
   659     {
   654     {
   660     TInt currentItem = iModel->InputMethodForFind();
   655     TInt currentItem = iModel->InputMethodForFind();
   661     currentItem = ( 0 == currentItem ) ? 1 : 0;
   656 
   662     
   657     CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
   663     iModel->SetInputMethodForFind(currentItem);
   658                                       R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, 
   664     
   659                                       currentItem, 
   665     return ETrue;
   660                                       iInputMethodForFindItems);
   666 //    CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
   661 
   667 //                                      R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, 
   662     CleanupStack::PushL(dlg);
   668 //                                      currentItem, 
   663     TBool ret = EFalse;
   669 //                                      iInputMethodForFindItems);
   664     
   670 //
   665     if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
   671 //    CleanupStack::PushL(dlg);
   666         {
   672 //    TBool ret = EFalse;
   667         if(currentItem != iModel->InputMethodForFind())
   673 //    
   668             {
   674 //    if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
   669             iModel->SetInputMethodForFind(currentItem);
   675 //        {
   670             ret = ETrue;
   676 //        if(currentItem != iModel->InputMethodForFind())
   671             }
   677 //            {
   672         }
   678 //            iModel->SetInputMethodForFind(currentItem);
   673  
   679 //            ret = ETrue;
   674     CleanupStack::Pop(dlg);
   680 //            }
   675     return ret;
   681 //        }
       
   682 // 
       
   683 //    CleanupStack::Pop(dlg);
       
   684 //    return ret;
       
   685     }
   676     }
   686 
   677 
   687 // ---------------------------------------------------------
   678 // ---------------------------------------------------------
   688 // Display "Chinese Find Method" setting page
   679 // Display "Chinese Find Method" setting page
   689 // ---------------------------------------------------------
   680 // ---------------------------------------------------------
   690 //
   681 //
   691 TBool CGSPenInputImple::ShowChineseFindMethodPageL()
   682 TBool CGSPenInputImple::ShowChineseFindMethodPageL()
   692     {
   683     {
   693     
   684     TInt currentItem = iModel->ChineseFindMethod();
   694     TBool ret = EFalse;
   685     TBool ret = EFalse;
   695     if ( !iChineseFindMethodItems )
   686     if ( !iChineseFindMethodItems )
   696         {
   687         {
   697         // In that case, don't open setting page
   688         // In that case, don't open setting page
   698         return ret;
   689         return EFalse;
   699         }
   690         }
   700     TInt currentItem = iModel->ChineseFindMethod();
       
   701     CAknRadioButtonSettingPage* dlg 
   691     CAknRadioButtonSettingPage* dlg 
   702                  = new (ELeave) CAknRadioButtonSettingPage(
   692                  = new (ELeave) CAknRadioButtonSettingPage(
   703                    R_GS_CHINESEFINDMETHOD_TEXT_SETTING_PAGE,
   693                    R_GS_CHINESEFINDMETHOD_TEXT_SETTING_PAGE,
   704                    currentItem,
   694                    currentItem,
   705                    iChineseFindMethodItems);
   695                    iChineseFindMethodItems);