class CEikMenuButton : public CEikCommandButton |
This class implements a command button that, when pressed, raises a Menu pane.
This class does NOT implement S60 look-and-feel and is not skinned.
Public Member Functions | |
---|---|
CEikMenuButton() | |
~CEikMenuButton() | |
IMPORT_C void | Animate() |
IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C void | LaunchPopupMenuL(MEikMenuObserver *) |
IMPORT_C void | SetMenuPaneId(TInt) |
Protected Member Functions | |
---|---|
IMPORT_C void | WriteInternalStateL(RWriteStream &) |
Private Member Functions | |
---|---|
void | ClosePopupMenu() |
void | DoLaunchPopupMenuL() |
IMPORT_C void * | ExtensionInterface(TUid) |
IMPORT_C void | ProcessCommandL(TInt) |
IMPORT_C void | SetEmphasis(CCoeControl *, TBool) |
Private Attributes | |
---|---|
MEikMenuObserver * | iMenuObserver |
TInt | iMenuPaneId |
CEikMenuPane * | iMenuPopup |
TInt | iSpare |
IMPORT_C void | Animate | ( | ) | [virtual] |
Triggers the change of appearance of the button that is associated with the button being pressed
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
2nd phase constructor using a MNBUT resource struct
TResourceReader & aReader | A constructed resource reader. |
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl
Framework method called when a pointer event is found to be within this control's boundaries. The default implementation causes the associated menu to be presented to the screen.
const TPointerEvent & aPointerEvent | Pointer event to process |
IMPORT_C void | LaunchPopupMenuL | ( | MEikMenuObserver * | aObserver | ) |
Launch the related menu pane
MEikMenuObserver * aObserver | Mandatory supplied menu observer pointer. |
IMPORT_C void | ProcessCommandL | ( | TInt | aCommandId | ) | [private] |
From MEikCommandObserver
Framework method called to processs a command ID
TInt aCommandId | ID of the command to respond to. |
IMPORT_C void | SetEmphasis | ( | CCoeControl * | aMenuControl, |
TBool | aEmphasis | |||
) | [private] |
From MEikMenuObserver
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 |
IMPORT_C void | SetMenuPaneId | ( | TInt | aMenuPaneId | ) |
Set the menu pane id to be launched when the control is activated.
TInt aMenuPaneId | Resource ID of the menu pane to be launched |
IMPORT_C void | WriteInternalStateL | ( | RWriteStream & | aWriteStream | ) | const [protected, virtual] |
From CCoeControl
Serialize the state of the control to the given stream
Writes the internal state of the control and its components to aStream. Does nothing in release mode. Designed to be overidden and base called by subclasses.
RWriteStream & aWriteStream | Stream to write to |
MEikMenuObserver * | iMenuObserver | [private] |
The object to receive the menu events Not Owned
CEikMenuPane * | iMenuPopup | [private] |
Holds a menu pane object to be popped up Owned
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.