equal
deleted
inserted
replaced
80 public: // Constructors and destructors |
80 public: // Constructors and destructors |
81 /** |
81 /** |
82 * C++ constructor. |
82 * C++ constructor. |
83 */ |
83 */ |
84 CCugQuery( TInt& aNumber,const TTone aTone = ENoTone ); |
84 CCugQuery( TInt& aNumber,const TTone aTone = ENoTone ); |
|
85 /** |
|
86 * Prepares the dialog, by constructing it from the specified resource. Overwrite the base class. |
|
87 * @param aResourceId The resource ID of the dialog. |
|
88 */ |
|
89 void PrepareLC( TInt aResourceId ); |
|
90 |
85 protected: // From base classes |
91 protected: // From base classes |
86 /** |
92 /** |
87 * From CCAknNumberQueryDialog Left softkey is allways OK. |
93 * From CCAknNumberQueryDialog Left softkey is allways OK. |
88 */ |
94 */ |
89 void UpdateLeftSoftKeyL(); |
95 void UpdateLeftSoftKeyL(); |
539 { |
545 { |
540 while ( ETrue ) |
546 while ( ETrue ) |
541 { |
547 { |
542 CCugQuery* dlg = new( ELeave ) CCugQuery( aCugIndex, |
548 CCugQuery* dlg = new( ELeave ) CCugQuery( aCugIndex, |
543 CAknQueryDialog::ENoTone ); |
549 CAknQueryDialog::ENoTone ); |
544 |
550 dlg->PrepareLC( R_CUG_INDEX ); |
545 if ( dlg->ExecuteLD( R_CUG_INDEX ) ) |
551 if ( dlg->RunLD() ) |
546 { |
552 { |
547 // check content validity (?-32767), |
553 // check content validity (?-32767), |
548 // ui spec concerned only values above limit |
554 // ui spec concerned only values above limit |
549 if( !iCugSettings.IsValueValidCugIndex( aCugIndex ) |
555 if( !iCugSettings.IsValueValidCugIndex( aCugIndex ) |
550 && ( aCugIndex != KEmptyCugIndex ) |
556 && ( aCugIndex != KEmptyCugIndex ) |
589 void CCugQuery::UpdateLeftSoftKeyL() |
595 void CCugQuery::UpdateLeftSoftKeyL() |
590 { |
596 { |
591 MakeLeftSoftkeyVisible( ETrue ); |
597 MakeLeftSoftkeyVisible( ETrue ); |
592 } |
598 } |
593 |
599 |
|
600 // --------------------------------------------------------------------------- |
|
601 // CCugQuery::PrepareLC( TInt aResourceId ) |
|
602 // |
|
603 // --------------------------------------------------------------------------- |
|
604 // |
|
605 void CCugQuery::PrepareLC( TInt aResourceId ) |
|
606 { |
|
607 CAknNumberQueryDialog::PrepareLC( aResourceId ); |
|
608 CAknQueryControl* queryControl = QueryControl(); |
|
609 if( queryControl ) |
|
610 { |
|
611 CEikEdwin* edwin = static_cast< CEikEdwin* >( queryControl->ControlByLayoutOrNull( ENumberLayout ) ); |
|
612 if( edwin ) |
|
613 { |
|
614 edwin->SetAknEditorNumericKeymap( EAknEditorPlainNumberModeKeymap ); |
|
615 } |
|
616 } |
|
617 } |
594 |
618 |
595 // --------------------------------------------------------------------------- |
619 // --------------------------------------------------------------------------- |
596 // CGSSimSecPlugin::HandleResourceChangeL( TInt aType ) |
620 // CGSSimSecPlugin::HandleResourceChangeL( TInt aType ) |
597 // Updates view layout |
621 // Updates view layout |
598 // |
622 // |