|
||
class MEikAutoMenuObserver : public MEikMenuObserver;
Provides additional functionality to an auto menu title, in the form of an MEikAutoMenuObserver::OfferHotKeyL(const TKeyEvent &,TEventCode)
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.
MEikCommandObserver
- Command observers respond to user commands, and have the secondary function of c...
MEikMenuObserver
- Menu observer interface.
MEikAutoMenuObserver
- Provides additional functionality to an auto menu title, in the form of an MEikA...
Defined in MEikAutoMenuObserver
:
CheckHotKeyNotDimmedL(TInt)
Determines whether a command should be passed to the application.CreateCustomCommandControlL(TInt)
This functions simpy wraps MEikCommandObserver::CreateCustomCommandControlL(TInt...DynInitMenuBarL(TInt,CEikMenuBar *)
As MEikAutoMenuObserver::DynInitMenuPaneL(TInt,CEikMenuPane *), but for menu bar...DynInitMenuPaneL(TInt,CEikMenuPane *)
Dynamically initialises a menu pane.HandleAttemptDimmedSelectionL(TInt)
Responds to a user's attempt to select a dimmed item by displaying a message (CE...HandleSideBarMenuL(TInt,const TPoint &,TInt,const CEikHotKeyTable *)
This function is invoked by CEikMenuBar's input handling functions.MEikAutoMenuObserver()
MEikCommandObserver_Reserved1()
Reserved for Future use MEikCommandObserver_Reserved2()
Reserved for Future use OfferHotKeyL(const TKeyEvent &,TEventCode)
Offers the specified hot key to the auto menu title.OfferKeyToAppL(const TKeyEvent &,TEventCode)
Called if a key which is not used by the menu is pressed while the observer's me...Reserved_1_MenuObserver()
Reserved_2_MenuObserver()
RestoreMenuL(CCoeControl *,TInt,TMenuType)
Restores the menu window aMenuWindow.SetEmphasis(CCoeControl *,TBool)
Sets the specified control's emphasis.Inherited from MEikCommandObserver
:
ProcessCommandL(TInt)
Processes user commands.Inherited from MEikMenuObserver
:
virtual TKeyResponse OfferHotKeyL(const TKeyEvent &aKeyEvent, TEventCode aType)=0;
Offers the specified hot key to the auto menu title.
Implement this function if you expect to handle any events from an auto menu.
|
|
IMPORT_C virtual void SetEmphasis(CCoeControl *aMenuControl, TBool aEmphasis);
Sets the specified control's emphasis.
|
IMPORT_C virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
Responds to a user's attempt to select a dimmed item by displaying a message (CEikonEnv::InfoMsg(const TDesC &)
) to indicate the item is unavailable.
|
IMPORT_C virtual 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.
|
|
IMPORT_C virtual void RestoreMenuL(CCoeControl *aMenuControl, TInt aResourceId, TMenuType aType);
Restores the menu window aMenuWindow.
|
IMPORT_C virtual 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.
|
IMPORT_C virtual void DynInitMenuBarL(TInt aResourceId, CEikMenuBar *aMenuBar);
As MEikAutoMenuObserver::DynInitMenuPaneL(TInt,CEikMenuPane *)
, but for menu bars.
|
IMPORT_C virtual 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.
|
IMPORT_C virtual 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.
|
IMPORT_C virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
This functions simpy wraps MEikCommandObserver::CreateCustomCommandControlL(TInt)
|
|
MEikCommandObserver::CreateCustomCommandControlL(TInt)
Glue for creating custom controls.private: IMPORT_C virtual void MEikCommandObserver_Reserved2();
Reserved for Future use