A floating popup menu which is meant for stylus usage only. The menu appears near to the tapping position. When an item is tapped the menu calls its observer's (iMenuObserver) ProcessCommandL. Typically the observer is application's AppUi. It is then the observer's responsibility to handle the command appropriately. The observer is informed with KErrCancel if the menu is closed without making a selection.
|
Public Types |
enum | TPositionType { EPositionTypeRightTop = 0,
EPositionTypeLeftTop,
EPositionTypeRightBottom,
EPositionTypeLeftBottom
} |
Public Member Functions |
| ~CAknStylusPopUpMenu () |
| Destructor.
|
IMPORT_C void | AddMenuItemL (const TDesC &aItem, const TInt aCommandId) |
| Adds a menu item.
|
IMPORT_C void | RemoveMenuItem (const TInt aCommandId) |
| Removes a menu item.
|
IMPORT_C void | SetItemDimmed (const TInt aCommandId, const TBool aDimmed) |
| Hides / shows a menu item.
|
IMPORT_C void | ShowMenu () |
| Shows the stylus popup menu.
|
IMPORT_C void | SetPosition (const TPoint &aPoint) |
| Sets the position of the stylus popup menu.
|
IMPORT_C void | SetPosition (const TPoint &aPoint, TPositionType aPosType) |
| Sets the position of the stylus popup menu.
|
void | UpdatePosition () |
| Tells the popup menu to recalculate its position.
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
| Constructs the menu from resource.
|
IMPORT_C void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
| Method to handle events that occur when user selects a menu item.
|
void | ResetTimer () |
| Resets timer that hides popup.
|
Static Public Member Functions |
static IMPORT_C CAknStylusPopUpMenu * | NewL (MEikMenuObserver *aObserver, const TPoint &aPoint, CAknPreviewPopUpController *aPopup) |
| Two-phased constructor.
|
static IMPORT_C CAknStylusPopUpMenu * | NewL (MEikMenuObserver *aObserver, const TPoint &aPoint) |
| Two-phased constructor.
|
static IMPORT_C CAknStylusPopUpMenu * | NewLC (MEikMenuObserver *aObserver, const TPoint &aPoint, CAknPreviewPopUpController *aPopup) |
| Two-phased constructor.
|