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 |