class MEikMenuObserver : public MEikCommandObserver |
Menu observer interface.
Menu observers cooperate with menu bars and menu panes, initialising them before display and responding to menu events appropriately. CEikAppUi implements MEikMenuObserver, so these functions may be implemented on an application's App UI.
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 *) |
IMPORT_C void | OfferKeyToAppL(const TKeyEvent &, TEventCode) |
IMPORT_C void | RestoreMenuL(CCoeControl *, TInt, TMenuType) |
void | SetEmphasis(CCoeControl *, TBool) |
Protected Member Functions | |
---|---|
MEikMenuObserver() |
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) |
Public Member Enumerations | |
---|---|
enum | TMenuType { EMenuPane, EMenuBar } |
Private Attributes | |
---|---|
TInt | iMEikMenuObserver_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] |
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 |
void | SetEmphasis | ( | CCoeControl * | aMenuControl, |
TBool | aEmphasis | |||
) | [pure 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. |