photosgallery/viewframework/views/cloudview/inc/glxtagscontextmenucontrol.h
branchRCL_3
changeset 14 2dac0fdba72b
parent 12 ce1c7ad1f18b
child 15 191387a8b767
equal deleted inserted replaced
13:bcb43dc84c44 14:2dac0fdba72b
    23 #include <alf/alfcontrol.h>
    23 #include <alf/alfcontrol.h>
    24 #include "glxbubbletimer.h"                         //for timer functionality
    24 #include "glxbubbletimer.h"                         //for timer functionality
    25 
    25 
    26 //Forward Declaration
    26 //Forward Declaration
    27 class CAlfGridLayout;
    27 class CAlfGridLayout;
    28 class CGlxUiUtility;
    28 class CAlfEnv;
    29 
    29 
    30 /**
    30 /**
    31  *MGlxItemMenuObserver is a class to handle the menu items in grid layout
    31  *MGlxItemMenuObserver is a class to handle the menu items in grid layout
    32  */
    32  */
    33 class MGlxItemMenuObserver
    33 class MGlxItemMenuObserver
   112      *  Creates the menulist and sets the Text style 
   112      *  Creates the menulist and sets the Text style 
   113      *  @param aFontId - Sets the text style
   113      *  @param aFontId - Sets the text style
   114      */
   114      */
   115     void CreateMenuListL(TInt aFontId);
   115     void CreateMenuListL(TInt aFontId);
   116     
   116     
       
   117     /** 
       
   118     *  Calculates the maximum text width of menu items 
       
   119     */
       
   120     void CalculateMaxWidth();
   117     /**     
   121     /**     
   118      *  Perform the two phase construction
   122      *  Perform the two phase construction
   119      *  @param  aEvent - key Event to handle
   123      *  @param  aEvent - key Event to handle
   120      *  @return EKeyWasConsumed if key event is processed,
   124      *  @return EKeyWasConsumed if key event is processed,
   121      *         otherwise EKeyWasNotConsumed
   125      *         otherwise EKeyWasNotConsumed
   122      */
   126      */
   123     TBool OfferEventL(const TAlfEvent& aEvent);
   127     TBool OfferEventL(const TAlfEvent& aEvent);
   124 
   128 
   125 private:
   129 private:
   126 
       
   127     //Ui Utility, not owning, only close
       
   128     CGlxUiUtility* iUiUtility;
       
   129     
   130     
   130     //Observer to handle the menu items in grid layout
   131     //Observer to handle the menu items in grid layout
   131     MGlxItemMenuObserver& iItemMenuObserver;          
   132     MGlxItemMenuObserver& iItemMenuObserver;          
   132     
   133     
   133     //Grid layout, not owning
   134     //Grid layout, not owning
   134     CAlfGridLayout* iGrid;
   135     CAlfGridLayout* iGrid;
       
   136     /** The Alf environment*/
       
   137     CAlfEnv* iAlfEnv;
   135     
   138     
   136     //Slideshow text, not owning
   139     //Slideshow text, not owning
   137     CAlfTextVisual* iSlideshowTextVisual;     
   140     CAlfTextVisual* iSlideshowTextVisual;     
   138     
   141     
   139     //Delete text, not owning
   142     //Delete text, not owning
   151     //Viewable rect
   154     //Viewable rect
   152     TRect iViewableRect;                                    
   155     TRect iViewableRect;                                    
   153     
   156     
   154     //flag for stylus menu visibility
   157     //flag for stylus menu visibility
   155     TBool iItemMenuVisibility;                                         
   158     TBool iItemMenuVisibility;                                         
       
   159     //Maximum text width of a menu item
       
   160     TInt iMaxTextWidth;
   156     };
   161     };
   157 
   162 
   158 #endif /* GLXTAGSCONTEXTMENUCONTROL_H_ */
   163 #endif /* GLXTAGSCONTEXTMENUCONTROL_H_ */