API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <akngrid.h>
Inherits CEikListBox.
Inherited by CAknCaleMonthStyleGrid, CAknGMSStyleGrid, CAknPinbStyleGrid, and CAknQdialStyleGrid.
Provides support for ordering application grids items.
Public Member Functions |
|
IMPORT_C | CAknGrid () |
Base class default constructor. |
|
virtual IMPORT_C | ~CAknGrid () |
Destructor. |
|
IMPORT_C void | SetModel (CAknGridM *aModel) |
This function gives CAknGridM class pointer to CAknGrid class. |
|
IMPORT_C void | ConstructL (const CCoeControl *aParent, TInt aFlags=0) |
This is Symbian default constructor. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
The ConstructFromResourceL function needs to be called in case resource data is used. |
|
IMPORT_C void | SetLayoutL (TBool aVerticalOrientation, TBool aLeftToRight, TBool aTopToBottom, TInt aNumOfItemsInPrimaryOrient, TInt aNumOfItemsInSecondaryOrient, TSize aSizeOfItems, TInt aWidthOfSpaceBetweenItems=0, TInt aHeightOfSpaceBetweenItems=0) |
Sets the orientation of the grid, either vertical or horizontal, the ordering of the data and the size of the primary dimension
of the grid. |
|
IMPORT_C void | SetLayoutFromResourceL (TResourceReader &aReader) |
Sets the layout from a resource. |
|
IMPORT_C void | SetPrimaryScrollingType (CAknGridView::TScrollingType aScrollingType) |
Sets the movement of the cursor with respect to scrolling when the end item in the current row or column, whichever is the
primary orientation of the data items, is encountered. |
|
IMPORT_C void | SetSecondaryScrollingType (CAknGridView::TScrollingType aSecondaryScrolling) |
Sets the movement of the cursor with respect to scrolling when the end item in the secondary dimension of the grid is encountered.
|
|
IMPORT_C void | SetStartPositionL (TPoint aGridStartPosition) |
Sets the starting position of the data within the grid. |
|
IMPORT_C TInt | CurrentDataIndex () const |
CurrentDataIndex retrieves the index of the selection. |
|
IMPORT_C void | SetCurrentDataIndex (TInt aDataIndex) |
Moves the cursor to the required grid data index. |
|
IMPORT_C TInt | IndexOfPosition (TPoint aGridPosition) const |
The grid position function. |
|
IMPORT_C TPoint | PositionAtIndex (TInt aItemIndex) const |
The grid position function. |
|
IMPORT_C CFormattedCellListBoxItemDrawer * | ItemDrawer () const |
Item drawer. |
|
IMPORT_C void | SetEmptyGridTextL (const TDesC &aText) |
Function sets a grid text to the data item. |
|
const TDesC * | EmptyGridText () const |
This function sets the empty grid text. |
|
virtual IMPORT_C CListBoxView * | MakeViewClassInstanceL () |
This function creates a new object and returns pointer to it. |
|
IMPORT_C void | SetColumnWidth (TInt aColumnWidth) |
This function sets the column width of the grid. |
|
IMPORT_C TInt | ColumnWidth () const |
This function gives a width of the column. |
|
virtual IMPORT_C void | UpdateScrollBarsL () |
This function updates the scrollbars, including item position. |
|
IMPORT_C void | HandleItemAdditionL () |
This function should be called after one or more items have been added to the grid. |
|
IMPORT_C void | HandleItemRemovalL () |
This function should be called after one or more items have been removed from the grid. |
|
virtual IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
This function is from CEikAppUi , handles key events. |
|
IMPORT_C void | SetItemHeightL (TInt aHeight) |
This function sets the row height of the grid. |
|
IMPORT_C void | SizeChanged () |
This function handles size changes. |
|
IMPORT_C CTextListBoxModel * | Model () const |
This function creates a new object and returns pointer to CTextListBoxModel class. |
|
IMPORT_C void | SetRect (const TRect &aRect) |
This function handles viewable rectangle. |
|
virtual IMPORT_C void | HandleViewRectSizeChangeL () |
This function is called when the grid's items, item's data and scroll bars has been changed. |
|
virtual IMPORT_C void | SetTopItemIndex (TInt aItemIndex) const |
This function sets top item index. |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
This function handles resource changes. |
|
IMPORT_C void | FocusChanged (TDrawNow aDrawNow) |
Indicates whether the control should be redrawn now. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
Handling of pointer event within the CEikListBox . |
|
Protected Member Functions |
|
virtual IMPORT_C TInt | HorizontalNudgeValue () const |
This function scroll horizontal by one column when the left/right scroll arrows (i.e. |
|
virtual IMPORT_C TInt | HorizScrollGranularityInPixels () const |
This function gets the granularity for horizontal scrolls. |
|
virtual IMPORT_C void | AdjustTopItemIndex () const |
This function called by various functions of this class to ensure that the top item index is always a sane value. |
|
virtual IMPORT_C void | HandleDragEventL (TPoint aPointerPos) |
This function handles drag events. |
|
virtual IMPORT_C void | RestoreClientRectFromViewRect (TRect &aClientRect) const |
This function calculates the client area. |
|
virtual IMPORT_C TInt | AdjustRectHeightToWholeNumberOfItems (TRect &aRect) const |
This function rounds down the height of the rectangle (if necessary) so that only a whole number of items can be displayed
inside the list box. |
|
virtual IMPORT_C void | UpdateScrollBarThumbs () const |
Updates the position of grids scroll bars’ thumbs to reflect the vertical position of selector. |
|
virtual IMPORT_C TInt | CountComponentControls () const |
Gets a count of the component controls of this grid. |
|
virtual IMPORT_C TTypeUid::Ptr | MopSupplyObject (TTypeUid aId) |
From MObjectProvider . |
|
IMPORT_C void | MoveToNextOrPreviousItemL (TPoint aPoint) |
Moves to the next or previous item on the grid. |
|
virtual IMPORT_C void | CalcGridSizeL () |
This protected function used by functions to check/alter the dimensions of the grid as data items are added or removed or
the size of the items are altered. |
|
virtual IMPORT_C void | CreateItemDrawerL () |
Creates a formatted list item drawer. |
|
virtual IMPORT_C void | HandleScrollEventL (CEikScrollBar *aScrollBar, TEikScrollEvent aEventType) |
From MEikScrollBarObserver . |
|
Base class default constructor.
|
|
Destructor. |
|
This function rounds down the height of the rectangle (if necessary) so that only a whole number of items can be displayed inside the list box.
Reimplemented from CEikListBox. |
|
This function called by various functions of this class to ensure that the top item index is always a sane value.
The implementation in Reimplemented from CEikListBox. |
|
This protected function used by functions to check/alter the dimensions of the grid as data items are added or removed or the size of the items are altered.
It also assumes that |
|
This function gives a width of the column.
|
|
The
Usually, the
|
|
This is Symbian default constructor.
The
Reimplemented from CEikListBox. |
|
Gets a count of the component controls of this grid.
Reimplemented from CEikListBox. |
|
Creates a formatted list item drawer. If a leave occurs the framework generates a Symbian Leave code. |
|
In grids, you should use this method instead of
|
|
This function sets the empty grid text.
|
|
Indicates whether the control should be redrawn now.
If Reimplemented from CEikListBox. |
|
This function handles drag events. If a leave occurs the framework generates a Symbian Leave code.
Reimplemented from CEikListBox. |
|
This function should be called after one or more items have been added to the grid. If a leave occurs the framework generates a Symbian Leave code. Reimplemented from CEikListBox. |
|
This function should be called after one or more items have been removed from the grid. If a leave occurs the framework generates a Symbian Leave code. Reimplemented from CEikListBox. |
|
Handling of pointer event within the Used for e.g. selecting an item from the list box.
Reimplemented from CEikListBox. Reimplemented in CAknGMSStyleGrid, CAknPinbStyleGrid, CAknQdialStyleGrid, and CAknCaleMonthStyleGrid. |
|
This function handles resource changes.
Reimplemented from CEikListBox. |
|
From This function handles scroll events caused by scroll bar. It updates grid's view by event and new thumb position.
Reimplemented from CEikListBox. |
|
This function is called when the grid's items, item's data and scroll bars has been changed. This implementation ensures that the current item is visible after resize. If a leave occurs the framework generates a Symbian Leave code. Reimplemented from CEikListBox. |
|
This function scroll horizontal by one column when the left/right scroll arrows (i.e. the nudge buttons) are tapped.
Reimplemented from CEikListBox. |
|
This function gets the granularity for horizontal scrolls. The granularity is the minimum size of a horizontal move of the client area.
Reimplemented from CEikListBox. |
|
The grid position function. Gives the data index by using grid's position. The position must be given from the top left corner. If the function returns -1 the item's position is invalid.
|
|
Item drawer. Gets the pointer to the grid class.
|
|
This function creates a new object and returns pointer to it. If the leave occurs the framework generates a Symbian Leave code.
Reimplemented from CEikListBox. Reimplemented in CAknGMSStyleGrid. |
|
This function creates a new object and returns pointer to
Reimplemented from CEikListBox. |
|
From Retrieves an object of the same type as that encapsulated in aId. This function is used to allow controls to ask their owners for access to other objects that they own.
|
|
Moves to the next or previous item on the grid. If a leave occurs the framework generates a Symbian Leave code.
|
|
This function is from If a leave occurs the framework generates a Symbian Leave code.
Reimplemented from CEikListBox. Reimplemented in CAknGMSStyleGrid. |
|
The grid position function. Gives the data item's co-ordinate values by using item's index value.
|
|
This function calculates the client area.
This method is called by various functions of this class to recalculate the extent of the client area from
Reimplemented from CEikListBox. |
|
This function sets the column width of the grid.
Column width cannot be set in a horizontal grid since the number of columns in the grid is defined by the initialising call
to
|
|
Moves the cursor to the required grid data index.
|
|
Function sets a grid text to the data item. If a leave occurs the framework generates a Symbian Leave code.
|
|
This function sets the row height of the grid.
Row height cannot be set in a vertical grid since the number of rows in the grid is defined by the initialising call to
Reimplemented from CEikListBox. |
|
Sets the layout from a resource. Layout includes orientation (either vertical or horizontal), horizontal and vertical direction of numbering, the number of items in the primary and secondary orientation, and the primary and secondary scrolling types. If a leave occurs the framework generates a Symbian Leave code.
|
|
Sets the orientation of the grid, either vertical or horizontal, the ordering of the data and the size of the primary dimension of the grid.
The value for the parameter
|
|
This function gives
Usually, the
|
|
Sets the movement of the cursor with respect to scrolling when the end item in the current row or column, whichever is the primary orientation of the data items, is encountered. The movement maybe either stop, loop back to same row or column or move onto the next logical data item in the sequence.
|
|
This function handles viewable rectangle.
|
|
Sets the movement of the cursor with respect to scrolling when the end item in the secondary dimension of the grid is encountered. The movement maybe either stop, loop back back to same row or column or move onto the next logical data item in the sequence.
|
|
Sets the starting position of the data within the grid. A blank page cannot be accessed (since cannot move into empty cells) so a totally blank page is the same as if the page never existed since the user cannot scroll into it. For this reason it is suggested that the start position be no more than one page into the grid. If a leave occurs the framework generates a Symbian Leave code.
|
|
This function sets top item index.
Reimplemented from CEikListBox. |
|
This function handles size changes.
This routine assumes that Reimplemented from CEikListBox. Reimplemented in CAknGMSStyleGrid, CAknPinbStyleGrid, CAknQdialStyleGrid, and CAknCaleMonthStyleGrid. |
|
This function updates the scrollbars, including item position. This function is called when the size of the scrollbars or data changes. If the leave occurs the framework generates a Symbian Leave code. Reimplemented from CEikListBox. |
|
Updates the position of grids scroll bars’ thumbs to reflect the vertical position of selector. Reimplemented from CEikListBox. |