CHgGrid Class Reference

class CHgGrid : public CHgScroller

Inherits from

Public Member Functions
~CHgGrid()
IMPORT_C CHgGrid *NewL(const TRect &, TInt, CGulIcon *, RWsSession *)
IMPORT_C TSizePreferredImageSize()
IMPORT_C voidSetLandscapeScrollingSupport(TBool)
IMPORT_C voidSetToolbarVisibility(TBool)
Protected Member Functions
TInt CurrentIndex()
voidDoDraw(const TRect &)
TBool DoHandleKeyEvent(const TKeyEvent &)
voidFitSelectionToView()
voidFitTopItemToView(TInt)
TInt GetSelected(TPoint)
voidHandleScrollbarVisibilityChange(TBool)
voidHandleSizeChanged()
voidInitItemsL()
TBool IsDisplayed(TInt)
TSize TotalSize()
Private Member Functions
CHgGrid(TInt, CGulIcon *)
voidCalculateSizes()
voidChangeSelectedIndex(TInt)
voidConstructL(const TRect &, RWsSession *)
voidDrawCols(TInt, const TRect &, TInt)
voidDrawHighlight(const TRect &)
voidDrawItem(TInt, const TRect &)
voidDrawRows(TInt, const TRect &, TInt)
TRect GridRect()
voidHandleDownArrow()
voidHandleLeftArrow()
voidHandleRightArrow()
voidHandleUpArrow()
voidSelectDefaultItem()
Inherited Functions
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::ActivateL()
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::ComponentControl(TInt)const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ConstructFromResourceL(TResourceReader &)
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
CCoeControl::CountComponentControls()const
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::GetColorUseListL(CArrayFix< TCoeColorUse > &)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::HasBorder()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::MakeVisible(TBool)
CCoeControl::MaximumWidth()const
CCoeControl::MinimumSize()
CCoeControl::MopSupplyObject(TTypeUid)
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::SetAdjacent(TInt)
CCoeControl::SetAllowStrayPointers()
CCoeControl::SetBackground(const MCoeControlBackground *)
CCoeControl::SetBlank()
CCoeControl::SetCanDrawOutsideRect()
CCoeControl::SetComponentsToInheritVisibility(TBool)
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
CCoeControl::SetContainerWindowL(RWindow &)
CCoeControl::SetContainerWindowL(const CCoeControl &)
CCoeControl::SetControlContext(MCoeControlContext *)
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
CCoeControl::SetCustomGc(CWindowGc *)
CCoeControl::SetDimmed(TBool)
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::SetRect(const TRect &)
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::WriteInternalStateL(RWriteStream &)const
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
CCoeControl::ZoomWithType()const
CCoeControl::operator=(const CCoeControl &)
CCoeControl::~CCoeControl()
CHgScroller::AddItem(CHgItem *)
CHgScroller::CHgScroller(TInt,CGulIcon *)
CHgScroller::ClearFlags(TInt)
CHgScroller::CollectionExtension(TUint,TAny *&,TAny *)
CHgScroller::CollectionState()const
CHgScroller::DisableScrollBuffer()
CHgScroller::Draw(const TRect &)const
CHgScroller::EnableScrollBufferL(MHgScrollBufferObserver &,TInt,TInt)
CHgScroller::FirstIndexOnScreen()
CHgScroller::FitRowToView(TInt)
CHgScroller::Flags()
CHgScroller::FocusChanged(TDrawNow)
CHgScroller::GetMarkedItemsL(RArray< TInt > &)
CHgScroller::HandleLongTapEventL(const TPoint &,const TPoint &)
CHgScroller::HandlePointerEventL(const TPointerEvent &)
CHgScroller::HandleResourceChange(TInt)
CHgScroller::HandleViewPositionChanged(TBool)
CHgScroller::HasHighlight()const
CHgScroller::HightlightItem(const TDesC &)
CHgScroller::InitDrawBuffer()const
CHgScroller::InitPhysicsL()
CHgScroller::InitScreenL(const TRect &)
CHgScroller::InitScreenL(const TRect &,RWsSession &)
CHgScroller::InputCapabilities()const
CHgScroller::InsertItem(CHgItem *,TInt)
CHgScroller::ItemActionMenuClosed()
CHgScroller::ItemCount()const
CHgScroller::ItemL(TInt)
CHgScroller::ItemsOnScreen()
CHgScroller::Mark(TInt)
CHgScroller::MarkAll()
CHgScroller::MarqueeCallback(TAny *)
CHgScroller::OfferKeyEventL(const TKeyEvent &,TEventCode)
CHgScroller::PhysicEmulationEnded()
CHgScroller::RefreshScreen(TInt)
CHgScroller::RemoveItem(TInt)
CHgScroller::Reset()
CHgScroller::ResizeL(TInt)
CHgScroller::SelectedIndex()
CHgScroller::SelectionChanged()
CHgScroller::SelectionMode()const
CHgScroller::SetDefaultIconL(CGulIcon *)
CHgScroller::SetEmptyTextL(const TDesC &)
CHgScroller::SetFirstIndexOnScreen(TInt)
CHgScroller::SetFlags(TInt)
CHgScroller::SetItem(CHgItem *,TInt)
CHgScroller::SetMarkingObserver(MHgMarkingObserver &)
CHgScroller::SetMenuProviderL(MObjectProvider *)
CHgScroller::SetScrollBarTypeL(THgScrollBarType)
CHgScroller::SetSelectedIndex(TInt)
CHgScroller::SetSelectionMode(TSelectionMode)
CHgScroller::SetSelectionObserver(MHgSelectionObserver &)
CHgScroller::SizeChanged()
CHgScroller::UnMark(TInt)
CHgScroller::UnMarkAll()
CHgScroller::ViewPosition()const
CHgScroller::ViewPositionChanged(const TPoint &,TBool,TUint)
CHgScroller::~CHgScroller()
Inherited Enumerations
CCoeControl:TZoomType
CHgScroller:THgScrollBarType
CHgScroller:THgScrollerMode
CHgScroller:TKeyScrollingState
CHgScroller:TSelectionMode
Private Attributes
TInt iCols
TBool iLandScapeScrollingSupported
CHgGridLayoutData *iLayoutData
TInt iRowWidth
TInt iRows
TBool iToolbarVisible
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CHgScroller::iActionMenu
CHgScroller::iCurrentRow
CHgScroller::iDefaultIcon
CHgScroller::iDetector
CHgScroller::iDrawUtils
CHgScroller::iEmptyText
CHgScroller::iFlags
CHgScroller::iFocusedIndex
CHgScroller::iHeight
CHgScroller::iHighlightTimer
CHgScroller::iImageSize
CHgScroller::iIndicatorManager
CHgScroller::iIndicatorSize
CHgScroller::iItemCount
CHgScroller::iItems
CHgScroller::iItemsOnScreen
CHgScroller::iKeyRepeats
CHgScroller::iKeyScrollingState
CHgScroller::iKeyScrollingTimer
CHgScroller::iKeyUtils
CHgScroller::iLandscapeScrolling
CHgScroller::iManager
CHgScroller::iMarkingObserver
CHgScroller::iOldWinPos
CHgScroller::iPanning
CHgScroller::iPhysics
CHgScroller::iPointerDown
CHgScroller::iPopupDrawer
CHgScroller::iPopupFont
CHgScroller::iPopupText1
CHgScroller::iPopupText2
CHgScroller::iPrev
CHgScroller::iResetViewPosition
CHgScroller::iRowHeight
CHgScroller::iScrollBarType
CHgScroller::iScrollbar
CHgScroller::iSelectedIndex
CHgScroller::iSelectionMode
CHgScroller::iSelectionObserver
CHgScroller::iSelectionToFocusedItem
CHgScroller::iShowHighlight
CHgScroller::iStart
CHgScroller::iStartTime
CHgScroller::iTextFind
CHgScroller::iUpperCaseTitle
CHgScroller::iViewPosition
CHgScroller::iWidth

