AknPopupLayouts Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknpopuplayout.h>

Public Types

enum   TAknPopupLayouts {
  EMenuWindow, EMenuGraphicWindow, EMenuGraphicHeadingWindow, EMenuDoubleWindow,
  EMenuDoubleLargeGraphicWindow, EPopupSNotePopupWindow, EMenuUnknownColumnWindow, EMenuUnknownFormattedCellWindow,
  EDynMenuWindow = EMenuWindow + 0x80, EDynMenuGraphicWindow, EDynMenuGraphicHeadingWindow, EDynMenuDoubleWindow,
  EDynMenuDoubleLargeGraphicWindow
}
  If you ever want to add new items here, do not -- instead derive from popuplist or list query and override SetupWindowLayout(). More...

Static Public Member Functions

static IMPORT_C void  HandleSizeChanged (TAknPopupWindowLayoutDef &aDef, TAknPopupLayouts aLayout, TAknPopupLayoutsNode *aListOfControls)
  Implementation of SizeChanged() for a popup window control with a list inside.
static IMPORT_C void  HandleSizeChanged (TAknPopupWindowLayoutDef &aDef, TAknPopupLayouts aLayout, CAknPopupHeadingPane *aHeadingOrNull, CEikListBox *aListBox, CCoeControl *aWindowOwningControl)
static IMPORT_C void  HandleDraw (CEikonEnv *aEikEnv, CWindowGc &aGc, const TAknPopupWindowLayoutDef &aDef, CEikListBox *aListBox, CAknPopupHeadingPane *aHeadingOrNull)
  Implementation of Draw() for a popup window control with a list inside.
static IMPORT_C void  ModifyWindowGraphicForHeading (TAknPopupWindowLayoutDef &aDef)
  Adds a heading to popup window.
static IMPORT_C void  ModifyWindowGraphicForMessageBox (TAknPopupWindowLayoutDef &aDef, TInt aNumOfLines)
static IMPORT_C void  CalcPopupMenuWindow (TAknPopupWindowLayoutDef &aDef, TRect aClientRect, TInt aNumberOfLinesInListBox)
  Calculates layout of popup_menu_window from LAF specification.
static IMPORT_C void  CalcPopupMenuGraphicWindow (TAknPopupWindowLayoutDef &aDef, TRect aClientRect, TInt aNumberOfLinesInListBox)
  Calculates layout of popup_menu_graphic_window from LAF specification.
static IMPORT_C void  CalcPopupMenuGraphicHeadingWindow (TAknPopupWindowLayoutDef &aDef, TRect aClientRect, TInt aNumberOfLinesInListBox)
  Calculates layout of popup_menu_graphic_heading_window from LAF specification.
static IMPORT_C void  CalcPopupMenuDoubleWindow (TAknPopupWindowLayoutDef &aDef, TRect aClientRect, TInt aNumberOfLinesInListBox)
  Calculates layout of popup_menu_double_window from LAF specification.
static IMPORT_C void  CalcPopupMenuDoubleLargeGraphicWindow (TAknPopupWindowLayoutDef &aDef, TRect aClientRect, TInt aNumberOfLinesInListBox)
  Calculates layout of popup_menu_double_large_graphic_window from LAF specification.
static IMPORT_C void  CalcPopupSNoteGroupWindow (TAknPopupWindowLayoutDef &aDef, TRect aClientRect, TInt aNumberOfLinesInListBox)
  Calculates layout of popup_snote_window from LAF specification.
static IMPORT_C void  SetupMenuPopupWindow (TAknPopupWindowLayoutDef &aDef, TInt aNumberOfLinesInListBox, TBool aHeading)
  Setup a border for the window.
static IMPORT_C void  SetupPopupMenuGraphicWindow (TAknPopupWindowLayoutDef &aDef, TInt aNumberOfLinesInListBox, TBool aHeading)
  Setup a border for the window.
static IMPORT_C void  SetupPopupMenuGraphicHeadingWindow (TAknPopupWindowLayoutDef &aDef, TInt aNumberOfLinesInListBox, TBool aHeading)
  Setup a border for the window.
static IMPORT_C void  SetupPopupMenuDoubleWindow (TAknPopupWindowLayoutDef &aDef, TInt aNumberOfLinesInListBox, TBool aHeading)
  Setup a border for the window.
static IMPORT_C void  SetupImageSelectionMenuPopupWindow (TAknPopupWindowLayoutDef &aDef, TInt num, TBool heading)
  Setup a border for the window.
static IMPORT_C void  SetupPopupSNoteGroupWindow (TAknPopupWindowLayoutDef &aDef, TInt num, TBool heading)
  Setup a border for the window.
static IMPORT_C void  HandleSizeAndPositionOfComponents (const TAknPopupWindowLayoutDef &aDef, CCoeControl *aContentInsidePopup, CAknPopupHeadingPane *aHeadingOrNull)
static IMPORT_C void  SetupDefaults (TAknPopupWindowLayoutDef &aDef)
static IMPORT_C TRect  WindowRect (TAknPopupWindowLayoutDef &aDef)
  Access to different coordinate transformations needed to setup popup windows.
static IMPORT_C TRect  MenuRect (TAknPopupWindowLayoutDef &aDef)
  Access to different coordinate transformations needed to setup popup windows.
static IMPORT_C void  CheckRange (TInt &aValue, TInt aMin, TInt aMax)
  Check integer range.
static IMPORT_C void  MenuPopupWindowGraphics (TAknPopupWindowLayoutDef &aDef)
  Helper for building popup window layout.
static TRect  RectFromLayout (TRect aParent, const TAknWindowComponentLayout &aComponentLayout)

Member Enumeration Documentation

enum AknPopupLayouts::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.

