516 iListboxItemArray->SetDynamicTextL(EGSDefaultChineseOnscreenKeyboard, ptrBuffer); |
516 iListboxItemArray->SetDynamicTextL(EGSDefaultChineseOnscreenKeyboard, ptrBuffer); |
517 } |
517 } |
518 CleanupStack::PopAndDestroy(dynamicText); |
518 CleanupStack::PopAndDestroy(dynamicText); |
519 |
519 |
520 // And add to listbox |
520 // And add to listbox |
521 iListboxItemArray->SetItemVisibilityL( |
521 if( iListboxItemArray != NULL ) |
|
522 { |
|
523 iListboxItemArray->SetItemVisibilityL( |
522 EGSDefaultChineseOnscreenKeyboard, |
524 EGSDefaultChineseOnscreenKeyboard, |
523 bVisible ? CGSItemTextArray::EVisible : CGSItemTextArray::EInvisible); |
525 bVisible ? CGSItemTextArray::EVisible : CGSItemTextArray::EInvisible); |
|
526 } |
524 } |
527 } |
525 |
528 |
526 // --------------------------------------------------------- |
529 // --------------------------------------------------------- |
527 // Create listbox writing speed item |
530 // Create listbox writing speed item |
528 // --------------------------------------------------------- |
531 // --------------------------------------------------------- |
1119 // --------------------------------------------------------- |
1123 // --------------------------------------------------------- |
1120 // |
1124 // |
1121 void CGSPenInputContainer::ShowGuideLinePageL() |
1125 void CGSPenInputContainer::ShowGuideLinePageL() |
1122 { |
1126 { |
1123 TInt currentItem = iModel->GuideLine(); |
1127 TInt currentItem = iModel->GuideLine(); |
1124 |
1128 currentItem = ( 0 == currentItem ) ? 1 : 0; |
1125 if (currentItem == 1) |
1129 |
1126 { |
1130 iModel->SetGuideLine(currentItem); |
1127 currentItem = 0; |
1131 UpdateListBoxL(EGSInputpenIdGuidLine); |
1128 } |
1132 |
1129 else |
1133 // if (currentItem == 1) |
1130 { |
1134 // { |
1131 currentItem = 1; |
1135 // currentItem = 0; |
1132 } |
1136 // } |
1133 |
1137 // else |
1134 CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
1138 // { |
1135 R_GS_GUIDLINE_TEXT_SETTING_PAGE, |
1139 // currentItem = 1; |
1136 currentItem, |
1140 // } |
1137 iGuideLineItems); |
1141 // |
1138 |
1142 // CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
1139 CleanupStack::PushL(dlg); |
1143 // R_GS_GUIDLINE_TEXT_SETTING_PAGE, |
1140 |
1144 // currentItem, |
1141 if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
1145 // iGuideLineItems); |
1142 { |
1146 // |
1143 if(currentItem == iModel->GuideLine()) |
1147 // CleanupStack::PushL(dlg); |
1144 { |
1148 // |
1145 iModel->SetGuideLine(currentItem == 0? 1:0); |
1149 // if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
1146 UpdateListBoxL(EGSInputpenIdGuidLine); |
1150 // { |
1147 } |
1151 // if(currentItem == iModel->GuideLine()) |
1148 } |
1152 // { |
1149 |
1153 // iModel->SetGuideLine(currentItem == 0? 1:0); |
1150 CleanupStack::Pop(dlg); |
1154 // UpdateListBoxL(EGSInputpenIdGuidLine); |
|
1155 // } |
|
1156 // } |
|
1157 // |
|
1158 // CleanupStack::Pop(dlg); |
1151 } |
1159 } |
1152 |
1160 |
1153 // --------------------------------------------------------- |
1161 // --------------------------------------------------------- |
1154 // Display recognition with dictionary setting page |
1162 // Display recognition with dictionary setting page |
1155 // --------------------------------------------------------- |
1163 // --------------------------------------------------------- |
1156 // |
1164 // |
1157 void CGSPenInputContainer::ShowRecognitionWithDictionaryL() |
1165 void CGSPenInputContainer::ShowRecognitionWithDictionaryL() |
1158 { |
1166 { |
1159 TInt currentItem = iModel->RecognitionWithDictionary(); |
1167 TInt currentItem = iModel->RecognitionWithDictionary(); |
1160 |
1168 currentItem = ( 0 == currentItem ) ? 1 : 0; |
1161 if (currentItem == 1) |
1169 iModel->SetRecognitionWithDictionary(currentItem); |
1162 { |
1170 UpdateListBoxL(EGSInputpenIdRecognitionWithDictionary); |
1163 currentItem = 0; |
1171 |
1164 } |
|
1165 else |
|
1166 { |
|
1167 currentItem = 1; |
|
1168 } |
|
1169 |
|
1170 CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
|
1171 R_GS_RECOGNITIONWITHDICTIONARY_TEXT_SETTING_PAGE, |
|
1172 currentItem, |
|
1173 iRecognitionWithDictionaryItems); |
|
1174 |
|
1175 CleanupStack::PushL(dlg); |
|
1176 |
|
1177 if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
|
1178 { |
|
1179 if(currentItem == iModel->RecognitionWithDictionary()) |
|
1180 { |
|
1181 iModel->SetRecognitionWithDictionary(currentItem == 0? 1:0); |
|
1182 UpdateListBoxL(EGSInputpenIdRecognitionWithDictionary); |
|
1183 } |
|
1184 } |
|
1185 |
|
1186 CleanupStack::Pop(dlg); |
|
1187 } |
1172 } |
1188 |
1173 |
1189 // --------------------------------------------------------- |
1174 // --------------------------------------------------------- |
1190 // Display input method for find setting page |
1175 // Display input method for find setting page |
1191 // --------------------------------------------------------- |
1176 // --------------------------------------------------------- |
1192 // |
1177 // |
1193 void CGSPenInputContainer::ShowInputMethodForFindPageL() |
1178 void CGSPenInputContainer::ShowInputMethodForFindPageL() |
1194 { |
1179 { |
1195 TInt currentItem = iModel->InputMethodForFind(); |
1180 TInt currentItem = iModel->InputMethodForFind(); |
1196 |
1181 currentItem = ( 0 == currentItem ) ? 1 : 0; |
1197 CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
1182 |
1198 R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, |
1183 iModel->SetInputMethodForFind(currentItem); |
1199 currentItem, |
1184 UpdateListBoxL(EGSInputpenIdInputMethodForFind); |
1200 iInputMethodForFindItems); |
1185 |
1201 |
1186 // CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
1202 CleanupStack::PushL(dlg); |
1187 // R_GS_INPUTMETHODFORFIND_TEXT_SETTING_PAGE, |
1203 |
1188 // currentItem, |
1204 if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
1189 // iInputMethodForFindItems); |
1205 { |
1190 // |
1206 if(currentItem != iModel->InputMethodForFind()) |
1191 // CleanupStack::PushL(dlg); |
1207 { |
1192 // |
1208 iModel->SetInputMethodForFind(currentItem); |
1193 // if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
1209 UpdateListBoxL(EGSInputpenIdInputMethodForFind); |
1194 // { |
1210 } |
1195 // if(currentItem != iModel->InputMethodForFind()) |
1211 } |
1196 // { |
1212 |
1197 // iModel->SetInputMethodForFind(currentItem); |
1213 CleanupStack::Pop(dlg); |
1198 // UpdateListBoxL(EGSInputpenIdInputMethodForFind); |
|
1199 // } |
|
1200 // } |
|
1201 // |
|
1202 // CleanupStack::Pop(dlg); |
1214 } |
1203 } |
1215 |
1204 |
1216 // --------------------------------------------------------- |
1205 // --------------------------------------------------------- |
1217 // Display chinese find method setting page |
1206 // Display chinese find method setting page |
1218 // --------------------------------------------------------- |
1207 // --------------------------------------------------------- |