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