Enumerator:
EMenuWindow 
EMenuGraphicWindow 
EMenuGraphicHeadingWindow 
EMenuDoubleWindow 
EMenuDoubleLargeGraphicWindow 
EPopupSNotePopupWindow 
EMenuUnknownColumnWindow 
EMenuUnknownFormattedCellWindow 
EDynMenuWindow 
EDynMenuGraphicWindow 
EDynMenuGraphicHeadingWindow 
EDynMenuDoubleWindow 
EDynMenuDoubleLargeGraphicWindow 

Member Function Documentation

static IMPORT_C void AknPopupLayouts::CalcPopupMenuDoubleLargeGraphicWindow TAknPopupWindowLayoutDef aDef,
TRect  aClientRect,
TInt  aNumberOfLinesInListBox
[static]
 

Calculates layout of popup_menu_double_large_graphic_window from LAF specification.

static IMPORT_C void AknPopupLayouts::CalcPopupMenuDoubleWindow TAknPopupWindowLayoutDef aDef,
TRect  aClientRect,
TInt  aNumberOfLinesInListBox
[static]
 

Calculates layout of popup_menu_double_window from LAF specification.

static IMPORT_C void AknPopupLayouts::CalcPopupMenuGraphicHeadingWindow TAknPopupWindowLayoutDef aDef,
TRect  aClientRect,
TInt  aNumberOfLinesInListBox
[static]
 

Calculates layout of popup_menu_graphic_heading_window from LAF specification.

static IMPORT_C void AknPopupLayouts::CalcPopupMenuGraphicWindow TAknPopupWindowLayoutDef aDef,
TRect  aClientRect,
TInt  aNumberOfLinesInListBox
[static]
 

Calculates layout of popup_menu_graphic_window from LAF specification.

static IMPORT_C void AknPopupLayouts::CalcPopupMenuWindow TAknPopupWindowLayoutDef aDef,
TRect  aClientRect,
TInt  aNumberOfLinesInListBox
[static]
 

Calculates layout of popup_menu_window from LAF specification.

static IMPORT_C void AknPopupLayouts::CalcPopupSNoteGroupWindow TAknPopupWindowLayoutDef aDef,
TRect  aClientRect,
TInt  aNumberOfLinesInListBox
[static]
 

Calculates layout of popup_snote_window from LAF specification.

static IMPORT_C void AknPopupLayouts::CheckRange TInt &  aValue,
TInt  aMin,
TInt  aMax
[static]
 

Check integer range.

static IMPORT_C void AknPopupLayouts::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.

static IMPORT_C void AknPopupLayouts::HandleSizeAndPositionOfComponents const TAknPopupWindowLayoutDef aDef,
CCoeControl *  aContentInsidePopup,
CAknPopupHeadingPane aHeadingOrNull
[static]
 
static IMPORT_C void AknPopupLayouts::HandleSizeChanged TAknPopupWindowLayoutDef aDef,
TAknPopupLayouts  aLayout,
CAknPopupHeadingPane aHeadingOrNull,
CEikListBox aListBox,
CCoeControl *  aWindowOwningControl
[static]
 
static IMPORT_C void AknPopupLayouts::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...

static IMPORT_C void AknPopupLayouts::MenuPopupWindowGraphics TAknPopupWindowLayoutDef aDef  )  [static]
 

Helper for building popup window layout.

static IMPORT_C TRect AknPopupLayouts::MenuRect TAknPopupWindowLayoutDef aDef  )  [static]
 

Access to different coordinate transformations needed to setup popup windows.

static IMPORT_C void AknPopupLayouts::ModifyWindowGraphicForHeading TAknPopupWindowLayoutDef aDef  )  [static]
 

Adds a heading to popup window.

static IMPORT_C void AknPopupLayouts::ModifyWindowGraphicForMessageBox TAknPopupWindowLayoutDef aDef,
TInt  aNumOfLines
[static]
 
static TRect AknPopupLayouts::RectFromLayout TRect  aParent,
const TAknWindowComponentLayout &  aComponentLayout
[static]
 
static IMPORT_C void AknPopupLayouts::SetupDefaults TAknPopupWindowLayoutDef aDef  )  [static]
 
static IMPORT_C void AknPopupLayouts::SetupImageSelectionMenuPopupWindow TAknPopupWindowLayoutDef aDef,
TInt  num,
TBool  heading
[static]
 

Setup a border for the window.

static IMPORT_C void AknPopupLayouts::SetupMenuPopupWindow TAknPopupWindowLayoutDef aDef,
TInt  aNumberOfLinesInListBox,
TBool  aHeading
[static]
 

Setup a border for the window.

static IMPORT_C void AknPopupLayouts::SetupPopupMenuDoubleWindow TAknPopupWindowLayoutDef aDef,
TInt  aNumberOfLinesInListBox,
TBool  aHeading
[static]
 

Setup a border for the window.

static IMPORT_C void AknPopupLayouts::SetupPopupMenuGraphicHeadingWindow TAknPopupWindowLayoutDef aDef,
TInt  aNumberOfLinesInListBox,
TBool  aHeading
[static]
 

Setup a border for the window.

static IMPORT_C void AknPopupLayouts::SetupPopupMenuGraphicWindow TAknPopupWindowLayoutDef aDef,
TInt  aNumberOfLinesInListBox,
TBool  aHeading
[static]
 

Setup a border for the window.

static IMPORT_C void AknPopupLayouts::SetupPopupSNoteGroupWindow TAknPopupWindowLayoutDef aDef,
TInt  num,
TBool  heading
[static]
 

Setup a border for the window.

static IMPORT_C TRect AknPopupLayouts::WindowRect TAknPopupWindowLayoutDef aDef  )  [static]
 

Access to different coordinate transformations needed to setup popup windows.


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top