AknPopupLayouts Class Reference

class AknPopupLayouts
Public Member Functions
IMPORT_C void CalcPopupMenuDoubleLargeGraphicWindow ( TAknPopupWindowLayoutDef &, TRect , TInt )
IMPORT_C void CalcPopupMenuDoubleWindow ( TAknPopupWindowLayoutDef &, TRect , TInt )
IMPORT_C void CalcPopupMenuGraphicHeadingWindow ( TAknPopupWindowLayoutDef &, TRect , TInt )
IMPORT_C void CalcPopupMenuGraphicWindow ( TAknPopupWindowLayoutDef &, TRect , TInt )
IMPORT_C void CalcPopupMenuWindow ( TAknPopupWindowLayoutDef &, TRect , TInt )
IMPORT_C void CalcPopupSNoteGroupWindow ( TAknPopupWindowLayoutDef &, TRect , TInt )
IMPORT_C void CheckRange ( TInt &, TInt , TInt )
IMPORT_C void HandleDraw ( CEikonEnv *, CWindowGc &, const TAknPopupWindowLayoutDef &, CEikListBox *, CAknPopupHeadingPane *)
IMPORT_C void HandleSizeAndPositionOfComponents (const TAknPopupWindowLayoutDef &, CCoeControl *, CAknPopupHeadingPane *)
IMPORT_C void HandleSizeChanged ( TAknPopupWindowLayoutDef &, TAknPopupLayouts , TAknPopupLayoutsNode *)
IMPORT_C void HandleSizeChanged ( TAknPopupWindowLayoutDef &, TAknPopupLayouts , CAknPopupHeadingPane *, CEikListBox *, CCoeControl *)
IMPORT_C void MenuPopupWindowGraphics ( TAknPopupWindowLayoutDef &)
IMPORT_C TRect MenuRect ( TAknPopupWindowLayoutDef &)
IMPORT_C void ModifyWindowGraphicForHeading ( TAknPopupWindowLayoutDef &)
IMPORT_C void ModifyWindowGraphicForMessageBox ( TAknPopupWindowLayoutDef &, TInt )
TRect RectFromLayout ( TRect , const TAknWindowComponentLayout &)
IMPORT_C void SetupDefaults ( TAknPopupWindowLayoutDef &)
IMPORT_C void SetupImageSelectionMenuPopupWindow ( TAknPopupWindowLayoutDef &, TInt , TBool )
IMPORT_C void SetupMenuPopupWindow ( TAknPopupWindowLayoutDef &, TInt , TBool )
IMPORT_C void SetupPopupMenuDoubleWindow ( TAknPopupWindowLayoutDef &, TInt , TBool )
IMPORT_C void SetupPopupMenuGraphicHeadingWindow ( TAknPopupWindowLayoutDef &, TInt , TBool )
IMPORT_C void SetupPopupMenuGraphicWindow ( TAknPopupWindowLayoutDef &, TInt , TBool )
IMPORT_C void SetupPopupSNoteGroupWindow ( TAknPopupWindowLayoutDef &, TInt , TBool )
IMPORT_C TRect WindowRect ( TAknPopupWindowLayoutDef &)
Private Member Functions
void CommonSetup ( TAknPopupWindowLayoutDef &, const TAknWindowComponentLayout &, TInt , TBool , TBool )
Public Member Enumerations
enum TAknPopupLayouts {
EMenuWindow , EMenuGraphicWindow , EMenuGraphicHeadingWindow , EMenuDoubleWindow , EMenuDoubleLargeGraphicWindow , EPopupSNotePopupWindow , EMenuUnknownColumnWindow , EMenuUnknownFormattedCellWindow , EDynMenuWindow  = EMenuWindow + 0x80, EDynMenuGraphicWindow , EDynMenuGraphicHeadingWindow , EDynMenuDoubleWindow , EDynMenuDoubleLargeGraphicWindow
}

Member Functions Documentation

CalcPopupMenuDoubleLargeGraphicWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

