textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputimple.cpp
branchRCL_3
changeset 20 ebd48d2de13c
parent 7 6defe5d1bd39
child 21 ecbabf52600f
--- a/textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputimple.cpp	Thu Aug 19 10:15:25 2010 +0300
+++ b/textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputimple.cpp	Tue Aug 31 15:31:50 2010 +0300
@@ -497,11 +497,6 @@
 TBool CGSPenInputImple::ShowGuideLinePageL()
     {
     TInt currentItem = iModel->GuideLine();
-//    currentItem = ( 0 == currentItem ) ? 1 : 0;
-//    
-//    iModel->SetGuideLine(currentItem);
-//    
-//    return ETrue;
     
     if (currentItem == 1)
         {
@@ -658,30 +653,26 @@
 TBool CGSPenInputImple::ShowInputMethodForFindPageL()
     {
     TInt currentItem = iModel->InputMethodForFind();
-    currentItem = ( 0 == currentItem ) ? 1 : 0;
-    
-    iModel->SetInputMethodForFind(currentItem);
+
+    CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
+                                      R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, 
+                                      currentItem, 
+                                      iInputMethodForFindItems);
+
+    CleanupStack::PushL(dlg);
+    TBool ret = EFalse;
     
-    return ETrue;
-//    CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
-//                                      R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, 
-//                                      currentItem, 
-//                                      iInputMethodForFindItems);
-//
-//    CleanupStack::PushL(dlg);
-//    TBool ret = EFalse;
-//    
-//    if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
-//        {
-//        if(currentItem != iModel->InputMethodForFind())
-//            {
-//            iModel->SetInputMethodForFind(currentItem);
-//            ret = ETrue;
-//            }
-//        }
-// 
-//    CleanupStack::Pop(dlg);
-//    return ret;
+    if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
+        {
+        if(currentItem != iModel->InputMethodForFind())
+            {
+            iModel->SetInputMethodForFind(currentItem);
+            ret = ETrue;
+            }
+        }
+ 
+    CleanupStack::Pop(dlg);
+    return ret;
     }
 
 // ---------------------------------------------------------
@@ -690,14 +681,13 @@
 //
 TBool CGSPenInputImple::ShowChineseFindMethodPageL()
     {
-    
+    TInt currentItem = iModel->ChineseFindMethod();
     TBool ret = EFalse;
     if ( !iChineseFindMethodItems )
         {
         // In that case, don't open setting page
-        return ret;
+        return EFalse;
         }
-    TInt currentItem = iModel->ChineseFindMethod();
     CAknRadioButtonSettingPage* dlg 
                  = new (ELeave) CAknRadioButtonSettingPage(
                    R_GS_CHINESEFINDMETHOD_TEXT_SETTING_PAGE,