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