IMPORT_C void CalcPopupMenuDoubleLargeGraphicWindow ( TAknPopupWindowLayoutDef & aDef,
TRect aClientRect,
TInt aNumberOfLinesInListBox
) [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 void CalcPopupMenuDoubleWindow ( TAknPopupWindowLayoutDef & aDef,
TRect aClientRect,
TInt aNumberOfLinesInListBox
) [static]

Calculates layout of popup_menu_double_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

IMPORT_C void CalcPopupMenuGraphicHeadingWindow ( TAknPopupWindowLayoutDef & aDef,
TRect aClientRect,
TInt aNumberOfLinesInListBox
) [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 void CalcPopupMenuGraphicWindow ( TAknPopupWindowLayoutDef & aDef,
TRect aClientRect,
TInt aNumberOfLinesInListBox
) [static]

Calculates layout of popup_menu_graphic_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupMenuWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

IMPORT_C void CalcPopupMenuWindow ( TAknPopupWindowLayoutDef & aDef,
TRect aClientRect,
TInt aNumberOfLinesInListBox
) [static]

Calculates layout of popup_menu_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CalcPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &, TRect, TInt)

IMPORT_C void CalcPopupSNoteGroupWindow ( TAknPopupWindowLayoutDef & aDef,
TRect aClientRect,
TInt aNumberOfLinesInListBox
) [static]

Calculates layout of popup_snote_window from LAF specification

Parameters

TAknPopupWindowLayoutDef & aDef
TRect aClientRect
TInt aNumberOfLinesInListBox

CheckRange(TInt &, TInt, TInt)

IMPORT_C void CheckRange ( TInt & aValue,
TInt aMin,
TInt aMax
) [static]

Check integer range

Parameters

TInt & aValue
TInt aMin
TInt aMax

CommonSetup(TAknPopupWindowLayoutDef &, const TAknWindowComponentLayout &, TInt, TBool, TBool)

void CommonSetup ( TAknPopupWindowLayoutDef & aDef,
const TAknWindowComponentLayout & aItemLayout,
TInt aNum,
TBool aHeading,
TBool aLayoutHeading
) [private, static]

Contains layout setup that is common for all popups.

Parameters

TAknPopupWindowLayoutDef & aDef
const TAknWindowComponentLayout & aItemLayout
TInt aNum
TBool aHeading
TBool aLayoutHeading

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

IMPORT_C void HandleDraw ( 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 void HandleSizeAndPositionOfComponents ( const TAknPopupWindowLayoutDef & aDef,
CCoeControl * aContentInsidePopup,
CAknPopupHeadingPane * aHeadingOrNull
) [static]

Parameters

const TAknPopupWindowLayoutDef & aDef
CCoeControl * aContentInsidePopup
CAknPopupHeadingPane * aHeadingOrNull

HandleSizeChanged(TAknPopupWindowLayoutDef &, TAknPopupLayouts, TAknPopupLayoutsNode *)

IMPORT_C void HandleSizeChanged ( TAknPopupWindowLayoutDef & aDef,
TAknPopupLayouts aLayout,
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 void HandleSizeChanged ( TAknPopupWindowLayoutDef & aDef,
TAknPopupLayouts aLayout,
CAknPopupHeadingPane * aHeadingOrNull,
CEikListBox * aListBox,
CCoeControl * aWindowOwningControl
) [static]

Parameters

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

MenuPopupWindowGraphics(TAknPopupWindowLayoutDef &)

IMPORT_C void MenuPopupWindowGraphics ( TAknPopupWindowLayoutDef & aDef ) [static]

Helper for building popup window layout

Parameters

TAknPopupWindowLayoutDef & aDef

MenuRect(TAknPopupWindowLayoutDef &)

IMPORT_C TRect MenuRect ( TAknPopupWindowLayoutDef & aDef ) [static]

Access to different coordinate transformations needed to setup popup windows

Parameters

TAknPopupWindowLayoutDef & aDef

ModifyWindowGraphicForHeading(TAknPopupWindowLayoutDef &)

IMPORT_C void ModifyWindowGraphicForHeading ( TAknPopupWindowLayoutDef & aDef ) [static]

Adds a heading to popup window

Parameters

TAknPopupWindowLayoutDef & aDef

ModifyWindowGraphicForMessageBox(TAknPopupWindowLayoutDef &, TInt)

IMPORT_C void ModifyWindowGraphicForMessageBox ( TAknPopupWindowLayoutDef & aDef,
TInt aNumOfLines
) [static]

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumOfLines

RectFromLayout(TRect, const TAknWindowComponentLayout &)

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

Parameters

TRect aParent
const TAknWindowComponentLayout & aComponentLayout

SetupDefaults(TAknPopupWindowLayoutDef &)

IMPORT_C void SetupDefaults ( TAknPopupWindowLayoutDef & aDef ) [static]

Parameters

TAknPopupWindowLayoutDef & aDef

SetupImageSelectionMenuPopupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

IMPORT_C void SetupImageSelectionMenuPopupWindow ( TAknPopupWindowLayoutDef & aDef,
TInt num,
TBool heading
) [static]

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt num
TBool heading

SetupMenuPopupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

IMPORT_C void SetupMenuPopupWindow ( TAknPopupWindowLayoutDef & aDef,
TInt aNumberOfLinesInListBox,
TBool aHeading
) [static]

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupMenuDoubleWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

IMPORT_C void SetupPopupMenuDoubleWindow ( TAknPopupWindowLayoutDef & aDef,
TInt aNumberOfLinesInListBox,
TBool aHeading
) [static]

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupMenuGraphicHeadingWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

IMPORT_C void SetupPopupMenuGraphicHeadingWindow ( TAknPopupWindowLayoutDef & aDef,
TInt aNumberOfLinesInListBox,
TBool aHeading
) [static]

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupMenuGraphicWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

IMPORT_C void SetupPopupMenuGraphicWindow ( TAknPopupWindowLayoutDef & aDef,
TInt aNumberOfLinesInListBox,
TBool aHeading
) [static]

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt aNumberOfLinesInListBox
TBool aHeading

SetupPopupSNoteGroupWindow(TAknPopupWindowLayoutDef &, TInt, TBool)

IMPORT_C void SetupPopupSNoteGroupWindow ( TAknPopupWindowLayoutDef & aDef,
TInt num,
TBool heading
) [static]

Setup a border for the window

Parameters

TAknPopupWindowLayoutDef & aDef
TInt num
TBool heading

WindowRect(TAknPopupWindowLayoutDef &)

IMPORT_C TRect WindowRect ( 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