equal
deleted
inserted
replaced
119 { |
119 { |
120 if(aButtonId == ESatelliteChangeView) |
120 if(aButtonId == ESatelliteChangeView) |
121 { |
121 { |
122 // Change view soft key pressed.Notify the control to change |
122 // Change view soft key pressed.Notify the control to change |
123 // the view and draw. |
123 // the view and draw. |
124 iSatelliteControl->ChangeView(); |
124 iSatelliteControl->ChangeViewL(); |
125 DrawNow(); |
125 DrawNow(); |
126 return EFalse; |
126 return EFalse; |
127 } |
127 } |
128 else |
128 else |
129 { |
129 { |
208 // CSatelliteDialog::UpdateL |
208 // CSatelliteDialog::UpdateL |
209 // ---------------------------------------------------------------------------- |
209 // ---------------------------------------------------------------------------- |
210 // |
210 // |
211 void CSatelliteDialog::UpdateL() |
211 void CSatelliteDialog::UpdateL() |
212 { |
212 { |
213 /* |
|
214 CEikButtonGroupContainer& buttonContainer = ButtonGroupContainer(); |
213 CEikButtonGroupContainer& buttonContainer = ButtonGroupContainer(); |
215 |
214 |
216 // Dim the "ChangeView" command when satellite data is not |
215 // Dim the "ChangeView" command when satellite data is not |
217 // available |
216 // available |
218 if(!iEngine.IsSatelliteDataAvailable()) |
217 if(!iEngine.IsSatelliteDataAvailable()) |
223 else |
222 else |
224 { |
223 { |
225 buttonContainer.SetCommandSetL(R_SATELLITE_DIALOG_CBA); |
224 buttonContainer.SetCommandSetL(R_SATELLITE_DIALOG_CBA); |
226 buttonContainer.DrawNow(); |
225 buttonContainer.DrawNow(); |
227 } |
226 } |
228 */ |
|
229 DrawNow(); |
227 DrawNow(); |
230 } |
228 } |
231 |
229 |
232 // ---------------------------------------------------------------------------- |
230 // ---------------------------------------------------------------------------- |
233 // CSatelliteDialog::OfferKeyEventL |
231 // CSatelliteDialog::OfferKeyEventL |
237 TEventCode aType) |
235 TEventCode aType) |
238 { |
236 { |
239 if ( aType == EEventKey && aKeyEvent.iCode == EKeyEnter || |
237 if ( aType == EEventKey && aKeyEvent.iCode == EKeyEnter || |
240 aType == EEventKey && aKeyEvent.iScanCode == EStdKeyEnter ) |
238 aType == EEventKey && aKeyEvent.iScanCode == EStdKeyEnter ) |
241 { |
239 { |
242 iSatelliteControl->ChangeView(); |
240 iSatelliteControl->ChangeViewL(); |
243 DrawNow(); |
241 DrawNow(); |
244 return EKeyWasConsumed; |
242 return EKeyWasConsumed; |
245 } |
243 } |
246 return CAknDialog::OfferKeyEventL( aKeyEvent, aType ); |
244 return CAknDialog::OfferKeyEventL( aKeyEvent, aType ); |
247 } |
245 } |