AknPopupLayouts Class Reference

class AknPopupLayouts
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 &)
Public Member Enumerations
enumTAknPopupLayouts {
EMenuWindow, EMenuGraphicWindow, EMenuGraphicHeadingWindow, EMenuDoubleWindow, EMenuDoubleLargeGraphicWindow, EPopupSNotePopupWindow, EMenuUnknownColumnWindow, EMenuUnknownFormattedCellWindow, EDynMenuWindow = EMenuWindow + 0x80, EDynMenuGraphicWindow, EDynMenuGraphicHeadingWindow, EDynMenuDoubleWindow, EDynMenuDoubleLargeGraphicWindow
}

Member Functions 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

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

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

Calculates layout of popup_menu_double_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

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

Calculates layout of popup_menu_graphic_heading_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

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

Calculates layout of popup_menu_graphic_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupMenuWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

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

Calculates layout of popup_menu_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

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

Calculates layout of popup_snote_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CheckRange(TInt &, TInt, TInt)

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

Check integer range

Parameters

TInt & aValue
TInt aMin
TInt aMax

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

Parameters

CEikonEnv * aEikEnv
CWindowGc & aGc
const TAknPopupWindowLayoutDef & aDef
CEikListBox * aListBox
CAknPopupHeadingPane * aHeadingOrNull

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

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

Parameters

const TAknPopupWindowLayoutDef & aDef
CCoeControl * aContentInsidePopup
CAknPopupHeadingPane * aHeadingOrNull

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...

Parameters

TAknPopupWindowLayoutDef & aDef
TAknPopupLayouts aLayout
TAknPopupLayoutsNode * aListOfControls

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

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

Parameters

TAknPopupWindowLayoutDef & aDef
TAknPopupLayouts aLayout
CAknPopupHeadingPane * aHeadingOrNull
CEikListBox * aListBox
CCoeControl * aWindowOwningControl

MenuPopupWindowGraphics(TAknPopupWindowLayoutDef &)

IMPORT_C voidMenuPopupWindowGraphics(TAknPopupWindowLayoutDef &aDef)[static]

Helper for building popup window layout

Parameters

TAknPopupWindowLayoutDef & aDef

MenuRect(TAknPopupWindowLayoutDef &)

IMPORT_C TRectMenuRect(TAknPopupWindowLayoutDef &aDef)[static]

Access to different coordinate transformations needed to setup popup windows

Parameters

TAknPopupWindowLayoutDef & aDef

ModifyWindowGraphicForHeading(TAknPopupWindowLayoutDef &)

IMPORT_C voidModifyWindowGraphicForHeading(TAknPopupWindowLayoutDef &aDef)[static]

Adds a heading to popup window

Parameters

TAknPopupWindowLayoutDef & aDef

ModifyWindowGraphicForMessageBox(TAknPopupWindowLayoutDef &, TInt)

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

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumOfLines

RectFromLayout(TRect, const TAknWindowComponentLayout &)

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

Parameters

TRect aParent
const TAknWindowComponentLayout & aComponentLayout

SetupDefaults(TAknPopupWindowLayoutDef &)

IMPORT_C voidSetupDefaults(TAknPopupWindowLayoutDef &aDef)[static]

Parameters

TAknPopupWindowLayoutDef & aDef

SetupImageSelectionMenuPopupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

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

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt num
TBool heading

SetupMenuPopupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

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

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

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

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

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

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

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

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

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

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt num
TBool heading

WindowRect(TAknPopupWindowLayoutDef &)

IMPORT_C TRectWindowRect(TAknPopupWindowLayoutDef &aDef)[static]

Access to different coordinate transformations needed to setup popup windows

Parameters

TAknPopupWindowLayoutDef & aDef

Member Enumerations 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.

Enumerators

EMenuWindow
EMenuGraphicWindow
EMenuGraphicHeadingWindow
EMenuDoubleWindow
EMenuDoubleLargeGraphicWindow
EPopupSNotePopupWindow
EMenuUnknownColumnWindow
EMenuUnknownFormattedCellWindow
EDynMenuWindow = EMenuWindow + 0x80
EDynMenuGraphicWindow
EDynMenuGraphicHeadingWindow
EDynMenuDoubleWindow
EDynMenuDoubleLargeGraphicWindow