AknPopupLayouts Class Reference

#include <mw/aknpopuplayout.h>

Link against: mpxcommonplaybackview.lib

class AknPopupLayouts
Public Member Enumerations
enumTAknPopupLayouts { EMenuWindow, EMenuGraphicWindow, EMenuGraphicHeadingWindow, EMenuDoubleWindow, ..., EDynMenuDoubleLargeGraphicWindow }
Public Member Functions
IMPORT_C voidCalcPopupMenuDoubleLargeGraphicWindow(TAknPopupWindowLayoutDef &, TRect, TInt)
IMPORT_C voidCalcPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &, TRect, TInt)
IMPORT_C voidCalcPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &, TRect, TInt)
IMPORT_C voidCalcPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &, TRect, TInt)
IMPORT_C voidCalcPopupMenuWindow(TAknPopupWindowLayoutDef &, TRect, TInt)
IMPORT_C voidCalcPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &, TRect, TInt)
IMPORT_C voidCheckRange(TInt &, TInt, TInt)
IMPORT_C voidHandleDraw(CEikonEnv *, CWindowGc &, const TAknPopupWindowLayoutDef &, CEikListBox *, CAknPopupHeadingPane *)
IMPORT_C voidHandleSizeAndPositionOfComponents(const TAknPopupWindowLayoutDef &, CCoeControl *, CAknPopupHeadingPane *)
IMPORT_C voidHandleSizeChanged(TAknPopupWindowLayoutDef &, TAknPopupLayouts, TAknPopupLayoutsNode *)
IMPORT_C voidHandleSizeChanged(TAknPopupWindowLayoutDef &, TAknPopupLayouts, CAknPopupHeadingPane *, CEikListBox *, CCoeControl *)
IMPORT_C voidMenuPopupWindowGraphics(TAknPopupWindowLayoutDef &)
IMPORT_C TRectMenuRect(TAknPopupWindowLayoutDef &)
IMPORT_C voidModifyWindowGraphicForHeading(TAknPopupWindowLayoutDef &)
IMPORT_C voidModifyWindowGraphicForMessageBox(TAknPopupWindowLayoutDef &, TInt)
TRect RectFromLayout(TRect, const TAknWindowComponentLayout &)
IMPORT_C voidSetupDefaults(TAknPopupWindowLayoutDef &)
IMPORT_C voidSetupImageSelectionMenuPopupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)
IMPORT_C voidSetupMenuPopupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)
IMPORT_C voidSetupPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &, TInt, TBool)
IMPORT_C voidSetupPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &, TInt, TBool)
IMPORT_C voidSetupPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &, TInt, TBool)
IMPORT_C voidSetupPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)
IMPORT_C TRectWindowRect(TAknPopupWindowLayoutDef &)

Member Enumeration Documentation

Enum TAknPopupLayouts

If you ever want to add new items here, do not -- instead derive from popuplist or list query and override SetupWindowLayout(). (or if you can modify avkon, then add them here to make it easier for apps to use the new layout..) There's example at aknGMSstylegrid.cpp how to make new popup window without avkon modifications.

Member Function Documentation

CalcPopupMenuDoubleLargeGraphicWindow ( TAknPopupWindowLayoutDef &, TRect, TInt )

IMPORT_C voidCalcPopupMenuDoubleLargeGraphicWindow(TAknPopupWindowLayoutDef &aDef,
TRectaClientRect,
TIntaNumberOfLinesInListBox
)[static]

Calculates layout of popup_menu_double_large_graphic_window from LAF specification

CalcPopupMenuDoubleWindow ( TAknPopupWindowLayoutDef &, TRect, TInt )

IMPORT_C voidCalcPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &aDef,
TRectaClientRect,
TIntaNumberOfLinesInListBox
)[static]

Calculates layout of popup_menu_double_window from LAF specification

CalcPopupMenuGraphicHeadingWindow ( TAknPopupWindowLayoutDef &, TRect, TInt )

IMPORT_C voidCalcPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &aDef,
TRectaClientRect,
TIntaNumberOfLinesInListBox
)[static]

Calculates layout of popup_menu_graphic_heading_window from LAF specification

CalcPopupMenuGraphicWindow ( TAknPopupWindowLayoutDef &, TRect, TInt )

IMPORT_C voidCalcPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &aDef,
TRectaClientRect,
TIntaNumberOfLinesInListBox
)[static]

Calculates layout of popup_menu_graphic_window from LAF specification

CalcPopupMenuWindow ( TAknPopupWindowLayoutDef &, TRect, TInt )

IMPORT_C voidCalcPopupMenuWindow(TAknPopupWindowLayoutDef &aDef,
TRectaClientRect,
TIntaNumberOfLinesInListBox
)[static]

Calculates layout of popup_menu_window from LAF specification

CalcPopupSNoteGroupWindow ( TAknPopupWindowLayoutDef &, TRect, TInt )

IMPORT_C voidCalcPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &aDef,
TRectaClientRect,
TIntaNumberOfLinesInListBox
)[static]

Calculates layout of popup_snote_window from LAF specification

CheckRange ( TInt &, TInt, TInt )

