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