CAknGrid Class Reference
class CAknGrid : public CEikListBox
|
Application grid handling class from Avkon. Provides support for ordering application grids items.
Inherited Functions
|
|
CAknControl::CAknControl()
|
|
CAknControl::~CAknControl()
|
|
CBase::CBase()
|
|
CBase::Delete(CBase *)
|
|
CBase::Extension_(TUint,TAny *&,TAny *)
|
|
CBase::operator new(TUint)
|
|
CBase::operator new(TUint,TAny *)
|
|
CBase::operator new(TUint,TLeave)
|
|
CBase::operator new(TUint,TLeave,TUint)
|
|
CBase::operator new(TUint,TUint)
|
|
CBase::~CBase()
|
|
CCoeControl::AccumulatedZoom()const
|
|
CCoeControl::ActivateGc()const
|
|
CCoeControl::BackedUpWindow()const
|
|
CCoeControl::Background()const
|
|
CCoeControl::CCoeControl()
|
|
CCoeControl::CCoeControl(CCoeEnv *)
|
|
CCoeControl::CCoeControl(const CCoeControl &)
|
|
CCoeControl::CapturesPointer()const
|
|
CCoeControl::ClaimPointerGrab(TBool)
|
|
CCoeControl::ClaimPointerGrab(TInt,TBool)
|
|
CCoeControl::CloseWindow()
|
|
CCoeControl::ComponentArrayExists()const
|
|
CCoeControl::Components()
|
|
CCoeControl::Components()const
|
|
CCoeControl::ControlContext()const
|
|
CCoeControl::ControlEnv()const
|
|
CCoeControl::CopyControlContextFrom(const CCoeControl *)
|
|
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
|
|
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
|
|
CCoeControl::CreateWindowL()
|
|
CCoeControl::CreateWindowL(RWindowGroup *)
|
|
CCoeControl::CreateWindowL(RWindowTreeNode &)
|
|
CCoeControl::CreateWindowL(const CCoeControl *)
|
|
CCoeControl::CustomGc()const
|
|
CCoeControl::DeactivateGc()const
|
|
CCoeControl::DrawBackground(const TRect &)const
|
|
CCoeControl::DrawDeferred()const
|
|
CCoeControl::DrawForeground(const TRect &)const
|
|
CCoeControl::DrawNow()const
|
|
CCoeControl::DrawNow(const TRect &)const
|
|
CCoeControl::DrawableWindow()const
|
|
CCoeControl::EnableDragEvents()
|
|
CCoeControl::EnableReportControlStateChange(TBool)
|
|
CCoeControl::EnableWindowTransparency()
|
|
CCoeControl::FindBackground()const
|
|
CCoeControl::FindFontProvider()const
|
|
CCoeControl::GetColor(TInt,TRgb &)const
|
|
CCoeControl::GetGc()const
|
|
CCoeControl::GetHelpContext(TCoeHelpContext &)const
|
|
CCoeControl::GrabbingComponent()const
|
|
CCoeControl::GrabbingComponent(TInt)const
|
|
CCoeControl::HandleComponentControlsResourceChange(TInt)
|
|
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
|
|
CCoeControl::HandlePointerBufferReadyL()
|
|
CCoeControl::HandleRedrawEvent(const TRect &)const
|
|
CCoeControl::HitTest()const
|
|
CCoeControl::IgnoreEventsUntilNextPointerUp()
|
|
CCoeControl::Index(const CCoeControl *)const
|
|
CCoeControl::InitComponentArrayL()
|
|
CCoeControl::IsActivated()const
|
|
CCoeControl::IsBackedUp()const
|
|
CCoeControl::IsBeingDestroyed()const
|
|
CCoeControl::IsBlank()const
|
|
CCoeControl::IsDimmed()const
|
|
CCoeControl::IsFocused()const
|
|
CCoeControl::IsNonFocusing()const
|
|
CCoeControl::IsReadyToDraw()const
|
|
CCoeControl::IsVisible()const
|
|
CCoeControl::LayoutManager()const
|
|
CCoeControl::MaximumWidth()const
|
|
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
|
|
CCoeControl::Observer()const
|
|
CCoeControl::OverrideColorL(TInt,TRgb)
|
|
CCoeControl::OwnsWindow()const
|
|
CCoeControl::Parent()
|
|
CCoeControl::Parent()const
|
|
CCoeControl::Position()const
|
|
CCoeControl::PositionChanged()
|
|
CCoeControl::PositionRelativeToScreen()const
|
|
CCoeControl::PrepareForFocusGainL()
|
|
CCoeControl::PrepareForFocusLossL()
|
|
CCoeControl::ProcessPointerBufferReadyL()
|
|
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
|
|
CCoeControl::Rect()const
|
|
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
|
|
CCoeControl::RecursivelyMergedInputCapabilities()const
|
|
CCoeControl::RefetchPixelMappingL()
|
|
CCoeControl::RemoveFromParent()
|
|
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
|
|
CCoeControl::RequestRelayout(const CCoeControl *)
|
|
CCoeControl::ResetGc()const
|
|
CCoeControl::ScreenFont(const TCoeFont &)const
|
|
CCoeControl::SetAllowStrayPointers()
|
|
CCoeControl::SetBackground(const MCoeControlBackground *)
|
|
CCoeControl::SetBlank()
|
|
CCoeControl::SetCanDrawOutsideRect()
|
|
CCoeControl::SetComponentsToInheritVisibility(TBool)
|
|
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
|
|
CCoeControl::SetContainerWindowL(RWindow &)
|
|
CCoeControl::SetControlContext(MCoeControlContext *)
|
|
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
|
|
CCoeControl::SetCustomGc(CWindowGc *)
|
|
CCoeControl::SetExtent(const TPoint &,const TSize &)
|
|
CCoeControl::SetExtentToWholeScreen()
|
|
CCoeControl::SetFocus(TBool,TDrawNow)
|
|
CCoeControl::SetFocusing(TBool)
|
|
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
|
|
CCoeControl::SetGc(CWindowGc *)const
|
|
CCoeControl::SetGloballyCapturing(TBool)
|
|
CCoeControl::SetHitTest(const MCoeControlHitTest *)
|
|
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
|
|
CCoeControl::SetMaximumWidth(TInt)
|
|
CCoeControl::SetMopParent(MObjectProvider *)
|
|
CCoeControl::SetNeighbor(CCoeControl *)
|
|
CCoeControl::SetNonFocusing()
|
|
CCoeControl::SetObserver(MCoeControlObserver *)
|
|
CCoeControl::SetParent(CCoeControl *)
|
|
CCoeControl::SetPointerCapture(TBool)
|
|
CCoeControl::SetPosition(const TPoint &)
|
|
CCoeControl::SetSize(const TSize &)
|
|
CCoeControl::SetSizeWithoutNotification(const TSize &)
|
|
CCoeControl::SetTextBaselineSpacing(TInt)
|
|
CCoeControl::SetUniqueHandle(TInt)
|
|
CCoeControl::SetZoomFactorL(TInt,TZoomType)
|
|
CCoeControl::Size()const
|
|
CCoeControl::SystemGc()const
|
|
CCoeControl::TextBaselineOffset(const TSize &)const
|
|
CCoeControl::TextDrawer(TInt)const
|
|
CCoeControl::UniqueHandle()const
|
|
CCoeControl::Window()const
|
|
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
|
|
CCoeControl::ZoomWithType()const
|
|
CCoeControl::operator=(const CCoeControl &)
|
|
CCoeControl::~CCoeControl()
|
|
CEikBorderedControl::Border()const
|
|
CEikBorderedControl::CEikBorderedControl()
|
|
CEikBorderedControl::CEikBorderedControl(const TGulBorder &)
|
|
CEikBorderedControl::HasBorder()const
|
|
CEikBorderedControl::SetAdjacent(TInt)
|
|
CEikBorderedControl::SetBorder(TGulBorder::TBorderType)
|
|
CEikBorderedControl::SetBorder(TInt)
|
|
CEikBorderedControl::WriteInternalStateL(RWriteStream &)const
|
|
CEikListBox::ActivateL()
|
|
CEikListBox::AddItemChangeObserverL(MListBoxItemChangeObserver *)
|
|
CEikListBox::AddSelectionObserverL(MListBoxSelectionObserver *)
|
|
CEikListBox::BackColor()const
|
|
CEikListBox::BackgroundDrawingSuppressed()const
|
|
CEikListBox::BottomItemIndex()const
|
|
CEikListBox::Buffer()const
|
|
CEikListBox::CEikListBox()
|
|
CEikListBox::CalcHeightBasedOnNumOfItems(TInt)const
|
|
CEikListBox::CalcSizeInPixels(TInt,TInt)const
|
|
CEikListBox::CalcWidthBasedOnNumOfChars(TInt)const
|
|
CEikListBox::CalcWidthBasedOnRequiredItemWidth(TInt)const
|
|
CEikListBox::CalculatePopoutRect(TInt,TInt,TRect &,TInt)
|
|
CEikListBox::ChangeSelectionMode(TBool)
|
|
CEikListBox::CheckCreateBufferL()
|
|
CEikListBox::CheckCreateExtension()
|
|
CEikListBox::CheckCreateExtensionL()
|
|
CEikListBox::ClearMargins()const
|
|
CEikListBox::ClearMatchBuffer()const
|
|
CEikListBox::ClearSelection()
|
|
CEikListBox::ComponentControl(TInt)const
|
|
CEikListBox::ConstructL(MListBoxModel *,CListItemDrawer *,const CCoeControl *,TGulBorder,TInt)
|
|
CEikListBox::ConstructL(MListBoxModel *,CListItemDrawer *,const CCoeControl *,TInt)
|
|
CEikListBox::CreateMatchBufferL()
|
|
CEikListBox::CreateScrollBarFrameL(TBool)
|
|
CEikListBox::CreateScrollBarFrameL(TBool,TBool)
|
|
CEikListBox::CreateScrollBarFrameL(TBool,TBool,TBool)
|
|
CEikListBox::CreateScrollBarFrameLayout(TEikScrollBarFrameLayout &)const
|
|
CEikListBox::CreateViewL()
|
|
CEikListBox::CurrentItemIndex()const
|
|
CEikListBox::DisableItemSpecificMenu()
|
|
CEikListBox::DisableScrolling(TBool)
|
|
CEikListBox::DisableSingleClick(TBool)
|
|
CEikListBox::DoShiftMSKMarkingL()
|
|
CEikListBox::Draw(const TRect &)const
|
|
CEikListBox::DrawItem(TInt)const
|
|
CEikListBox::DrawMatcherCursor()const
|
|
CEikListBox::EditItemL(TInt)
|
|
CEikListBox::EnableMSKObserver(TBool)
|
|
CEikListBox::EventModifiers()
|
|
CEikListBox::FireItemChange()
|
|
CEikListBox::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
|
|
CEikListBox::HandleItemAdditionL(CArrayFix< TInt > &)
|
|
CEikListBox::HandleItemRemovalL(CArrayFix< TInt > &)
|
|
CEikListBox::HandleLeftArrowKeyL(CListBoxView::TSelectionMode)
|
|
CEikListBox::HandlePhysicsScrollEventL(TInt)
|
|
CEikListBox::HandleRightArrowKeyL(CListBoxView::TSelectionMode)
|
|
CEikListBox::HighlightRect()const
|
|
CEikListBox::HorizontalMargin()const
|
|
CEikListBox::InformMSKButtonGroupDeletion()
|
|
CEikListBox::InputCapabilities()const
|
|
CEikListBox::InterItemGap()
|
|
CEikListBox::IsHighlightEnabled()
|
|
CEikListBox::IsMatchBuffer()const
|
|
CEikListBox::IsMultiselection()
|
|
CEikListBox::ItemEditor()
|
|
CEikListBox::ItemExists(TInt)const
|
|
CEikListBox::ItemHeight()const
|
|
CEikListBox::ItemsInSingleLine()const
|
|
CEikListBox::LastCharMatched()const
|
|
CEikListBox::ListBoxMargins()const
|
|
CEikListBox::MakeVisible(TBool)
|
|
CEikListBox::MatchBuffer()const
|
|
CEikListBox::MatchTypedCharL(TUint)
|
|
CEikListBox::MinimumSize()
|
|
CEikListBox::ReasonForFocusLostL()
|
|
CEikListBox::RedrawItem(TInt)
|
|
CEikListBox::RemoveItemChangeObserver(MListBoxItemChangeObserver *)
|
|
CEikListBox::RemoveSelectionObserver(MListBoxSelectionObserver *)
|
|
CEikListBox::ReportListBoxEventL(MEikListBoxObserver::TListBoxEvent)
|
|
CEikListBox::Reset()
|
|
CEikListBox::ResetItemEditor()
|
|
CEikListBox::RestoreCommonListBoxPropertiesL(TResourceReader &)
|
|
CEikListBox::ScrollBarFrame()
|
|
CEikListBox::ScrollToMakeItemVisible(TInt)const
|
|
CEikListBox::ScrollingDisabled()
|
|
CEikListBox::SelectionIndexes()const
|
|
CEikListBox::SetContainerWindowL(const CCoeControl &)
|
|
CEikListBox::SetCurrentItemIndex(TInt)const
|
|
CEikListBox::SetCurrentItemIndexAndDraw(TInt)const
|
|
CEikListBox::SetDimmed(TBool)
|
|
CEikListBox::SetHorizontalMargin(TInt)
|
|
CEikListBox::SetItemEditor(MEikListBoxEditor *)
|
|
CEikListBox::SetItemsInSingleLine(TInt)
|
|
CEikListBox::SetLaunchingButton(CEikButtonBase *)
|
|
CEikListBox::SetListBoxObserver(MEikListBoxObserver *)
|
|
CEikListBox::SetMarkingMode(TBool)
|
|
CEikListBox::SetMarkingModeObserver(MAknMarkingModeObserver *)
|
|
CEikListBox::SetPointerEventFilterDisabledL(const CArrayFix< TInt > &)
|
|
CEikListBox::SetReasonForFocusLostL(TReasonForFocusLost)
|
|
CEikListBox::SetScrollBarFrame(CEikScrollBarFrame *,TScrollBarOwnerShip)
|
|
CEikListBox::SetSelectionIndexesL(CListBoxView::CSelectionIndexArray *)
|
|
CEikListBox::SetShortcutValueFromPrevList(TInt)
|
|
CEikListBox::SetVerticalMargin(TInt)
|
|
CEikListBox::SetViewRectFromClientRect(const TRect &)
|
|
CEikListBox::SetViewRectHeightAdjustment(TInt)
|
|
CEikListBox::ShortcutValueForNextList()
|
|
CEikListBox::SimulateArrowKeyEventL(TKeyCode)
|
|
CEikListBox::StopEditingL(TBool)
|
|
CEikListBox::SuspendEffects(TBool)
|
|
CEikListBox::TopItemIndex()const
|
|
CEikListBox::UndoLastChar()
|
|
CEikListBox::UpdateCurrentItem(TInt)const
|
|
CEikListBox::UpdateItemDrawerColors()
|
|
CEikListBox::UpdateMarkUnmarkMSKL()const
|
|
CEikListBox::UpdateViewColors()
|
|
CEikListBox::VerticalInterItemGap()const
|
|
CEikListBox::VerticalMargin()const
|
|
CEikListBox::View()const
|
|
CEikListBox::ViewRectHeightAdjustment()const
|
|
CEikListBox::~CEikListBox()
|
Constructor & Destructor Documentation
CAknGrid()
Base class default constructor.
~CAknGrid()
IMPORT_C
|
~CAknGrid
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AdjustRectHeightToWholeNumberOfItems(TRect &)
IMPORT_C
TInt
|
AdjustRectHeightToWholeNumberOfItems
|
(
|
TRect
&
|
aRect
|
)
|
const [protected, virtual]
|
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.
Parameters
TRect
& aRect
|
Rectangle parameter.
|
AdjustTopItemIndex()
IMPORT_C void
|
AdjustTopItemIndex
|
(
|
)
|
const [protected, virtual]
|
This function called by various functions of this class to ensure that the top item index is always a sane value. The implementation in
CEikListBox
tries to ensure the minimum amount of white space at the bottom of the list box. Note that this function does not affect the current item index.
CalcGridSizeL()
IMPORT_C void
|
CalcGridSizeL
|
(
|
)
|
[protected, virtual]
|
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
SetLayoutL
has been called. This will not leave if scrollbars have both been turned off. If a leave occurs the framework generates a Symbian Leave code.
ColumnWidth()
IMPORT_C
TInt
|
ColumnWidth
|
(
|
)
|
const
|
This function gives a width of the column.
ConstructFromResourceL(TResourceReader &)
IMPORT_C void
|
ConstructFromResourceL
|
(
|
TResourceReader
&
|
aReader
|
)
|
[virtual]
|
The
ConstructFromResourceL
function needs to be called in case resource data is used. Usually, the
CAknGridM
class object is instantiated automatically during the construction phase of the
CAknGrid
object. If an application programmer provides their own grid model class, the application programmer must instantiate their own grid model class object and give it to the
CAknGrid
object using the
SetModel
function before calling the
ConstructL/ConstructFromResourceL
function. If a leave occurs the framework generates a Symbian Leave code.
ConstructL(const CCoeControl *, TInt)
IMPORT_C void
|
ConstructL
|
(
|
const
CCoeControl
*
|
aParent,
|
|
TInt
|
aFlags = 0
|
|
)
|
[virtual]
|
This is Symbian default constructor. The
ConstructL
function needs to be called in case resource data is not used. If a leave occurs the framework generates a Symbian Leave code.
Parameters
const
CCoeControl
* aParent
|
|
TInt
aFlags = 0
|
Parameter for CEikListBox constructor. If the parameter is missing default value is 0.
|
CountComponentControls()
IMPORT_C
TInt
|
CountComponentControls
|
(
|
)
|
const [protected, virtual]
|
Gets a count of the component controls of this grid.
CreateItemDrawerL()
IMPORT_C void
|
CreateItemDrawerL
|
(
|
)
|
[protected, virtual]
|
Creates a formatted list item drawer. If a leave occurs the framework generates a Symbian Leave code.
CurrentDataIndex()
IMPORT_C
TInt
|
CurrentDataIndex
|
(
|
)
|
const
|
CurrentDataIndex
retrieves the index of the selection. In grids, you should use this method instead of
CEikListBox::CurrentItemIndex()
, when you are manipulating data stored in the grid's
ItemTextArray
. While
CurrentItemIndex()
returns the same value as
CurrentItemIndex()
on most phones, there will be difference in some language variants where text reading/writing direction is different from left-to-right.
DoSetLayoutL(TInt, TInt, TInt, TInt, TInt, TSize, TInt, TInt)
void
|
DoSetLayoutL
|
(
|
TInt
|
aOrientation,
|
|
TInt
|
aHorizontal,
|
|
TInt
|
aVertical,
|
|
TInt
|
aNumOfItemsInPrimaryOrient,
|
|
TInt
|
aNumOfItemsInSecondaryOrient,
|
|
TSize
|
aSizeOfItems,
|
|
TInt
|
aWidthOfSpaceBetweenItems = 0,
|
|
TInt
|
aHeightOfSpaceBetweenItems = 0
|
|
)
|
[private]
|
This function sets the size and initial layout of items. If a leave occurs the framework generates a Symbian Leave code.
Parameters
TInt
aOrientation
|
|
TInt
aHorizontal
|
|
TInt
aVertical
|
|
TInt
aNumOfItemsInPrimaryOrient
|
|
TInt
aNumOfItemsInSecondaryOrient
|
|
TSize
aSizeOfItems
|
|
TInt
aWidthOfSpaceBetweenItems = 0
|
|
TInt
aHeightOfSpaceBetweenItems = 0
|
|
EmptyGridText()
const
TDesC
*
|
EmptyGridText
|
(
|
)
|
const [inline]
|
This function sets the empty grid text. Return text currently in the empty grid text
ExtensionInterface(TUid)
IMPORT_C void *
|
ExtensionInterface
|
(
|
TUid
|
aInterface
|
)
|
[private, virtual]
|
FocusChanged(TDrawNow)
IMPORT_C void
|
FocusChanged
|
(
|
TDrawNow
|
aDrawNow
|
)
|
[virtual]
|
Indicates whether the control should be redrawn now. If
ENoDrawNow
, the function has no immediately effect. EDrawNow redraw control immediately.
-
Since
-
Series S60 3.0.
GridModel()
CAknGridM
*
|
GridModel
|
(
|
)
|
const [private, inline]
|
HandleDragEventL(TPoint)
IMPORT_C void
|
HandleDragEventL
|
(
|
TPoint
|
aPointerPos
|
)
|
[protected, virtual]
|
This function handles drag events. If a leave occurs the framework generates a Symbian Leave code.
Parameters
TPoint
aPointerPos
|
The position of the TPointerEvent for which this handler is invoked.
|
HandleItemAdditionL()
IMPORT_C void
|
HandleItemAdditionL
|
(
|
)
|
|
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.
HandleItemRemovalL()
IMPORT_C void
|
HandleItemRemovalL
|
(
|
)
|
|
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.
HandlePointerEventL(const TPointerEvent &)
IMPORT_C void
|
HandlePointerEventL
|
(
|
const TPointerEvent &
|
aPointerEvent
|
)
|
[virtual]
|
Handling of pointer event within the
CEikListBox
. Used for e.g. selecting an item from the list box.
Parameters
const TPointerEvent & aPointerEvent
|
Details of the pointer event that is being handled.
|
HandleResourceChange(TInt)
IMPORT_C void
|
HandleResourceChange
|
(
|
TInt
|
aType
|
)
|
[virtual]
|
This function handles resource changes.
-
Since
-
Series S60 2.6.
HandleScrollEventL(CEikScrollBar *, TEikScrollEvent)
From
MEikScrollBarObserver
This function handles scroll events caused by scroll bar. It updates grid's view by event and new thumb position.
HandleViewRectSizeChangeL()
IMPORT_C void
|
HandleViewRectSizeChangeL
|
(
|
)
|
[virtual]
|
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.
HorizScrollGranularityInPixels()
IMPORT_C
TInt
|
HorizScrollGranularityInPixels
|
(
|
)
|
const [protected, virtual]
|
This function gets the granularity for horizontal scrolls. The granularity is the minimum size of a horizontal move of the client area.
HorizontalNudgeValue()
IMPORT_C
TInt
|
HorizontalNudgeValue
|
(
|
)
|
const [protected, virtual]
|
This function scroll horizontal by one column when the left/right scroll arrows (i.e. the nudge buttons) are tapped.
IndexOfPosition(TPoint)
IMPORT_C
TInt
|
IndexOfPosition
|
(
|
TPoint
|
aGridPosition
|
)
|
const
|
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.
Parameters
TPoint
aGridPosition
|
The data item's co-ordinate values.
|
ItemDrawer()
Item drawer. Gets the pointer to the grid class.
MListBoxModel_Reserved()
IMPORT_C
TAny
*
|
MListBoxModel_Reserved
|
(
|
)
|
[private, virtual]
|
MakeViewClassInstanceL()
IMPORT_C
CListBoxView
*
|
MakeViewClassInstanceL
|
(
|
)
|
[virtual]
|
This function creates a new object and returns pointer to it. If the leave occurs the framework generates a Symbian Leave code.
MopSupplyObject(TTypeUid)
From
MObjectProvider
.
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.
Parameters
TTypeUid
aId
|
An encapsulated object type ID.
|
MoveToNextOrPreviousItemL(TPoint)
IMPORT_C void
|
MoveToNextOrPreviousItemL
|
(
|
TPoint
|
aPoint
|
)
|
[protected]
|
Moves to the next or previous item on the grid. If a leave occurs the framework generates a Symbian Leave code.
Parameters
TPoint
aPoint
|
Co-ordinate object parameter.
|
OfferKeyEventL(const TKeyEvent &, TEventCode)
This function is from
CEikAppUi
, handles key events. If a leave occurs the framework generates a Symbian Leave code.
Parameters
const
TKeyEvent
& aKeyEvent
|
Event to handled.
|
TEventCode
aType
|
of the key event.
|
PositionAtIndex(TInt)
IMPORT_C
TPoint
|
PositionAtIndex
|
(
|
TInt
|
aItemIndex
|
)
|
const
|
The grid position function. Gives the data item's co-ordinate values by using item's index value.
Parameters
TInt
aItemIndex
|
The data item's index value.
|
RestoreClientRectFromViewRect(TRect &)
IMPORT_C void
|
RestoreClientRectFromViewRect
|
(
|
TRect
&
|
aClientRect
|
)
|
const [protected, virtual]
|
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
iViewRect
. This implementation takes into account any rounding of the viewing rectangle made to fit a whole number of items.
Parameters
TRect
& aClientRect
|
On return contains a size for the client area in pixels.
|
SetColumnWidth(TInt)
IMPORT_C void
|
SetColumnWidth
|
(
|
TInt
|
aColumnWidth
|
)
|
|
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
SetLayoutL
. The column width cannot be larger than the width of the viewing rectangle.
Parameters
TInt
aColumnWidth
|
A parameter defines a width of the column.
|
SetCurrentDataIndex(TInt)
IMPORT_C void
|
SetCurrentDataIndex
|
(
|
TInt
|
aDataIndex
|
)
|
|
Moves the cursor to the required grid data index.
Parameters
TInt
aDataIndex
|
Data index value.
|
SetEmptyGridTextL(const TDesC &)
IMPORT_C void
|
SetEmptyGridTextL
|
(
|
const
TDesC
&
|
aText
|
)
|
|
Function sets a grid text to the data item. If a leave occurs the framework generates a Symbian Leave code.
-
Since
-
Series S60 3.0
Parameters
const
TDesC
& aText
|
Descriptor parameter.
|
SetItemHeightL(TInt)
IMPORT_C void
|
SetItemHeightL
|
(
|
TInt
|
aHeight
|
)
|
[virtual]
|
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
SetLayoutL
. The row height cannot be larger than the height of the viewing rectangle. If a leave occurs the framework generates a Symbian Leave code.
Parameters
TInt
aHeight
|
The height of the item's rows.
|
SetLayoutFromResourceL(TResourceReader &)
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.
SetLayoutL(TBool, TBool, TBool, TInt, TInt, TSize, TInt, TInt)
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. The value for the parameter
aNumOfItemsInPrimaryOrient
must be greater than zero since this determines the number of items (be it rows or columns) in the primary orientation of the grid. If a leave occurs the framework generates a Symbian Leave code.
Parameters
TBool
aVerticalOrientation
|
Items vertical orientation.
|
TBool
aLeftToRight
|
ETrue left to right.
|
TBool
aTopToBottom
|
ETrue top to bottom.
|
TInt
aNumOfItemsInPrimaryOrient
|
Number of items in primary orient.
|
TInt
aNumOfItemsInSecondaryOrient
|
Number of items in Secondary orient.
|
TSize
aSizeOfItems
|
Item size.
|
TInt
aWidthOfSpaceBetweenItems = 0
|
=0 Width of space between items.
|
TInt
aHeightOfSpaceBetweenItems = 0
|
=0 Height of space between items.
|
SetModel(CAknGridM *)
IMPORT_C void
|
SetModel
|
(
|
CAknGridM
*
|
aModel
|
)
|
|
This function gives
CAknGridM
class pointer to
CAknGrid
class. Usually, the
CAknGridM
class object is instantiated automatically during the construction phase of the
CAknGrid
object. If an application programmer provides their own grid model class, the application programmer must instantiate their own grid model class object and give it to the
CAknGrid
object using the
SetModel
function before calling the
ConstructL/ConstructFromResourceL
function.
Parameters
CAknGridM
* aModel
|
Pointer to CAknGridM class.
|
SetPrimaryScrollingType(CAknGridView::TScrollingType)
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.
SetRect(const TRect &)
IMPORT_C void
|
SetRect
|
(
|
const
TRect
&
|
aRect
|
)
|
|
This function handles viewable rectangle.
Parameters
const
TRect
& aRect
|
Rectangle parameter.
|
SetSecondaryScrollingType(CAknGridView::TScrollingType)
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.
SetStartPositionL(TPoint)
IMPORT_C void
|
SetStartPositionL
|
(
|
TPoint
|
aGridStartPosition
|
)
|
|
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.
Parameters
TPoint
aGridStartPosition
|
Parameter manipulate the grid's starting position.
|
SetTopItemIndex(TInt)
IMPORT_C void
|
SetTopItemIndex
|
(
|
TInt
|
aItemIndex
|
)
|
const [virtual]
|
This function sets top item index.
Parameters
TInt
aItemIndex
|
Item index value.
|
SizeChanged()
IMPORT_C void
|
SizeChanged
|
(
|
)
|
[virtual]
|
This function handles size changes. This routine assumes that
SetLayoutL
has been called to set up the grid.
UpdateScrollBarThumbs()
IMPORT_C void
|
UpdateScrollBarThumbs
|
(
|
)
|
const [protected, virtual]
|
Updates the position of grids scroll bars thumbs to reflect the vertical position of selector.
UpdateScrollBarsL()
IMPORT_C void
|
UpdateScrollBarsL
|
(
|
)
|
[virtual]
|
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.
Member Enumerations Documentation
Enum TIndicatorEvent
Enumerators
EMove
|
|
EChangeNumOfItems
|
|
EResize
|
|
Member Data Documentation
TBool
iCurrentIsValid
TBool
|
iCurrentIsValid
|
[private]
|
CAknGridExtension * iExtension
CAknGridExtension *
|
iExtension
|
[private]
|
TBitFlags
iHorizontalFlags
TInt
iMinColWidth
TInt
|
iMinColWidth
|
[private]
|
TInt
iNumOfColsInView
TInt
|
iNumOfColsInView
|
[private]
|
TInt
iNumOfRowsInView
TInt
|
iNumOfRowsInView
|
[private]
|
TBitFlags
iOrientationFlags
TSize
iSpaceBetweenItems
TSize
|
iSpaceBetweenItems
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.