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; |
500 // currentItem = ( 0 == currentItem ) ? 1 : 0; |
501 |
|
502 iModel->SetGuideLine(currentItem); |
|
503 |
|
504 return ETrue; |
|
505 |
|
506 // if (currentItem == 1) |
|
507 // { |
|
508 // currentItem = 0; |
|
509 // } |
|
510 // else |
|
511 // { |
|
512 // currentItem = 1; |
|
513 // } |
|
514 // |
|
515 // CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
|
516 // R_GS_GUIDLINE_TEXT_SETTING_PAGE, |
|
517 // currentItem, |
|
518 // iGuideLineItems); |
|
519 // |
|
520 // CleanupStack::PushL(dlg); |
|
521 // |
501 // |
522 // TBool ret = EFalse; |
502 // iModel->SetGuideLine(currentItem); |
523 // if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
503 // |
524 // { |
504 // return ETrue; |
525 // if(currentItem == iModel->GuideLine()) |
505 |
526 // { |
506 if (currentItem == 1) |
527 // iModel->SetGuideLine(currentItem == 0? 1:0); |
507 { |
528 // ret = ETrue; |
508 currentItem = 0; |
529 // } |
509 } |
530 // } |
510 else |
531 // |
511 { |
532 // CleanupStack::Pop(dlg); |
512 currentItem = 1; |
533 |
513 } |
534 // return ret; |
514 |
|
515 CAknRadioButtonSettingPage* dlg = new (ELeave) CAknRadioButtonSettingPage( |
|
516 R_GS_GUIDLINE_TEXT_SETTING_PAGE, |
|
517 currentItem, |
|
518 iGuideLineItems); |
|
519 |
|
520 CleanupStack::PushL(dlg); |
|
521 |
|
522 TBool ret = EFalse; |
|
523 if (dlg->ExecuteLD(CAknSettingPage::EUpdateWhenChanged)) |
|
524 { |
|
525 if(currentItem == iModel->GuideLine()) |
|
526 { |
|
527 iModel->SetGuideLine(currentItem == 0? 1:0); |
|
528 ret = ETrue; |
|
529 } |
|
530 } |
|
531 |
|
532 CleanupStack::Pop(dlg); |
|
533 |
|
534 return ret; |
535 } |
535 } |
536 |
536 |
537 // --------------------------------------------------------- |
537 // --------------------------------------------------------- |
538 // Display "Recognition with dictionary" setting page |
538 // Display "Recognition with dictionary" setting page |
539 // --------------------------------------------------------- |
539 // --------------------------------------------------------- |