emailuis/uicomponents/src/fstreeitemvisualizerbase.cpp
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
    24 #include "fstreeitemvisualizerbase.h"
    24 #include "fstreeitemvisualizerbase.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 //
   536         retVal = ETrue;
   534         retVal = ETrue;
   537         }
   535         }
   538     return retVal;
   536     return retVal;
   539     }
   537     }
   540 
   538 
   541 // <cmail>
       
   542 // ---------------------------------------------------------------------------
   539 // ---------------------------------------------------------------------------
   543 // From MFsTreeItemVisualizer.
   540 // From MFsTreeItemVisualizer.
   544 // Sets item background brush.
   541 // Sets item background brush.
   545 // ---------------------------------------------------------------------------
   542 // ---------------------------------------------------------------------------
   546 //
   543 //
   566         retVal = ETrue;
   563         retVal = ETrue;
   567         }
   564         }
   568 
   565 
   569     return retVal;
   566     return retVal;
   570     }
   567     }
   571 // </cmail>
       
   572   
   568   
   573 // ---------------------------------------------------------------------------
   569 // ---------------------------------------------------------------------------
   574 // From MFsTreeItemVisualizer.
   570 // From MFsTreeItemVisualizer.
   575 // Clears item background.
   571 // Clears item background.
   576 // ---------------------------------------------------------------------------
   572 // ---------------------------------------------------------------------------
   631         iFlags |= KFsTreeListItemAlwaysExtended;
   627         iFlags |= KFsTreeListItemAlwaysExtended;
   632         }
   628         }
   633     else
   629     else
   634         {
   630         {
   635         iFlags &= ~KFsTreeListItemAlwaysExtended;
   631         iFlags &= ~KFsTreeListItemAlwaysExtended;
       
   632         }
       
   633     }
       
   634 
       
   635 // ---------------------------------------------------------------------------
       
   636 // From class MFsTreeItemVisualizer.
       
   637 // Sets marking mode on/off.
       
   638 // ---------------------------------------------------------------------------
       
   639 //
       
   640 void CFsTreeItemVisualizerBase::SetMarkingMode( TBool aMarkingMode )
       
   641     {
       
   642     FUNC_LOG;
       
   643     if ( aMarkingMode )
       
   644         {
       
   645         iFlags |= KFsTreeListMarkingMode;
       
   646         }
       
   647     else
       
   648         {
       
   649         iFlags &= ~KFsTreeListMarkingMode;
   636         }
   650         }
   637     }
   651     }
   638 
   652 
   639 // ---------------------------------------------------------------------------
   653 // ---------------------------------------------------------------------------
   640 //  This function returns wether an item is always in extended state.
   654 //  This function returns wether an item is always in extended state.
   665 // ---------------------------------------------------------------------------
   679 // ---------------------------------------------------------------------------
   666 //
   680 //
   667 void CFsTreeItemVisualizerBase::UpdateL( const MFsTreeItemData& /*aData*/,
   681 void CFsTreeItemVisualizerBase::UpdateL( const MFsTreeItemData& /*aData*/,
   668                                           TBool /*aFocused*/,
   682                                           TBool /*aFocused*/,
   669                                           const TUint /*aLevel*/,
   683                                           const TUint /*aLevel*/,
   670                                           CAlfTexture*& /*aMarkIcon*/,
   684                                           CAlfTexture*& /*aMarkOnIcon*/,
       
   685                                           CAlfTexture*& /*aMarkOffIcon*/,
   671                                           CAlfTexture*& /*aMenuIcon*/,
   686                                           CAlfTexture*& /*aMenuIcon*/,
   672                                           const TUint /*aTimeout*/,
   687                                           const TUint /*aTimeout*/,
   673                                           TBool /*aUpdateData*/)
   688                                           TBool /*aUpdateData*/)
   674     {
   689     {
   675     FUNC_LOG;
   690     FUNC_LOG;