emailuis/uicomponents/src/fstreenodevisualizerbase.cpp
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
    24 #include "fstreenodevisualizerbase.h"
    24 #include "fstreenodevisualizerbase.h"
    25 #include "fstreelist.h"
    25 #include "fstreelist.h"
    26 #include "fslayoutmanager.h"
    26 #include "fslayoutmanager.h"
    27 #include "fsalftextstylemanager.h"
    27 #include "fsalftextstylemanager.h"
    28 
    28 
    29 // <cmail> SF
       
    30 #include <alf/alfgradientbrush.h>
    29 #include <alf/alfgradientbrush.h>
    31 #include <alf/alfimagebrush.h>
    30 #include <alf/alfimagebrush.h>
    32 #include <alf/alfanchorlayout.h>
    31 #include <alf/alfanchorlayout.h>
    33 #include <alf/alfcontrol.h>
    32 #include <alf/alfcontrol.h>
    34 #include <alf/alftexture.h>
    33 #include <alf/alftexture.h>
    35 #include <alf/alfimage.h>
    34 #include <alf/alfimage.h>
    36 #include <alf/alfenv.h>
    35 #include <alf/alfenv.h>
    37 #include <alf/alftextstyle.h>
    36 #include <alf/alftextstyle.h>
    38 #include <alf/alftextvisual.h>
    37 #include <alf/alftextvisual.h>
    39 #include <alf/alfmappingfunctions.h>
    38 #include <alf/alfmappingfunctions.h>
    40 // </cmail>
       
    41 
    39 
    42 // ---------------------------------------------------------------------------
    40 // ---------------------------------------------------------------------------
    43 // C++ destructor.
    41 // C++ destructor.
    44 // ---------------------------------------------------------------------------
    42 // ---------------------------------------------------------------------------
    45 //
    43 //
   532         retVal = ETrue;
   530         retVal = ETrue;
   533         }
   531         }
   534     return retVal;
   532     return retVal;
   535     }
   533     }
   536 
   534 
   537 // <cmail>
       
   538 // ---------------------------------------------------------------------------
   535 // ---------------------------------------------------------------------------
   539 // From MFsTreeItemVisualizer.
   536 // From MFsTreeItemVisualizer.
   540 // Sets item background brush.
   537 // Sets item background brush.
   541 // ---------------------------------------------------------------------------
   538 // ---------------------------------------------------------------------------
   542 //
   539 //
   562         retVal = ETrue;
   559         retVal = ETrue;
   563         }
   560         }
   564 
   561 
   565     return retVal;
   562     return retVal;
   566     }
   563     }
   567 // </cmail>
       
   568 
   564 
   569 // ---------------------------------------------------------------------------
   565 // ---------------------------------------------------------------------------
   570 // From MFsTreeItemVisualizer.
   566 // From MFsTreeItemVisualizer.
   571 // Clears item background.
   567 // Clears item background.
   572 // ---------------------------------------------------------------------------
   568 // ---------------------------------------------------------------------------
   620         iFlags |= KFsTreeListItemAlwaysExtended;
   616         iFlags |= KFsTreeListItemAlwaysExtended;
   621         }
   617         }
   622     else
   618     else
   623         {
   619         {
   624         iFlags &= ~KFsTreeListItemAlwaysExtended;
   620         iFlags &= ~KFsTreeListItemAlwaysExtended;
       
   621         }
       
   622     }
       
   623 
       
   624 // ---------------------------------------------------------------------------
       
   625 // 
       
   626 // ---------------------------------------------------------------------------
       
   627 //
       
   628 void CFsTreeNodeVisualizerBase::SetMarkingMode( TBool aMarkingMode )
       
   629     {
       
   630     FUNC_LOG;
       
   631     if ( aMarkingMode )
       
   632         {
       
   633         iFlags |= KFsTreeListMarkingMode;
       
   634         }
       
   635     else
       
   636         {
       
   637         aMarkingMode &= ~KFsTreeListMarkingMode;
   625         }
   638         }
   626     }
   639     }
   627 
   640 
   628 // ---------------------------------------------------------------------------
   641 // ---------------------------------------------------------------------------
   629 //  This function returns wether an item is always in extended state.
   642 //  This function returns wether an item is always in extended state.
   654 // ---------------------------------------------------------------------------
   667 // ---------------------------------------------------------------------------
   655 //
   668 //
   656 void CFsTreeNodeVisualizerBase::UpdateL( const MFsTreeItemData& /*aData*/,
   669 void CFsTreeNodeVisualizerBase::UpdateL( const MFsTreeItemData& /*aData*/,
   657                                           TBool /*aFocused*/,
   670                                           TBool /*aFocused*/,
   658                                           const TUint /*aLevel*/,
   671                                           const TUint /*aLevel*/,
   659                                           CAlfTexture*& /*aMarkIcon*/,
   672                                           CAlfTexture*& /*aMarkIconOn*/,
       
   673                                           CAlfTexture*& /*aMarkIconOff*/,										  
   660                                           CAlfTexture*& /*aMenuIcon*/,
   674                                           CAlfTexture*& /*aMenuIcon*/,
   661                                           const TUint /*aTimeout*/,
   675                                           const TUint /*aTimeout*/,
   662                                           TBool /*aUpdateData*/)
   676                                           TBool /*aUpdateData*/)
   663     {
   677     {
   664     FUNC_LOG;
   678     FUNC_LOG;