CAknTabGroup Class Reference

#include <mw/akntabgrp.h>

Link against: avkon.lib

class CAknTabGroup : public CAknControl

Inherits from

Public Member Enumerations
enumTDirection { ELeft, ERight }
Public Member Functions
~CAknTabGroup()
IMPORT_C TIntActiveTabId()
IMPORT_C TIntActiveTabIndex()
IMPORT_C TIntAddTabL(TResourceReader &)
IMPORT_C voidAddTabL(TInt, const TDesC &)
IMPORT_C voidAddTabL(TInt, const TDesC &, const CFbsBitmap *, const CFbsBitmap *)
IMPORT_C voidAddTabL(TInt, const CFbsBitmap *, const CFbsBitmap *)
IMPORT_C voidDeleteTabL(TInt)
IMPORT_C voidDimTab(TInt, TBool)
virtual IMPORT_C voidGetColorUseListL(CArrayFix< TCoeColorUse > &)
virtual IMPORT_C voidHandleControlEventL(CCoeControl *, TCoeEvent)
virtual IMPORT_C voidHandleNaviDecoratorEventL(TInt)
virtual IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
virtual voidHandleResourceChange(TInt)
virtual IMPORT_C TBoolIsTabDimmed(TInt)
virtual IMPORT_C TSizeMinimumSize()
IMPORT_C CAknTabGroup *NewL(const CCoeControl &)
IMPORT_C CAknTabGroup *NewLC(const CCoeControl &)
virtual IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &, TEventCode)
virtual IMPORT_C voidPrepareContext(CWindowGc &)
IMPORT_C voidReplaceTabL(TResourceReader &)
IMPORT_C voidReplaceTabL(TInt, const TDesC &)
IMPORT_C voidReplaceTabL(TInt, const TDesC &, const CFbsBitmap *, const CFbsBitmap *)
IMPORT_C voidReplaceTabL(TInt, const CFbsBitmap *, const CFbsBitmap *)
IMPORT_C voidReplaceTabTextL(TInt, const TDesC &)
IMPORT_C voidSetActiveTabById(TInt)
IMPORT_C voidSetActiveTabByIndex(TInt)
voidSetDecoratorLayout(TBool)
voidSetNarrowTabLayoutL(TBool, TBool)
voidSetNaviArrowsVisible(TBool)
IMPORT_C voidSetObserver(MAknTabObserver *)
IMPORT_C voidSetTabFixedWidthL(TInt)
IMPORT_C voidSetTabMultiColorMode(TInt, TBool)
virtual IMPORT_C TIntTabCount()
virtual IMPORT_C TIntTabIdFromIndex(TInt)
virtual IMPORT_C TIntTabIndexFromId(TInt)
Protected Member Functions
virtual IMPORT_C CCoeControl *ComponentControl(TInt)
virtual IMPORT_C TIntCountComponentControls()
virtual IMPORT_C voidFocusChanged(TDrawNow)
voidReverseTabOrderL()
virtual IMPORT_C voidSizeChanged()
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
Inherited Enumerations
CCoeControl:TZoomType
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::ActivateL()
CCoeControl::BackedUpWindow()const
CCoeControl::Background()const
CCoeControl::CCoeControl()
CCoeControl::CCoeControl(CCoeEnv *)
CCoeControl::CCoeControl(const CCoeControl &)
CCoeControl::CCoeControlArray
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ConstructFromResourceL(TResourceReader &)
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::HasBorder()const
CCoeControl::HitTest()const
CCoeControl::IgnoreEventsUntilNextPointerUp()
CCoeControl::Index(const CCoeControl *)const
CCoeControl::InitComponentArrayL()
CCoeControl::InputCapabilities()const
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::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()

Detailed Description

Tab group functionality for navigation pane.

Since
0.9

Member Enumeration Documentation

Enum TDirection

Directions in which the tab group focus can be moved.

EnumeratorValueDescription
ELeft
ERight

Constructor & Destructor Documentation

~CAknTabGroup ( )

IMPORT_C~CAknTabGroup()

Destructor.

Member Function Documentation

ActiveTabId ( )

IMPORT_C TIntActiveTabId()const

Returns the ID of the currently active (highlighted) tab.

Returns: ID of the highlighted tab.

ActiveTabIndex ( )

IMPORT_C TIntActiveTabIndex()const

Returns the index of the currently active (highlighted) tab.

Returns: Index of the highlighted tab.

AddTabL ( TResourceReader & )

IMPORT_C TIntAddTabL(TResourceReader &aReader)

Add a tab to the tab group from resources.

ParameterDescription
aReaderResource reader.

Returns: ID of the added tab.

AddTabL ( TInt, const TDesC & )

IMPORT_C voidAddTabL(TIntaTabId,
const TDesC &aText
)

Add a tab to the tab group.

ParameterDescription
aTabIdID of the tab to be added.

AddTabL ( TInt, const TDesC &, const CFbsBitmap *, const CFbsBitmap * )

