class MEikAutoMenuObserver : public MEikMenuObserver |
Provides additional functionality to an auto menu title, in the form of an OfferHotKeyL() method, which is not required in the normal MEikMenuObserver.
Auto menu titles are used to ensure that some menu panes appear in every menu constructed for an application.
Public Member Functions | |
---|---|
IMPORT_C TBool | CheckHotKeyNotDimmedL(TInt) |
IMPORT_C CCoeControl * | CreateCustomCommandControlL(TInt) |
IMPORT_C void | DynInitMenuBarL(TInt, CEikMenuBar *) |
IMPORT_C void | DynInitMenuPaneL(TInt, CEikMenuPane *) |
IMPORT_C void | HandleAttemptDimmedSelectionL(TInt) |
IMPORT_C void | HandleSideBarMenuL(TInt, const TPoint &, TInt, const CEikHotKeyTable *) |
TKeyResponse | OfferHotKeyL(const TKeyEvent &, TEventCode) |
IMPORT_C void | OfferKeyToAppL(const TKeyEvent &, TEventCode) |
IMPORT_C void | RestoreMenuL(CCoeControl *, TInt, TMenuType) |
IMPORT_C void | SetEmphasis(CCoeControl *, TBool) |
Protected Member Functions | |
---|---|
MEikAutoMenuObserver() |
Private Member Functions | |
---|---|
IMPORT_C void | MEikCommandObserver_Reserved1() |
IMPORT_C void | MEikCommandObserver_Reserved2() |
IMPORT_C void | Reserved_1_MenuObserver() |
IMPORT_C void | Reserved_2_MenuObserver() |
Inherited Functions | |
---|---|
MEikCommandObserver::MEikCommandObserver() | |
MEikCommandObserver::ProcessCommandL(TInt) | |
MEikMenuObserver::MEikMenuObserver() |
Inherited Enumerations | |
---|---|
MEikMenuObserver:TMenuType |
Private Attributes | |
---|---|
TInt | iMEikAutoMenuObserver_Spare1 |
IMPORT_C TBool | CheckHotKeyNotDimmedL | ( | TInt | aCommandId | ) | [virtual] |
TInt aCommandId |
IMPORT_C CCoeControl * | CreateCustomCommandControlL | ( | TInt | aControlType | ) | [virtual] |
Glue for creating custom controls.
This function can be called to create custom controls on request from their control ID. Custom controls are user-supplied control classes.
Given the ID of a custom control, this function should return a pointer to a newly-instantiated and fully constructed control. If the ID is unrecognised, NULL should be returned. The control returned will be owned by the caller.
By default, NULL.
TInt aControlType | A custom control ID. |
IMPORT_C void | DynInitMenuBarL | ( | TInt | aResourceId, |
CEikMenuBar * | aMenuBar | |||
) | [virtual] |
TInt aResourceId | |
CEikMenuBar * aMenuBar |
IMPORT_C void | DynInitMenuPaneL | ( | TInt | aResourceId, |
CEikMenuPane * | aMenuPane | |||
) | [virtual] |
TInt aResourceId | |
CEikMenuPane * aMenuPane |
IMPORT_C void | HandleAttemptDimmedSelectionL | ( | TInt | aCommandId | ) | [virtual] |
TInt aCommandId |
IMPORT_C void | HandleSideBarMenuL | ( | TInt | aResourceId, |
const TPoint & | aPos, | |||
TInt | aModifiers, | |||
const CEikHotKeyTable * | aTable | |||
) | [virtual] |
TKeyResponse | OfferHotKeyL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [pure virtual] |
Offers the specified hot key to the auto menu title.
Implement this function if you expect to handle any events from an auto menu.
The auto menu title's response.
const TKeyEvent & aKeyEvent | The key event. |
TEventCode aType | The type of key event. |
IMPORT_C void | OfferKeyToAppL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [virtual] |
const TKeyEvent & aKeyEvent | |
TEventCode aType |
IMPORT_C void | RestoreMenuL | ( | CCoeControl * | aMenuControl, |
TInt | aResourceId, | |||
TMenuType | aType | |||
) | [virtual] |
CCoeControl * aMenuControl | |
TInt aResourceId | |
TMenuType aType |
IMPORT_C void | SetEmphasis | ( | CCoeControl * | aMenuControl, |
TBool | aEmphasis | |||
) | [virtual] |
Called by the Uikon framework to handle the emphasising or de-emphasising of a menu window.
CEikMenuBar objects call this on their observer to emphasise themselves when they are displayed, and de-emphasise themselves when they stop displaying.
CCoeControl * aMenuControl | The menu control. |
TBool aEmphasis | ETrue to emphasize the menu, EFalse otherwise. |