textinput/peninputarc/gsplugin/gspeninputplugin/src/gspeninputcontainer.cpp
branchRCL_3
changeset 3 f5a1e66df979
parent 0 eb1f2e154e89
child 7 6defe5d1bd39
equal deleted inserted replaced
0:eb1f2e154e89 3:f5a1e66df979
  1112 // ---------------------------------------------------------
  1112 // ---------------------------------------------------------
  1113 //
  1113 //
  1114 void CGSPenInputContainer::ShowGuideLinePageL()
  1114 void CGSPenInputContainer::ShowGuideLinePageL()
  1115     {
  1115     {
  1116     TInt currentItem = iModel->GuideLine();
  1116     TInt currentItem = iModel->GuideLine();
  1117     
  1117     currentItem = ( 0 == currentItem ) ? 1 : 0;
  1118     if (currentItem == 1)
  1118     
  1119         {
  1119     iModel->SetGuideLine(currentItem);
  1120         currentItem = 0;
  1120     UpdateListBoxL(EGSInputpenIdGuidLine);
  1121         }
  1121     
  1122     else
  1122 //    if (currentItem == 1)
  1123         {
  1123 //        {
  1124         currentItem = 1;
  1124 //        currentItem = 0;
  1125         }
  1125 //        }
  1126 
  1126 //    else
  1127     CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
  1127 //        {
  1128                                       R_GS_GUIDLINE_TEXT_SETTING_PAGE, 
  1128 //        currentItem = 1;
  1129                                       currentItem, 
  1129 //        }
  1130                                       iGuideLineItems);
  1130 //
  1131 
  1131 //    CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
  1132     CleanupStack::PushL(dlg);
  1132 //                                      R_GS_GUIDLINE_TEXT_SETTING_PAGE, 
  1133     
  1133 //                                      currentItem, 
  1134     if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
  1134 //                                      iGuideLineItems);
  1135         {
  1135 //
  1136         if(currentItem == iModel->GuideLine())
  1136 //    CleanupStack::PushL(dlg);
  1137             {
  1137 //    
  1138             iModel->SetGuideLine(currentItem == 0? 1:0);
  1138 //    if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
  1139             UpdateListBoxL(EGSInputpenIdGuidLine);
  1139 //        {
  1140             }
  1140 //        if(currentItem == iModel->GuideLine())
  1141         }
  1141 //            {
  1142  
  1142 //            iModel->SetGuideLine(currentItem == 0? 1:0);
  1143     CleanupStack::Pop(dlg);  
  1143 //            UpdateListBoxL(EGSInputpenIdGuidLine);
       
  1144 //            }
       
  1145 //        }
       
  1146 // 
       
  1147 //    CleanupStack::Pop(dlg);  
  1144     }
  1148     }
  1145 
  1149 
  1146 // ---------------------------------------------------------
  1150 // ---------------------------------------------------------
  1147 // Display recognition with dictionary setting page
  1151 // Display recognition with dictionary setting page
  1148 // ---------------------------------------------------------
  1152 // ---------------------------------------------------------
  1184 // ---------------------------------------------------------
  1188 // ---------------------------------------------------------
  1185 //
  1189 //
  1186 void CGSPenInputContainer::ShowInputMethodForFindPageL()
  1190 void CGSPenInputContainer::ShowInputMethodForFindPageL()
  1187     {
  1191     {
  1188     TInt currentItem = iModel->InputMethodForFind();
  1192     TInt currentItem = iModel->InputMethodForFind();
  1189 
  1193     currentItem = ( 0 == currentItem ) ? 1 : 0;
  1190     CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
  1194 
  1191                                       R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, 
  1195     iModel->SetInputMethodForFind(currentItem);
  1192                                       currentItem, 
  1196     UpdateListBoxL(EGSInputpenIdInputMethodForFind);
  1193                                       iInputMethodForFindItems);
  1197 
  1194 
  1198 //    CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage(
  1195     CleanupStack::PushL(dlg);
  1199 //                                      R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, 
  1196     
  1200 //                                      currentItem, 
  1197     if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
  1201 //                                      iInputMethodForFindItems);
  1198         {
  1202 //
  1199         if(currentItem != iModel->InputMethodForFind())
  1203 //    CleanupStack::PushL(dlg);
  1200             {
  1204 //    
  1201             iModel->SetInputMethodForFind(currentItem);
  1205 //    if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged))
  1202             UpdateListBoxL(EGSInputpenIdInputMethodForFind);
  1206 //        {
  1203             }
  1207 //        if(currentItem != iModel->InputMethodForFind())
  1204         }
  1208 //            {
  1205  
  1209 //            iModel->SetInputMethodForFind(currentItem);
  1206     CleanupStack::Pop(dlg);
  1210 //            UpdateListBoxL(EGSInputpenIdInputMethodForFind);
       
  1211 //            }
       
  1212 //        }
       
  1213 // 
       
  1214 //    CleanupStack::Pop(dlg);
  1207     }
  1215     }
  1208 
  1216 
  1209 // ---------------------------------------------------------
  1217 // ---------------------------------------------------------
  1210 // Display chinese find method setting page
  1218 // Display chinese find method setting page
  1211 // ---------------------------------------------------------
  1219 // ---------------------------------------------------------