Location:
eikmobs.h
Link against: eikcore.lib
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.
MEikCommandObserver
- Command observers respond to user commands, and have the secondary function of creating custom controls on request for
classes such as CEikToolbar, or user-defined classes
MEikMenuObserver
- Menu observer interface
Defined in MEikMenuObserver
:
CheckHotKeyNotDimmedL()
, CreateCustomCommandControlL()
, DynInitMenuBarL()
, DynInitMenuPaneL()
, EMenuBar
, EMenuPane
, HandleAttemptDimmedSelectionL()
, HandleSideBarMenuL()
, MEikCommandObserver_Reserved1()
, MEikCommandObserver_Reserved2()
, MEikMenuObserver()
, OfferKeyToAppL()
, Reserved_1_MenuObserver()
, Reserved_2_MenuObserver()
, RestoreMenuL()
, SetEmphasis()
, TMenuType
Inherited from MEikCommandObserver
:
ProcessCommandL()
virtual IMPORT_C void HandleAttemptDimmedSelectionL(TInt aCommandId);
Responds to a user's attempt to select a dimmed item by displaying a message (CEikonEnv::InfoMsg()
) to indicate the item is unavailable.
|
virtual IMPORT_C TBool CheckHotKeyNotDimmedL(TInt aCommandId);
Determines whether a command should be passed to the application.
Applications can choose whether to respond to a hotkey event that corresponds to a dimmed item. This function is called when a recognised key press is offered to a menu bar or a menu pane to determine whether to send the corresponding command.
|
|
virtual IMPORT_C void RestoreMenuL(CCoeControl *aMenuControl, TInt aResourceId, TMenuType aType);
Restores the menu window aMenuWindow.
|
virtual IMPORT_C void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane);
Dynamically initialises a menu pane.
The Uikon framework calls this function, if it is implemented in a menu's observer, immediately before the menu pane is activated.
Typically this function should inquire the value of application data, and initialise menu items accordingly. This includes dimming menu items, changing their text, setting the state of checked items and radio buttons and dynamically adding items to a menu.
|
virtual IMPORT_C void DynInitMenuBarL(TInt aResourceId, CEikMenuBar *aMenuBar);
As DynInitMenuPaneL()
, but for menu bars.
|
virtual IMPORT_C void HandleSideBarMenuL(TInt aResourceId, const TPoint &aPos, TInt aModifiers, const CEikHotKeyTable *aTable);
This function is invoked by CEikMenuBar's input handling functions.
It may be overridden to handle displaying menus launched from the side bar.
|
virtual IMPORT_C void OfferKeyToAppL(const TKeyEvent &aKeyEvent, TEventCode aType);
Called if a key which is not used by the menu is pressed while the observer's menu is displaying.
|
virtual void SetEmphasis(CCoeControl *aMenuControl, TBool aEmphasis)=0;
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.
|
virtual IMPORT_C CCoeControl *CreateCustomCommandControlL(TInt aControlType);
This functions simpy wraps MEikCommandObserver::CreateCustomCommandControlL(TInt aControlType)
|
|