equal
deleted
inserted
replaced
1495 EXPORT_C CFbsBitmap* CAknSlider::CreateBitmapL( TInt aValue, TInt aResourceId ) |
1495 EXPORT_C CFbsBitmap* CAknSlider::CreateBitmapL( TInt aValue, TInt aResourceId ) |
1496 { |
1496 { |
1497 TResourceReader reader; |
1497 TResourceReader reader; |
1498 CEikonEnv::Static()->CreateResourceReaderLC( reader, aResourceId ); |
1498 CEikonEnv::Static()->CreateResourceReaderLC( reader, aResourceId ); |
1499 |
1499 |
1500 reader.ReadInt16(); // ignore layout |
1500 TInt sliderType = reader.ReadInt16(); |
|
1501 if ( sliderType == EAknSliderWithFeedbackStyle ) |
|
1502 { |
|
1503 reader.ReadInt16(); // ignore type |
|
1504 reader.ReadInt16(); // ignore layout |
|
1505 } |
1501 TInt minValue = reader.ReadInt16(); |
1506 TInt minValue = reader.ReadInt16(); |
1502 TInt maxValue = reader.ReadInt16(); |
1507 TInt maxValue = reader.ReadInt16(); |
1503 CleanupStack::PopAndDestroy(); // reader |
1508 CleanupStack::PopAndDestroy(); // reader |
1504 |
1509 |
1505 return CreateBitmapL( aValue, minValue, maxValue ); |
1510 return CreateBitmapL( aValue, minValue, maxValue ); |
1536 TInt aValue, TInt aResourceId ) |
1541 TInt aValue, TInt aResourceId ) |
1537 { |
1542 { |
1538 TResourceReader reader; |
1543 TResourceReader reader; |
1539 CEikonEnv::Static()->CreateResourceReaderLC( reader, aResourceId ); |
1544 CEikonEnv::Static()->CreateResourceReaderLC( reader, aResourceId ); |
1540 |
1545 |
1541 reader.ReadInt16(); // ignore layout |
1546 TInt sliderType = reader.ReadInt16(); |
|
1547 if ( sliderType == EAknSliderWithFeedbackStyle ) |
|
1548 { |
|
1549 reader.ReadInt16(); // ignore type |
|
1550 reader.ReadInt16(); // ignore layout |
|
1551 } |
1542 TInt minValue = reader.ReadInt16(); |
1552 TInt minValue = reader.ReadInt16(); |
1543 TInt maxValue = reader.ReadInt16(); |
1553 TInt maxValue = reader.ReadInt16(); |
1544 CleanupStack::PopAndDestroy(); // reader |
1554 CleanupStack::PopAndDestroy(); // reader |
1545 |
1555 |
1546 return CreateSetStyleListBoxIconL( aValue, minValue, maxValue ); |
1556 return CreateSetStyleListBoxIconL( aValue, minValue, maxValue ); |
4246 void CAknSlider::StartFeedback( const TPointerEvent* aPointerEvent, TTimeIntervalMicroSeconds32 aTimeout ) |
4256 void CAknSlider::StartFeedback( const TPointerEvent* aPointerEvent, TTimeIntervalMicroSeconds32 aTimeout ) |
4247 { |
4257 { |
4248 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
4258 MTouchFeedback* feedback = MTouchFeedback::Instance(); |
4249 if ( feedback ) |
4259 if ( feedback ) |
4250 { |
4260 { |
|
4261 TTouchContinuousFeedback type = ETouchContinuousSmooth; |
4251 TInt intensity = KStableFeedbackIntesity; |
4262 TInt intensity = KStableFeedbackIntesity; |
|
4263 |
4252 if ( SliderData()->iFeedbackStyle == EAknSliderFbDynamic ) |
4264 if ( SliderData()->iFeedbackStyle == EAknSliderFbDynamic ) |
4253 { |
4265 { |
|
4266 type = ETouchDynamicSlider; |
4254 intensity = FeedbackIntensity(); |
4267 intensity = FeedbackIntensity(); |
4255 } |
4268 } |
4256 feedback->StartFeedback( this, ETouchDynamicSlider, aPointerEvent, intensity, aTimeout ); |
4269 |
|
4270 feedback->StartFeedback( this, type, aPointerEvent, intensity, aTimeout ); |
4257 iExt->SetFlag( CAknSliderExtension::EFlagPlayingContinuousFb ); |
4271 iExt->SetFlag( CAknSliderExtension::EFlagPlayingContinuousFb ); |
4258 } |
4272 } |
4259 } |
4273 } |
4260 |
4274 |
4261 // ---------------------------------------------------------------------------- |
4275 // ---------------------------------------------------------------------------- |