emailuis/uicomponents/inc/fstreevisualizerbase.h
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
   841     virtual TBool IsCustomPageDownKey(TInt aKeyCode);
   841     virtual TBool IsCustomPageDownKey(TInt aKeyCode);
   842 
   842 
   843     /**
   843     /**
   844      * Sets icon for a mark sign.
   844      * Sets icon for a mark sign.
   845      *
   845      *
   846      * @param aMarkIcon Icon to mark items.
   846      * @param aMarkOnIcon Icon to mark items.
   847      */
   847      */
   848     virtual void SetMarkIcon( CAlfTexture& aMarkIcon );
   848     virtual void SetMarkOnIcon( CAlfTexture& aMarkOnIcon );
   849 
   849 
   850     /**
   850     /**
   851      * Returns icon used to mark items.
   851      * Sets icon for a mark sign.
   852      */
   852      *
   853     virtual CAlfTexture* MarkIcon( );
   853      * @param aMarkOffIcon Icon to unmark items.
   854 
   854      */
       
   855     virtual void SetMarkOffIcon( CAlfTexture& aMarkOffIcon );
       
   856 
       
   857     /**
       
   858      * Returns icon used to identify marked items.
       
   859      */
       
   860     virtual CAlfTexture* MarkOnIcon( );
       
   861 
       
   862     /**
       
   863      * Returns icon used to identify unmarked items.
       
   864      */
       
   865     virtual CAlfTexture* MarkOffIcon( );    
       
   866     
   855     /**
   867     /**
   856      * Checks if item is marked and return status
   868      * Checks if item is marked and return status
   857      * @param aItemId item id to be checked
   869      * @param aItemId item id to be checked
   858      */
   870      */
   859     virtual TBool IsMarked( const TFsTreeItemId aItemId ) const;
   871     virtual TBool IsMarked( const TFsTreeItemId aItemId ) const;
   920     /**
   932     /**
   921      * Used internally by the list. To make the list focused/not focused use
   933      * Used internally by the list. To make the list focused/not focused use
   922      * CFsTreeList::SetFocusedL() instead.
   934      * CFsTreeList::SetFocusedL() instead.
   923      */
   935      */
   924     void SetFocusedL( const TBool aFocused );
   936     void SetFocusedL( const TBool aFocused );
       
   937 
       
   938     /**
       
   939      * Sets marking mode on\off
       
   940      * 
       
   941      * @param ETrue if marking mode is set on
       
   942      */
       
   943 
       
   944     void SetMarkingModeL( const TBool aMarkingMode );
   925 
   945 
   926     /**
   946     /**
   927      *
   947      *
   928      * @param aTexture A custom texture for the selector.
   948      * @param aTexture A custom texture for the selector.
   929      *                 The texture is used to create an image brush.
   949      *                 The texture is used to create an image brush.
  1007      *
  1027      *
  1008      * @param aItem indicates item to be focused.
  1028      * @param aItem indicates item to be focused.
  1009      *
  1029      *
  1010      * @panic EFsListPanicInvalidItemID Item with specified ID is not found.
  1030      * @panic EFsListPanicInvalidItemID Item with specified ID is not found.
  1011      */
  1031      */
  1012     // <cmail>
       
  1013     virtual void SetFocusedItemL( const TFsTreeItemId aItem, TBool aCheckFocus = ETrue );
  1032     virtual void SetFocusedItemL( const TFsTreeItemId aItem, TBool aCheckFocus = ETrue );
  1014     // </cmail>
       
  1015 
  1033 
  1016     /**
  1034     /**
  1017     * Gets item vertical position in the list
  1035     * Gets item vertical position in the list
  1018     *
  1036     *
  1019     * @param aIdx indicates item index
  1037     * @param aIdx indicates item index
  1040     /**
  1058     /**
  1041      * Sets an item as first visible one in the list.
  1059      * Sets an item as first visible one in the list.
  1042      *
  1060      *
  1043      * @param aItemId Id of an item that will be displayed as first.
  1061      * @param aItemId Id of an item that will be displayed as first.
  1044      */
  1062      */
  1045     // <cmail>
       
  1046     virtual void SetFirstVisibleItemL( const TFsTreeItemId aItemId );
  1063     virtual void SetFirstVisibleItemL( const TFsTreeItemId aItemId );
  1047     // </cmail>
       
  1048 
  1064 
  1049     /**
  1065     /**
  1050      * Get an id of the first visible item.
  1066      * Get an id of the first visible item.
  1051      *
  1067      *
  1052      * @return Id of the first visible item.
  1068      * @return Id of the first visible item.
  1298      * @return ETrue if items are always in extended state, EFalse if items
  1314      * @return ETrue if items are always in extended state, EFalse if items
  1299      *         are in normal state.
  1315      *         are in normal state.
  1300      */
  1316      */
  1301     virtual TBool IsItemsAlwaysExtended ( );
  1317     virtual TBool IsItemsAlwaysExtended ( );
  1302 
  1318 
       
  1319     /*
       
  1320      * The function returns ETrue if marking mode is on
       
  1321      */
       
  1322     virtual TBool IsMarkingMode ( );    
       
  1323     
  1303     /**
  1324     /**
  1304      * The function sets a text for empty list's view.
  1325      * The function sets a text for empty list's view.
  1305      * The function does not refresh the view automatically.
  1326      * The function does not refresh the view automatically.
  1306      *
  1327      *
  1307      * @param aText Text to be displayed.
  1328      * @param aText Text to be displayed.
  2169     CAlfDeckLayout* iBorderLayout;
  2190     CAlfDeckLayout* iBorderLayout;
  2170 
  2191 
  2171     /**
  2192     /**
  2172      * Icon used to mark items.
  2193      * Icon used to mark items.
  2173      */
  2194      */
  2174     CAlfTexture* iMarkIcon;
  2195     CAlfTexture* iMarkOnIcon;
  2175 
  2196 
       
  2197     /**
       
  2198      * Icon used to unmark items.
       
  2199      */
       
  2200     CAlfTexture* iMarkOffIcon;    
       
  2201     
  2176     /**
  2202     /**
  2177      * Icon indicating that item has menu.
  2203      * Icon indicating that item has menu.
  2178      */
  2204      */
  2179     CAlfTexture* iMenuIcon;
  2205     CAlfTexture* iMenuIcon;
  2180 
  2206 
  2368 
  2394 
  2369         /**
  2395         /**
  2370          * This flag is checked when trying to focus item. Focus is ignored 
  2396          * This flag is checked when trying to focus item. Focus is ignored 
  2371          * if list is being panned. 
  2397          * if list is being panned. 
  2372          */        
  2398          */        
  2373         EListPanning
  2399         EListPanning,
       
  2400 		
       
  2401         /**
       
  2402          * Informs if marking mode is on
       
  2403          */
       
  2404         EMarkingMode
  2374     };
  2405     };
  2375 
  2406 
  2376     // Flags
  2407     // Flags
  2377     TBitFlags iFlags;
  2408     TBitFlags iFlags;
  2378 
  2409