IMPORT_C voidCheckRange(TInt &aValue,
TIntaMin,
TIntaMax
)[static]

Check integer range

HandleDraw ( CEikonEnv *, CWindowGc &, const TAknPopupWindowLayoutDef &, CEikListBox *, CAknPopupHeadingPane * )

IMPORT_C voidHandleDraw(CEikonEnv *aEikEnv,
CWindowGc &aGc,
const TAknPopupWindowLayoutDef &aDef,
CEikListBox *aListBox,
CAknPopupHeadingPane *aHeadingOrNull
)[static]

Implementation of Draw() for a popup window control with a list inside

HandleSizeAndPositionOfComponents ( const TAknPopupWindowLayoutDef &, CCoeControl *, CAknPopupHeadingPane * )

IMPORT_C voidHandleSizeAndPositionOfComponents(const TAknPopupWindowLayoutDef &aDef,
CCoeControl *aContentInsidePopup,
CAknPopupHeadingPane *aHeadingOrNull
)[static]

HandleSizeChanged ( TAknPopupWindowLayoutDef &, TAknPopupLayouts, TAknPopupLayoutsNode * )

IMPORT_C voidHandleSizeChanged(TAknPopupWindowLayoutDef &aDef,
TAknPopupLayoutsaLayout,
TAknPopupLayoutsNode *aListOfControls
)[static]

Implementation of SizeChanged() for a popup window control with a list inside

This method calls setrect() on heading, listbox and window owning control and expects the window owning control has listbox and heading in its componentcontrols...

HandleSizeChanged ( TAknPopupWindowLayoutDef &, TAknPopupLayouts, CAknPopupHeadingPane *, CEikListBox *, CCoeControl * )

IMPORT_C voidHandleSizeChanged(TAknPopupWindowLayoutDef &aDef,
TAknPopupLayoutsaLayout,
CAknPopupHeadingPane *aHeadingOrNull,
CEikListBox *aListBox,
CCoeControl *aWindowOwningControl
)[static]

MenuPopupWindowGraphics ( TAknPopupWindowLayoutDef & )

IMPORT_C voidMenuPopupWindowGraphics(TAknPopupWindowLayoutDef &aDef)[static]

Helper for building popup window layout

MenuRect ( TAknPopupWindowLayoutDef & )

IMPORT_C TRectMenuRect(TAknPopupWindowLayoutDef &aDef)[static]

Access to different coordinate transformations needed to setup popup windows

ModifyWindowGraphicForHeading ( TAknPopupWindowLayoutDef & )

IMPORT_C voidModifyWindowGraphicForHeading(TAknPopupWindowLayoutDef &aDef)[static]

Adds a heading to popup window

ModifyWindowGraphicForMessageBox ( TAknPopupWindowLayoutDef &, TInt )

IMPORT_C voidModifyWindowGraphicForMessageBox(TAknPopupWindowLayoutDef &aDef,
TIntaNumOfLines
)[static]

RectFromLayout ( TRect, const TAknWindowComponentLayout & )

TRect RectFromLayout(TRectaParent,
const TAknWindowComponentLayout &aComponentLayout
)[static]

SetupDefaults ( TAknPopupWindowLayoutDef & )

IMPORT_C voidSetupDefaults(TAknPopupWindowLayoutDef &aDef)[static]

SetupImageSelectionMenuPopupWindow ( TAknPopupWindowLayoutDef &, TInt, TBool )

IMPORT_C voidSetupImageSelectionMenuPopupWindow(TAknPopupWindowLayoutDef &aDef,
TIntnum,
TBoolheading
)[static]

Setup a border for the window

SetupMenuPopupWindow ( TAknPopupWindowLayoutDef &, TInt, TBool )

IMPORT_C voidSetupMenuPopupWindow(TAknPopupWindowLayoutDef &aDef,
TIntaNumberOfLinesInListBox,
TBoolaHeading
)[static]

Setup a border for the window

SetupPopupMenuDoubleWindow ( TAknPopupWindowLayoutDef &, TInt, TBool )

IMPORT_C voidSetupPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &aDef,
TIntaNumberOfLinesInListBox,
TBoolaHeading
)[static]

Setup a border for the window

SetupPopupMenuGraphicHeadingWindow ( TAknPopupWindowLayoutDef &, TInt, TBool )

IMPORT_C voidSetupPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &aDef,
TIntaNumberOfLinesInListBox,
TBoolaHeading
)[static]

Setup a border for the window

SetupPopupMenuGraphicWindow ( TAknPopupWindowLayoutDef &, TInt, TBool )

IMPORT_C voidSetupPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &aDef,
TIntaNumberOfLinesInListBox,
TBoolaHeading
)[static]

Setup a border for the window

SetupPopupSNoteGroupWindow ( TAknPopupWindowLayoutDef &, TInt, TBool )

IMPORT_C voidSetupPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &aDef,
TIntnum,
TBoolheading
)[static]

Setup a border for the window

WindowRect ( TAknPopupWindowLayoutDef & )

IMPORT_C TRectWindowRect(TAknPopupWindowLayoutDef &aDef)[static]

Access to different coordinate transformations needed to setup popup windows