CAknGMSStyleGrid Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <akngmsstylegrid.h>

Inherits CAknGrid.


Detailed Description

implements the grid for the PhotoAlbum A markable grid_large_graphic_pane, with 2 columns.

The cell displays 80x32 bitmaps.


Public Member Functions

IMPORT_C  CAknGMSStyleGrid ()
  do not use this, use NewL aIsPopup = EFalse is default.
IMPORT_C  CAknGMSStyleGrid (TBool aIsPopup)
IMPORT_C void  ConstructL (const CCoeControl *aParent, TInt aRows=4, TInt aCols=2)
  2nd phase of construction.
IMPORT_C  ~CAknGMSStyleGrid ()
  the destructor
IMPORT_C void  SetupLayout ()
  Sets the layout of the grid view.
IMPORT_C void  HandlePointerEventL (const TPointerEvent &aPointerEvent)
  From CCoeControl.
IMPORT_C void  SizeChanged ()
  layouts and repaints the grid
IMPORT_C TSize  MinimumSize ()
  Decides size of the grid for dialogs.
IMPORT_C TKeyResponse  OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
  Offers key events to parent class.
IMPORT_C void  Draw (const TRect &aRect) const
  Redraw the grid.
IMPORT_C CListBoxView MakeViewClassInstanceL ()
  Overriden from CAknGrid.

Static Public Member Functions

static IMPORT_C CAknGMSStyleGrid NewL (const CCoeControl *aParent, TBool aIsPopup=EFalse)
  Creates a gms grid.
static TSize  KCELL_SIZE ()
  Defines a grid cell size.

Protected Attributes

TBool  iIsPopup
  Are we a popup window or main pane window, ETrue = popup window.

Constructor & Destructor Documentation

IMPORT_C CAknGMSStyleGrid::CAknGMSStyleGrid  ) 
 

do not use this, use NewL aIsPopup = EFalse is default.

IMPORT_C CAknGMSStyleGrid::CAknGMSStyleGrid TBool  aIsPopup  ) 
 
Parameters:
aIsPopup  Whether a popup layout is used or not
IMPORT_C CAknGMSStyleGrid::~CAknGMSStyleGrid  ) 
 

the destructor


Member Function Documentation

IMPORT_C void CAknGMSStyleGrid::ConstructL const CCoeControl *  aParent,
TInt  aRows = 4,
TInt  aCols = 2
 

2nd phase of construction.

Parameters:
aParent  the parent compound control
aRows  desired rows of grid
aCols  desired cols of grid
IMPORT_C void CAknGMSStyleGrid::Draw const TRect &  aRect  )  const [virtual]
 

Redraw the grid.

Parameters:
aRect  the rectangle to draw.

Reimplemented from CEikListBox.

IMPORT_C void CAknGMSStyleGrid::HandlePointerEventL const TPointerEvent &  aPointerEvent  )  [virtual]
 

From CCoeControl.

Handles pointer events

Reimplemented from CAknGrid.

static TSize CAknGMSStyleGrid::KCELL_SIZE  )  [static]
 

Defines a grid cell size.

Returns:
size of a grid cell
IMPORT_C CListBoxView* CAknGMSStyleGrid::MakeViewClassInstanceL  )  [virtual]
 

Overriden from CAknGrid.

Create the grid view for thus grid class. @ return the grid view

Reimplemented from CAknGrid.

IMPORT_C TSize CAknGMSStyleGrid::MinimumSize  )  [virtual]
 

Decides size of the grid for dialogs.

Reimplemented from CEikListBox.

static IMPORT_C CAknGMSStyleGrid* CAknGMSStyleGrid::NewL const CCoeControl *  aParent,
TBool  aIsPopup = EFalse
[static]
 

Creates a gms grid.

Parameters:
aParent  A parent used to find a window for the grid.
aIsPopup  Whether a popup layout or main pane layout is used
IMPORT_C TKeyResponse CAknGMSStyleGrid::OfferKeyEventL const TKeyEvent &  aKeyEvent,
TEventCode  aType
[virtual]
 

Offers key events to parent class.

Parameters:
aKeyEvent  kind of key event
aType  key typed

Reimplemented from CAknGrid.

IMPORT_C void CAknGMSStyleGrid::SetupLayout  ) 
 

Sets the layout of the grid view.

IMPORT_C void CAknGMSStyleGrid::SizeChanged  )  [virtual]
 

layouts and repaints the grid

Reimplemented from CAknGrid.


Field Documentation

TBool CAknGMSStyleGrid::iIsPopup [protected]
 

Are we a popup window or main pane window, ETrue = popup window.


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

Copyright © Nokia Corporation 2001-2008
Back to top