IMPORT_C voidAddTabL(TIntaTabId,
const TDesC &aText,
const CFbsBitmap *aTabBitmap,
const CFbsBitmap *aMask = NULL
)

Add a tab to the tab group.

ParameterDescription
aTabIdID of the tab.
aTabBitmapBitmap for the tab. Ownership of the bitmap is taken.
aMaskBitmap's mask. Ownership of the mask is taken.

AddTabL ( TInt, const CFbsBitmap *, const CFbsBitmap * )

IMPORT_C voidAddTabL(TIntaTabId,
const CFbsBitmap *aTabBitmap,
const CFbsBitmap *aMask = NULL
)

Add a tab to the tab group.

ParameterDescription
aTabIdID of the tab.
aTabBitmapBitmap for the tab. Ownership of the bitmap is taken.
aMaskBitmap's mask. Ownership of the mask is taken.

ComponentControl ( TInt )

IMPORT_C CCoeControl *ComponentControl(TIntaIndex)const [protected, virtual]

Reimplemented from CCoeControl::ComponentControl(TInt)const

Returns a component control determined by control index.

ParameterDescription
aIndexIndex of a control to be returned.

Returns: Pointer to the control.

CountComponentControls ( )

IMPORT_C TIntCountComponentControls()const [protected, virtual]

Reimplemented from CCoeControl::CountComponentControls()const

Returns number of controls inside this control.

Returns: Number of component controls.

DeleteTabL ( TInt )

IMPORT_C voidDeleteTabL(TIntaTabId)

Delete a tab from the tab group.

ParameterDescription
aTabIdID of the tab to be deleted.

DimTab ( TInt, TBool )

IMPORT_C voidDimTab(TIntaTabId,
TBoolaDimmed
)

Sets a tab dimmed/not dimmed.

ParameterDescription
aTabIdID of the tab.
aDimmedETrue to set the tab dimmed, EFalse otherwise.

FocusChanged ( TDrawNow )

IMPORT_C voidFocusChanged(TDrawNowaDrawNow)[protected, virtual]

Reimplemented from CCoeControl::FocusChanged(TDrawNow)

This is called when the focus is changed.

ParameterDescription
aDrawNowWhether or not to draw the control.

GetColorUseListL ( CArrayFix< TCoeColorUse > & )

IMPORT_C voidGetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList)const [virtual]

Reimplemented from CCoeControl::GetColorUseListL(CArrayFix< TCoeColorUse > &)const

Gets the list of logical colors employed in the drawing of the control, paired with an explanation of how they are used. Appends the list into aColorUseList.

ParameterDescription
aColorUseListThe color list.

HandleControlEventL ( CCoeControl *, TCoeEvent )

IMPORT_C voidHandleControlEventL(CCoeControl *aControl,
TCoeEventaEventType
)[virtual]

Handles an event from an observed control.

ParameterDescription
aControlControl that caused the event.
aEventTypeType of the event.

HandleNaviDecoratorEventL ( TInt )

IMPORT_C voidHandleNaviDecoratorEventL(TIntaEventID)[virtual]

HandlePointerEventL ( const TPointerEvent & )

IMPORT_C voidHandlePointerEventL(const TPointerEvent &aPointerEvent)[virtual]

Handles pointer events in tabs.

ParameterDescription
aPointerEventPointer event to be handled.

HandleResourceChange ( TInt )

voidHandleResourceChange(TIntaType)[virtual]

Handles a change to the control's resources.

ParameterDescription
aTypeThe type of resource change.

IsTabDimmed ( TInt )

IMPORT_C TBoolIsTabDimmed(TIntaTabId)const [virtual]

Used to check whether or not a tab is dimmed.

ParameterDescription
aTabIdID of the tab.

Returns: ETrue if the tab is dimmed, EFalse otherwise.

MinimumSize ( )

IMPORT_C TSizeMinimumSize()[virtual]

Reimplemented from CCoeControl::MinimumSize()

Return minimum size of the control.

Returns: Minimum size of the control.

NewL ( const CCoeControl & )

IMPORT_C CAknTabGroup *NewL(const CCoeControl &aParent)[static]

Creates new tab group.

ParameterDescription
aParentParent control.

NewLC ( const CCoeControl & )

IMPORT_C CAknTabGroup *NewLC(const CCoeControl &aParent)[static]

Creates new tab group and pushes it to the clean up stack.

ParameterDescription
aParentParent control.

OfferKeyEventL ( const TKeyEvent &, TEventCode )

IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[virtual]

Handles key events.

ParameterDescription
aKeyEventThe key event.
aTypeThe type of the event.

Returns: Indicates whether or not the key event was used by this control.

PrepareContext ( CWindowGc & )

IMPORT_C voidPrepareContext(CWindowGc &aGc)const [virtual]

Allows to modify graphics context before Draw.

ParameterDescription
aGcGraphics context to be modified.

ReplaceTabL ( TResourceReader & )

IMPORT_C voidReplaceTabL(TResourceReader &aReader)

Replaces a tab with a new one from resources. Tab with same ID is replaced.

