|
|
|||
Location:
QikMenuPopout.h
Link against: qikcore.lib
class CQikMenuPopout : public CBase;
Class for displaying menu popouts. Uses CEikMenuPane .
CBase - Base class for all classes to be instantiated on the heapCQikMenuPopout - Class for displaying menu popoutsDefined in CQikMenuPopout:
AddCommandL(), DisplayL(), MenuPane(), NewL(), ResetL(), SetCommandListL(), SetRootPaneId(), ~CQikMenuPopout()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
static IMPORT_C CQikMenuPopout *NewL(CEikonEnv &aEikonEnv, MQikCommandHandler &aCommandHandler);
Creates the menu popout
|
|
IMPORT_C ~CQikMenuPopout();
Destructor Clears and deallocates resources used by the menu popout. If the commands are added through SetCommandListL() they are deleted, if the commands are added through AddCommandL() are not deleted.
IMPORT_C void ResetL();
Clears and initializes the menu popout. Will not leave. Name retained for BC reasons
IMPORT_C void AddCommandL(const CQikCommand &aCommand);
Adds a command to the menu popout. Does not take ownership of the commands added through this method.
|
IMPORT_C void SetCommandListL(TInt aResourceId);
Initializes the menu popout with a command list and creates the menu pane. Takes ownership of the commands created from resource. Calling this method will remove all other commands added.
|
IMPORT_C void DisplayL(TPoint &aPopoutPos, TPopupTargetPosType aTargetType, TBool aFullClientWidth=EFalse);
Displays the popout menu.
|
IMPORT_C CEikMenuPane *MenuPane();
Returns the CEikMenuPane used by the menu popout so it can be directly manipulated. Note: calling ResetL() will invalidate this pointer!
|
IMPORT_C void SetRootPaneId(TInt aId);
Use this method to set namedgroup-id of the root menupane. This only needs to be done if you for some reason don't use 0 as id for the first menupane. In normal circumstances this method isn't used. If not zero, the namedgroup-id needs to be set before before calling AddCommandL .
|