Constructor & Destructor Documentation

CHgGrid(TInt, CGulIcon *)

CHgGrid(TIntaItemCount,
CGulIcon *aDefaultIcon
)[private]

Parameters

TInt aItemCount
CGulIcon * aDefaultIcon

~CHgGrid()

IMPORT_C~CHgGrid()[virtual]

Destructor.

Member Functions Documentation

CalculateSizes()

voidCalculateSizes()[private]

ChangeSelectedIndex(TInt)

voidChangeSelectedIndex(TIntaMove)[private]

Parameters

TInt aMove

ConstructL(const TRect &, RWsSession *)

voidConstructL(const TRect &aRect,
RWsSession *aSession
)[private]

Usage:

  #include <featdiscovery.h>
  #include <featureinfo.h> // for feature definitions

  // replace <featureUIDx> with a real UID )

  // If querying only one feature, it is more efficient to use the class
  // via the static method, IsFeatureSupportedL().
  // When querying more than one feature, it is more efficient to use the
  // class by creating an instance and calling the IsSupported() method.

  // Static way of using the class:
  TBool isSupported = CFeatureDiscovery::IsFeatureSupportedL(<featureUIDx>);

  // Dynamic way of using the class using NewL():

  // Call NewL() to create an instance of CFeatureDiscovery.
  CFeatureDiscovery* testA = CFeatureDiscovery::NewL();

  // Call the exported IsSupported() method to query whether features
  // are supported in the current environment or not.
  TBool usbSupported = testA->IsSupported(<featureUIDx>);
  TBool mmcSupported = testA->IsSupported(<featureUIDx>);

  // Delete the created instance of CFeatureDiscovery.
  delete testA;

  // Dynamic way of using the class using NewLC():

  // Call NewLC() to create an instance of CFeatureDiscovery.
  // The method leaves the instance of the object on the cleanup stack.
  CFeatureDiscovery* testB = CFeatureDiscovery::NewLC();

  // Call the exported IsSupported() method to query whether features
  // are supported in the current environment or not.
  TBool wcdmaSupported = testB->IsSupported(<featureUIDx>);
  TBool gsmSupported = testB->IsSupported(<featureUIDx>);

  // Dynamic way of using multiple feature query. This is preferred
  // way to fetch support statuses if there are several features to be
  // queried, because it involves less inter-process communication.

  TFeatureSet featset;
  User::LeaveIfError( featset.Append( <featureUIDx> ) );
  User::LeaveIfError( featset.Append( <featureUIDx> ) );
  TInt err = testB->FeaturesSupported( featset );
	if(!err)
		{
			TBool uid1Supported = featset.IsFeatureSupported(<featureUIDx>);
			TBool uid2Supported = featset.IsFeatureSupported(<featureUIDx>);
			// ... or whether all QUERIED features are supported
			TBool allSupported = featset.AreAllFeaturesSupported();
		}
  // featset cleans array up in destructor on scope exit

  // Pop and delete the created instance of CFeatureDiscovery.
  CleanupStack::PopAndDestroy();

