equal
deleted
inserted
replaced
28 #include <AknPriv.hrh> |
28 #include <AknPriv.hrh> |
29 #include <AknIconArray.h> |
29 #include <AknIconArray.h> |
30 #include <avkon.mbg> |
30 #include <avkon.mbg> |
31 #include <gulicon.h> |
31 #include <gulicon.h> |
32 #include <aknmarkingmodeobserver.h> |
32 #include <aknmarkingmodeobserver.h> |
|
33 #include <aknmarkingmode.h> |
33 #include "akntreelistview.h" |
34 #include "akntreelistview.h" |
34 #include "akntree.h" |
35 #include "akntree.h" |
35 #include "akntreelist.h" |
36 #include "akntreelist.h" |
36 #include "akntreeiterator.h" |
37 #include "akntreeiterator.h" |
37 #include "akntreelistphysicshandler.h" |
38 #include "akntreelistphysicshandler.h" |
2969 } |
2970 } |
2970 } |
2971 } |
2971 const TInt itemCount = iItems.Count(); |
2972 const TInt itemCount = iItems.Count(); |
2972 for ( TInt ii = 0; ii < itemCount; ++ii ) |
2973 for ( TInt ii = 0; ii < itemCount; ++ii ) |
2973 { |
2974 { |
|
2975 TBool itemIsMarkable = ( iItems[ii].Item() && |
|
2976 iItems[ii].Item()->IsMarkable() ); |
2974 TRect drawRect( iItems[ii].Rect() ); |
2977 TRect drawRect( iItems[ii].Rect() ); |
2975 |
2978 |
2976 if ( iFlags.IsSet( EFlagMarkingMode ) ) |
2979 if ( iFlags.IsSet( EFlagMarkingMode ) ) |
2977 { |
2980 { |
2978 drawRect.iBr.iX += checkBoxOffset; |
2981 drawRect.iBr.iX += checkBoxOffset; |
3085 #endif //RD_UI_TRANSITION_EFFECTS_LIST |
3088 #endif //RD_UI_TRANSITION_EFFECTS_LIST |
3086 } |
3089 } |
3087 |
3090 |
3088 if ( iFlags.IsSet( EFlagMarkingMode ) && iMarkingIconArray |
3091 if ( iFlags.IsSet( EFlagMarkingMode ) && iMarkingIconArray |
3089 && iMarkingIconArray->Count() == |
3092 && iMarkingIconArray->Count() == |
3090 KMarkingModeIconArraySize ) |
3093 KMarkingModeIconArraySize && itemIsMarkable ) |
3091 { |
3094 { |
3092 // Rect for the marking icon |
3095 // Rect for the marking icon |
3093 TRect iconRect = RectFromLayout( drawRect, |
3096 TRect iconRect = RectFromLayout( drawRect, |
3094 AknLayoutScalable_Avkon::list_single_graphic_pane_g1( 0 ) ); |
3097 AknLayoutScalable_Avkon::list_single_graphic_pane_g1( 0 ) ); |
3095 |
3098 |
3602 TInt count( selection.Count() ); |
3605 TInt count( selection.Count() ); |
3603 CleanupStack::PopAndDestroy( &selection ); |
3606 CleanupStack::PopAndDestroy( &selection ); |
3604 return ( count > 0 ); |
3607 return ( count > 0 ); |
3605 } |
3608 } |
3606 |
3609 |
|
3610 // --------------------------------------------------------------------------- |
|
3611 // CAknTreeListView::SetMarkingMode |
|
3612 // --------------------------------------------------------------------------- |
|
3613 // |
|
3614 void CAknTreeListView::SetMarkingMode( TBool aEnable ) |
|
3615 { |
|
3616 if ( ( iFlags.IsSet( EFlagMarkingMode ) != aEnable ) && iItemActionMenu ) |
|
3617 { |
|
3618 iItemActionMenu->MarkingMode().SetCollectionMultipleMarkingState( |
|
3619 aEnable ); |
|
3620 } |
|
3621 } |
3607 |
3622 |
3608 #ifdef RD_UI_TRANSITION_EFFECTS_LIST |
3623 #ifdef RD_UI_TRANSITION_EFFECTS_LIST |
3609 // --------------------------------------------------------------------------- |
3624 // --------------------------------------------------------------------------- |
3610 // Sets the tfxgc for effects |
3625 // Sets the tfxgc for effects |
3611 // --------------------------------------------------------------------------- |
3626 // --------------------------------------------------------------------------- |