ParameterDescription
aReaderResource reader.

ReplaceTabL ( TInt, const TDesC & )

IMPORT_C voidReplaceTabL(TIntaTabId,
const TDesC &aText
)

Replaces a tab with a new one.

ParameterDescription
aTabIdID of the tab to be replaced.

ReplaceTabL ( TInt, const TDesC &, const CFbsBitmap *, const CFbsBitmap * )

IMPORT_C voidReplaceTabL(TIntaTabId,
const TDesC &aText,
const CFbsBitmap *aTabBitmap,
const CFbsBitmap *aMask = NULL
)

Replaces a tab with a new one.

ParameterDescription
aTabIdID of the tab to be replaced.
aTabBitmapBitmap for the tab. Ownership of the bitmap is taken.
aMaskBitmap's mask. Ownership of the mask is taken.

ReplaceTabL ( TInt, const CFbsBitmap *, const CFbsBitmap * )

IMPORT_C voidReplaceTabL(TIntaTabId,
const CFbsBitmap *aTabBitmap,
const CFbsBitmap *aMask = NULL
)

Replaces a tab with a new one.

ParameterDescription
aTabIdID of the tab to be replaced.
aTabBitmapBitmap for the tab. Ownership of the bitmap is taken.
aMaskBitmap's mask. Ownership of the mask is taken.

ReplaceTabTextL ( TInt, const TDesC & )

IMPORT_C voidReplaceTabTextL(TIntaTabId,
const TDesC &aTabText
)

Replaces a tab text with a new one.

ParameterDescription
aTabIdID of the tab containing the text to be replaced.
aTabTextNew tab text.

ReverseTabOrderL ( )

voidReverseTabOrderL()[protected]

Reverse the order of tabs in tab array.

SetActiveTabById ( TInt )

IMPORT_C voidSetActiveTabById(TIntaTabId)

Activate (highlight) a tab.

ParameterDescription
aTabIdID of the tab to be highlighted.

SetActiveTabByIndex ( TInt )

IMPORT_C voidSetActiveTabByIndex(TIntaTabIndex)

Activate (highlight) a tab.

ParameterDescription
aTabIndexIndex of the tab to be highlighted.

SetDecoratorLayout ( TBool )

voidSetDecoratorLayout(TBoolaNarrow)

Sets the navigation decorator layout so that it corresponds the current tab group layout.

ParameterDescription
aNarrowETrue if narrow tab group layout is used, EFalse if normal layout is used.

SetNarrowTabLayoutL ( TBool, TBool )

voidSetNarrowTabLayoutL(TBoolaNarrow,
TBoolaUseAnimation = EFalse
)

SetNaviArrowsVisible ( TBool )

voidSetNaviArrowsVisible(TBoolaVisible)

SetObserver ( MAknTabObserver * )

IMPORT_C voidSetObserver(MAknTabObserver *aObserver)

Sets the tab observer for this tab group.

ParameterDescription
aObserverTab observer to set.

SetTabFixedWidthL ( TInt )

IMPORT_C voidSetTabFixedWidthL(TIntaWidth)
Set width of each tab. This width determines what tab layout is used. To get a specific tab layout, use the following constants:
  • KTabWidthWithOneTab One tab layout

  • KTabWidthWithTwoTabs Two tabs layout

  • KTabWidthWithThreeTabs Three tabs layout

  • KTabWidthWithFourTabs Four tabs layout

  • KTabWidthWithTwoLongTabs Two long tabs layout

  • KTabWidthWithThreeLongTabs Three long tabs layout

See also: aknconsts.h.

ParameterDescription
aWidthWidth of each tab,

SetTabMultiColorMode ( TInt, TBool )

IMPORT_C voidSetTabMultiColorMode(TIntaTabId,
TBoolaMultiColor
)

Sets the multi-color drawing mode of a tab. This should be called after adding a tab to the tab group if the icon in the tab should be drawn as multi-colored. The tab icon will be drawn using a color specified in the active skin if multi-color mode is not defined.

This function should be called right after a tab containing a multi-color icon is added to the tab group.

ParameterDescription
aTabIdID of the tab.
aMultiColorETrue to set the multi-color mode on, EFalse to turn it off.

SizeChanged ( )

IMPORT_C voidSizeChanged()[protected, virtual]

Reimplemented from CCoeControl::SizeChanged()

Handles the size change events.

TabCount ( )

IMPORT_C TIntTabCount()const [virtual]

Number of tabs in the tab group.

Returns: Number of tabs in the tab group.

TabIdFromIndex ( TInt )

IMPORT_C TIntTabIdFromIndex(TIntaTabIndex)const [virtual]

Returns the ID of a tab.

ParameterDescription
aTabIndexIndex of a tab.

Returns: ID of the tab.

TabIndexFromId ( TInt )

IMPORT_C TIntTabIndexFromId(TIntaTabId)const [virtual]

Returns the index of a tab.

ParameterDescription
aTabIdID of a tab.

Returns: Index of the tab.