Parameters

const TRect & aRect
RWsSession * aSession

CurrentIndex()

TInt CurrentIndex()[protected, virtual]

DoDraw(const TRect &)

voidDoDraw(const TRect &aRect)const [protected, virtual]

Parameters

const TRect & aRect

DoHandleKeyEvent(const TKeyEvent &)

TBool DoHandleKeyEvent(const TKeyEvent &aEvent)[protected, virtual]

Parameters

const TKeyEvent & aEvent

DrawCols(TInt, const TRect &, TInt)

voidDrawCols(TIntaRow,
const TRect &aRect,
TIntaYPos
)const [private]

Parameters

TInt aRow
const TRect & aRect
TInt aYPos

DrawHighlight(const TRect &)

voidDrawHighlight(const TRect &aOuterRect)const [private]

Parameters

const TRect & aOuterRect

DrawItem(TInt, const TRect &)

voidDrawItem(TIntaIndex,
const TRect &aRect
)const [private]

Parameters

TInt aIndex
const TRect & aRect

DrawRows(TInt, const TRect &, TInt)

voidDrawRows(TIntaCol,
const TRect &aRect,
TIntaXPos
)const [private]

Parameters

TInt aCol
const TRect & aRect
TInt aXPos

FitSelectionToView()

voidFitSelectionToView()[protected, virtual]

FitTopItemToView(TInt)

voidFitTopItemToView(TIntaIndex)[protected, virtual]

Parameters

TInt aIndex

GetSelected(TPoint)

TInt GetSelected(TPointaPosition)const [protected, virtual]

Parameters

TPoint aPosition

GridRect()

TRect GridRect()const [private]

HandleDownArrow()

voidHandleDownArrow()[private]

HandleLeftArrow()

voidHandleLeftArrow()[private]

HandleRightArrow()

voidHandleRightArrow()[private]

HandleScrollbarVisibilityChange(TBool)

voidHandleScrollbarVisibilityChange(TBoolaVisible)[protected, virtual]

Parameters

TBool aVisible

HandleSizeChanged()

voidHandleSizeChanged()[protected, virtual]

HandleUpArrow()

voidHandleUpArrow()[private]

InitItemsL()

voidInitItemsL()[protected, virtual]

IsDisplayed(TInt)

TBool IsDisplayed(TIntaIndex)[protected, virtual]

Parameters

TInt aIndex

NewL(const TRect &, TInt, CGulIcon *, RWsSession *)

IMPORT_C CHgGrid *NewL(const TRect &aRect,
TIntaItemCount,
CGulIcon *aDefaultIcon = NULL,
RWsSession *aSession = NULL
)[static]

Creates new HgGrid.

Parameters

const TRect & aRectRect that the control draws onto.
TInt aItemCountTotal count of items in the grid
CGulIcon * aDefaultIcon = NULLDefault icon to be used.
RWsSession * aSession = NULLWindow server session for DSA. Default is NULL and DSA is disabled.

PreferredImageSize()

IMPORT_C TSizePreferredImageSize()[static]

Returns preferred image size that should be used when passing images.

SelectDefaultItem()

voidSelectDefaultItem()[private]

SetLandscapeScrollingSupport(TBool)

IMPORT_C voidSetLandscapeScrollingSupport(TBoolaSupportLandscapeScrolling)

Set landscape scrolling support. If enabled lanscape scrolling is on only in landscape orientation. InitScreenL must be called after this to relayout the grid.

Parameters

TBool aSupportLandscapeScrollingLandscape scrolling supported or not.

SetToolbarVisibility(TBool)

IMPORT_C voidSetToolbarVisibility(TBoolaToolbarVisible)

Set toolbar visibilty. The toolbar visibility ETrue changes the lanscape layout to fill the toolbar space with grid content.

Parameters

TBool aToolbarVisibleIs toolbar visible or not.

TotalSize()

TSize TotalSize()const [protected, virtual]

Member Data Documentation

TInt iCols

TInt iCols[private]

TBool iLandScapeScrollingSupported

TBool iLandScapeScrollingSupported[private]

CHgGridLayoutData * iLayoutData

CHgGridLayoutData *iLayoutData[private]

TInt iRowWidth

TInt iRowWidth[private]

TInt iRows

TInt iRows[private]

TBool iToolbarVisible

TBool iToolbarVisible[private]