CEikCba Class Reference

class CEikCba : public CEikControlGroup

Defines a Control Button Array control, used in Avkon to define the softkeys in the control pane.

eikcoctl.lib S60 0.9

Public Member Functions
~CEikCba()
voidActivateL()
voidAddCommandL(TInt, TInt, const TDesC *, const CFbsBitmap *, const CFbsBitmap *)
voidAddCommandSetToStackL(TInt)
voidAddCommandToStackL(TInt, TInt, const TDesC *, const CFbsBitmap *, const CFbsBitmap *)
voidAddCommandToStackL(TInt, TInt)
voidAnimateCommand(TInt)
voidAnimateCommandByPosition(TInt)
CCoeControl *AsControl()
const CCoeControl *AsControl()
TInt ButtonCount()
TUint ButtonGroupFlags()
TRect ButtonRectByPosition(TInt, TBool)
TSize CalcMinimumSizeL(TInt)
TInt CommandId(TInt)
TInt CommandPos(TInt)
voidCreateArrowHeadScrollBarL()
voidDimCommand(TInt, TBool)
voidDimCommandByPosition(TInt, TBool)
IMPORT_C voidEnableItemSpecificSoftkey(TBool)
voidEnablePostingTransparency(TBool)
TBitFlags Flags()
voidGetColorUseListL(CArrayFix< TCoeColorUse > &)
CEikCommandButton *GroupControlAsButton(TInt)
CCoeControl *GroupControlById(TInt)
CCoeControl *GroupControlById(TInt)
voidHandleControlEventL(CCoeControl *, TCoeEvent)
voidHandlePointerEventL(const TPointerEvent &)
voidHandleResourceChange(TInt)
voidInsertControlL(TEikGroupControl &, TInt)
TBool IsCommandDimmed(TInt)
TBool IsCommandDimmedByPosition(TInt)
IMPORT_C TBoolIsCommandInGroup(const TInt)
TBool IsCommandVisible(TInt)
TBool IsCommandVisibleByPosition(TInt)
IMPORT_C TBoolIsEmpty()
TEikGroupControl *ItemSpecificSoftkey()
TInt MSKEnabledInPlatform()
voidMakeCommandVisible(TInt, TBool)
voidMakeCommandVisibleByPosition(TInt, TBool)
voidMakeVisible(TBool)
TInt MaxCommands()
TSize MinimumSize()
CEikCba *NewL(const CEikCba *, MEikCommandObserver *, RWindowGroup *)
CEikCba *NewL(TInt, const CEikCba *, MEikCommandObserver *, RWindowGroup *)
CEikCba *NewLC(const CEikCba *, MEikCommandObserver *, RWindowGroup *)
CEikCba *NewLC(const CEikCba *, MEikCommandObserver *, RWindowGroup *, TUint)
CEikCba *NewLC(TInt, const CEikCba *, MEikCommandObserver *, RWindowGroup *)
CEikCba *NewLC(TInt, const CEikCba *, MEikCommandObserver *, RWindowGroup *, TUint)
IMPORT_C voidOfferCommandListL(const RArray< TInt > &)
IMPORT_C voidOfferCommandListL(const TInt)
TKeyResponse OfferKeyEventL(const TKeyEvent &, TEventCode)
voidReduceRect(TRect &)
voidRemoveCommandFromStack(TInt, TInt)
voidRemovePreviousCommand(TInt)
IMPORT_C voidReplaceCommand(const TInt, const TInt)
voidReserved_MtsmObject()
voidReserved_MtsmPosition()
const CEikCbaScrollBarFrame *ScrollBarFrame()
voidSetBoundingRect(const TRect &)
IMPORT_C voidSetButtonGroupFlags(TInt)
voidSetCommandL(TInt, TInt, const TDesC *, const CFbsBitmap *, const CFbsBitmap *)
voidSetCommandL(TInt, TInt)
voidSetCommandSetL(TInt)
voidSetContainerWindowL(const CCoeControl &)
voidSetContentObserver(TCallBack)
voidSetDefaultCommand(TInt)
voidSetMSKCommandObserver(MEikCommandObserver *)
voidSetMSKIconL()
voidSetSBFrameObserver(MEikScrollBarObserver *)
voidSetScrollBarModelL(TEikScrollBarModel *)
IMPORT_C voidSetSkinBackgroundId(const TAknsItemID &)
TBool SoftkeyStatusChangeAllowed(TInt, TBool)
voidUpdateCbaLabels(TBool)
voidUpdateItemSpecificSoftkey(TBool)
IMPORT_C TBoolUpdateMSKIconL(const TAknsItemID &, const TDesC &, const TInt32, const TInt32, TBool)
CAknScrollBar *VScrollBarAsControl()
Protected Member Functions
voidDraw(const TRect &)
voidHandleScrollEventL(CEikScrollBar *, TEikScrollEvent)
TTypeUid::Ptr MopSupplyObject(TTypeUid)
Private Member Functions
CEikCba(const CEikCba *, MEikCommandObserver *, RWindowGroup *, TUint)
voidAddCommandToStackWithoutSizeChangedL(TInt, TInt, const TDesC *)
TInt AknLayoutFlags()
voidBaseConstructL()
voidBroadcastPostingTransparency(TBool)
CCoeControl *ButtonById(TInt)
voidCheckSkinAndUpdateContext()
voidConstructFromResourceL(TResourceReader &)
voidConstructL(TInt)
voidCreateScrollBarFrameL()
voidDoColorChange()
voidDoLayoutChange()
voidDoSetLayers(const TAknsItemID &)
voidDoSkinChange()
voidDrawEmbeddedSoftkey(TEikGroupControl &, const TRect &, CWindowGc &, CFbsBitmap *)
IMPORT_C void *ExtensionInterface(TUid)
voidInsertScrollBarL()
voidLayoutControl(CCoeControl *, const TRect &)
TBool MskAllowed()
voidRemovePreviousCommandWithoutSizeChanged(TInt)
voidReportContentChangedEvent()
voidSetFadeState()
voidSizeChanged()
voidSizeChangedInControlPane()
voidSizeChangedInPopup()
voidSizeChangedInRightPane()
voidSizeChangedInStaconPane()
voidSizeChangedInsideDialog()
voidUpdateFonts()
TBool UpdateIconL()
voidUpdateItemSpecificSoftkey(CCoeControl &, TBool)
voidUpdateLabels(TBool)
TEikGroupControl VScrollBarAsGroupControl()
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::FocusChanged(TDrawNow)
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::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::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::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::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)
CEikControlGroup::AddControlL(CCoeControl *,TInt)
CEikControlGroup::AddControlL(TEikGroupControl &)
CEikControlGroup::CEikControlGroup()
CEikControlGroup::ComponentControl(TInt)const
CEikControlGroup::ConstructL(TStartCorner,TOrientation)
CEikControlGroup::Control(TInt)const
CEikControlGroup::ControlArray()const
CEikControlGroup::ControlById(TInt)const
CEikControlGroup::ControlId(CCoeControl *)const
CEikControlGroup::ControlSpacing(TInt &,TInt &)const
CEikControlGroup::CountComponentControls()const
CEikControlGroup::DeleteControl(TInt,TInt)
CEikControlGroup::IndexById(TInt)const
CEikControlGroup::LayoutControls()
CEikControlGroup::Orientation()const
CEikControlGroup::Reset()
CEikControlGroup::SetBreadthInPixels(TInt)
CEikControlGroup::SetControlLayout(TStartCorner,TOrientation)
CEikControlGroup::SetControlSpacing(TInt,TInt)
CEikControlGroup::SetControlsAllSameSize()
CEikControlGroup::SetLengthInPixels(TInt)
CEikControlGroup::SetMSKVisibility(TBool)
CEikControlGroup::SetNumberOfLines(TInt,TBool)
CEikControlGroup::WriteInternalStateL(RWriteStream &)const
CEikControlGroup::~CEikControlGroup()
Inherited Enumerations
CCoeControl:TZoomType
CEikControlGroup:@142
CEikControlGroup:TOrientation
CEikControlGroup:TStartCorner
Private Attributes
CAknsBasicBackgroundControlContext *iBgContext
TAknsItemID iBgIID
CCoeBrushAndPenContext *iBrushAndPenContext
TUint iCbaFlags
TAknsItemID iClockIndicBgIID
MEikCommandObserver *iCommandObserver
CEikCommandTable *iCommandTable
CEikCbaExtension *iExtension
TBitFlags iFlags
TBool iIsClockIndicBgIIDSet
const CFont *iLabelFont
const CEikCba *iLink
CAknsMaskedLayerBackgroundControlContext *iMLBgContext
MEikCommandObserver *iMSKCommandObserver
TBool iMSKEnabledInPlatform
TBool iMSKset
RWindowGroup *iParentWg
TBool iPopupVisible
const CFont *iRightPaneLabelFont
CEikCbaScrollBarFrame *iSBFrame
CAknsLayeredBackgroundControlContext *iStaconBgContext
CAknsMaskedLayerBackgroundControlContext *iStaconBgContextBottom
CAknsMaskedLayerBackgroundControlContext *iStaconBgContextTop
const CFont *iStaconLabelFont
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CEikBorderedControl::iBorder
CEikControlGroup::iControlArray

Constructor & Destructor Documentation

CEikCba(const CEikCba *, MEikCommandObserver *, RWindowGroup *, TUint)

CEikCba(const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg,
TUintaFlags = 0
)[private]

Parameters

const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg
TUint aFlags = 0

~CEikCba()

~CEikCba()

Destructor.

Member Functions Documentation

ActivateL()

voidActivateL()[virtual]

AddCommandL(TInt, TInt, const TDesC *, const CFbsBitmap *, const CFbsBitmap *)

voidAddCommandL(TIntaPosition,
TIntaCommandId,
const TDesC *aText,
const CFbsBitmap *aBitmap,
const CFbsBitmap *aMask
)

From MEikButtonGroup. Not supported.

Parameters

TInt aPosition
TInt aCommandId
const TDesC * aText
const CFbsBitmap * aBitmap
const CFbsBitmap * aMask

AddCommandSetToStackL(TInt)

voidAddCommandSetToStackL(TIntaResourceId)

From MEikButtonGroup. As with SetCommandL() but for a set of buttons, also allows the previous command button to be retrieved by calling RemoveCommand(). Note that this implementation does not support bitmap and mask.

Parameters

TInt aResourceId

AddCommandToStackL(TInt, TInt, const TDesC *, const CFbsBitmap *, const CFbsBitmap *)

voidAddCommandToStackL(TIntaPosition,
TIntaCommandId,
const TDesC *aText,
const CFbsBitmap *aBitmap,
const CFbsBitmap *aMask
)

From MEikButtonGroup. Pushes a command button with text and a command ID onto a position's button stack. Note that this implementation does not support bitmap and mask.

Parameters

TInt aPosition
TInt aCommandId
const TDesC * aText
const CFbsBitmap * aBitmap
const CFbsBitmap * aMask

AddCommandToStackL(TInt, TInt)

voidAddCommandToStackL(TIntaPosition,
TIntaResourceId
)

From MEikButtonGroup. Pushes a command button onto a position's button stack. The text and command ID are all read from resource. Note that this implementation does not support bitmap and mask.

Parameters

TInt aPosition
TInt aResourceId

AddCommandToStackWithoutSizeChangedL(TInt, TInt, const TDesC *)

voidAddCommandToStackWithoutSizeChangedL(TIntaPosition,
TIntaCommandId,
const TDesC *aText
)[private]

A better version of AddCommandToStackL Pushes a command button with text and a command ID onto a position's button stack. SizeChanged() is not called, so it need to be done after that. Note that this implementation does not support bitmap and mask.

Parameters

TInt aPosition
TInt aCommandId
const TDesC * aText

AknLayoutFlags()

TInt AknLayoutFlags()const [private]

AnimateCommand(TInt)

voidAnimateCommand(TIntaCommandId)

From MEikButtonGroup. Not supported.

Parameters

TInt aCommandId

AnimateCommandByPosition(TInt)

voidAnimateCommandByPosition(TIntaPosition)

From MEikButtonGroup. Not supported.

Parameters

TInt aPosition

AsControl()

CCoeControl *AsControl()

From MEikButtonGroup. Returns the button group as a control.

AsControl()

const CCoeControl *AsControl()const

From MEikButtonGroup. Returns the button group as a control.

BaseConstructL()

voidBaseConstructL()[private]

BroadcastPostingTransparency(TBool)

voidBroadcastPostingTransparency(TBoolaEnable)[private]

Broadcasts transparency information to CEikCbaButtons.

Parameters

TBool aEnable

ButtonById(TInt)

CCoeControl *ButtonById(TIntaCommandId)const [private]

Parameters

TInt aCommandId

ButtonCount()

TInt ButtonCount()const

From MEikButtonGroup. Gets the total number of buttons currently present in the group.

ButtonGroupFlags()

TUint ButtonGroupFlags()const

From MEikButtonGroup. Gets the button group flags.

ButtonRectByPosition(TInt, TBool)

TRect ButtonRectByPosition(TIntaPosition,
TBoolaRelativeToScreen
)

Returns a group control (a button) as a control. Gets a CBA button rectangle. This can be used in touch layouts to get the whole rectangle of the CBA button, as the button areas are larger than the actual button control in touch layouts.

Rectangle of the specified button.

Parameters

TInt aPositionPosition of the button.
TBool aRelativeToScreenIf ETrue, the returned rectangle coordinates are relative to the screen rectangle, otherwise they are relative to the CBA area. Note that this parameter is only taken into account in touch layouts, and in nHD landscape mode the returned rectangle is always relative to the screen regardless of this parameter.

CalcMinimumSizeL(TInt)

TSize CalcMinimumSizeL(TIntaResourceId)

From MEikButtonGroup. Calculates minimum size required to display the buttons defined in the specified resource structure.

Parameters

TInt aResourceId

CheckSkinAndUpdateContext()

voidCheckSkinAndUpdateContext()[private]

CommandId(TInt)

TInt CommandId(TIntaCommandPos)const

From MEikButtonGroup. Returns the command id by position.

Parameters

TInt aCommandPos

CommandPos(TInt)

TInt CommandPos(TIntaCommandId)const

From MEikButtonGroup. Returns the command position by command id.

Parameters

TInt aCommandId

ConstructFromResourceL(TResourceReader &)

voidConstructFromResourceL(TResourceReader &aReader)[private, virtual]

Parameters

TResourceReader & aReader

ConstructL(TInt)

voidConstructL(TIntaResourceId)[private]

Parameters

TInt aResourceId

CreateArrowHeadScrollBarL()

voidCreateArrowHeadScrollBarL()

Replaces empty scroll bar with actual arrow head scroll bar.

CreateScrollBarFrameL()

voidCreateScrollBarFrameL()[private]

DimCommand(TInt, TBool)

voidDimCommand(TIntaCommandId,
TBoolaDimmed
)

From MEikButtonGroup. Dims or undims a button without drawing it.

Parameters

TInt aCommandId
TBool aDimmed

DimCommandByPosition(TInt, TBool)

voidDimCommandByPosition(TIntaPosition,
TBoolaDimmed
)

From MEikButtonGroup. Dims (but doesn't draw) the button with position aPosition.

Parameters

TInt aPosition
TBool aDimmed

DoColorChange()

voidDoColorChange()[private]

DoLayoutChange()

voidDoLayoutChange()[private]

DoSetLayers(const TAknsItemID &)

voidDoSetLayers(const TAknsItemID &aIID)[private]

Parameters

const TAknsItemID & aIID

DoSkinChange()

voidDoSkinChange()[private]

Draw(const TRect &)

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

From CCoeControl. Draws the control.

Parameters

const TRect & aRectRectangle to draw on.

DrawEmbeddedSoftkey(TEikGroupControl &, const TRect &, CWindowGc &, CFbsBitmap *)

voidDrawEmbeddedSoftkey(TEikGroupControl &aGroupControl,
const TRect &aRect,
CWindowGc &aGc,
CFbsBitmap *aMask
)const [private]

Draws embedded softkey.

Parameters

TEikGroupControl & aGroupControl
const TRect & aRect
CWindowGc & aGc
CFbsBitmap * aMask

EnableItemSpecificSoftkey(TBool)

IMPORT_C voidEnableItemSpecificSoftkey(TBoolaEnable)

Enables or disables item specific softkey. If enabled then SK1's visibility is determined by the screen content. If there's a list or grid with visible highlight (i.e. highlight is brought visible via hardware keys) on the display or SK1's associated command is EAknSoftkeyOptions then SK1 is visible, otherwise it's hidden. This method has no effect if the the application isn't single click enabled. Item specific softkey is enabled by default.

S60 5.2

Parameters

TBool aEnableETrue to enable item specific softkey, EFalse to disable.

EnablePostingTransparency(TBool)

voidEnablePostingTransparency(TBoolaEnable)

Enable or disable transparent rendering.

Parameters

TBool aEnable

ExtensionInterface(TUid)

IMPORT_C void *ExtensionInterface(TUidaInterface)[private, virtual]

Parameters

TUid aInterface

Flags()

TBitFlags Flags()

Returns TBitFlags.

GetColorUseListL(CArrayFix< TCoeColorUse > &)

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

From CCoeControl. Gets the list of logical colours used to draw the control. The list includes an explanation of how each colour is used.

Parameters

CArrayFix< TCoeColorUse > & aColorUseListThe colour list.

GroupControlAsButton(TInt)

CEikCommandButton *GroupControlAsButton(TIntaCommandId)const

From MEikButtonGroup. Not supported, because it is not possible to convert a CBA button to a CEikCommandButton. Calling this in debug build causes a panic, otherwise NULL is just returned.

Parameters

TInt aCommandId

GroupControlById(TInt)

CCoeControl *GroupControlById(TIntaCommandId)

Returns a group control (a button) as a control.

Parameters

TInt aCommandId

GroupControlById(TInt)

CCoeControl *GroupControlById(TIntaCommandId)const

From MEikButtonGroup. Returns a group control (a button) as a control.

Parameters

TInt aCommandId

HandleControlEventL(CCoeControl *, TCoeEvent)

voidHandleControlEventL(CCoeControl *aControl,
TCoeEventaEventType
)

Parameters

CCoeControl * aControl
TCoeEvent aEventType

HandlePointerEventL(const TPointerEvent &)

voidHandlePointerEventL(const TPointerEvent &aPointerEvent)[virtual]

From CCoeControl. Handles pointer events.

Parameters

const TPointerEvent & aPointerEventThe pointer event

HandleResourceChange(TInt)

voidHandleResourceChange(TIntaType)[virtual]

From CCoeControl. Handles a change to the control's resources.

Parameters

TInt aTypeA message UID value.

HandleScrollEventL(CEikScrollBar *, TEikScrollEvent)

voidHandleScrollEventL(CEikScrollBar *aScrollBar,
TEikScrollEventaEventType
)[protected, virtual]

From MEikScrollBarObserver Handles scroll events. This function is called by the CEikScrollBar object with which this scroll bar observer object is registered. Implementations should handle scroll events appropriately.

Parameters

CEikScrollBar * aScrollBarPointer to the originating scroll bar object.
TEikScrollEvent aEventTypeA scroll event.

InsertControlL(TEikGroupControl &, TInt)

voidInsertControlL(TEikGroupControl &aGroupControl,
TIntaIndex
)

From CEikControlGroup. Adds a wrapped control to the control group array at the given index position. Overridden to prevent setting container window.

Parameters

TEikGroupControl & aGroupControlThe control to add to the group.
TInt aIndexThe index for the added control.

InsertScrollBarL()

voidInsertScrollBarL()[private]

IsCommandDimmed(TInt)

TBool IsCommandDimmed(TIntaCommandId)const

From MEikButtonGroup. Determines whether the button with the specified command ID is dimmed.

Parameters

TInt aCommandId

IsCommandDimmedByPosition(TInt)

TBool IsCommandDimmedByPosition(TIntaPosition)const

From MEikButtonGroup. Returns ETrue if the button with position aPosition is dimmed.

Parameters

TInt aPosition

IsCommandInGroup(const TInt)

IMPORT_C TBoolIsCommandInGroup(const TIntaCommandId)const

From MEikEnhancedButtonGroup. Used to check if a certain command have been approved to the current command set.

ETrue if command is in control group, otherwise EFalse.

Parameters

const TInt aCommandIdThe id for command which existence should be checked.

IsCommandVisible(TInt)

TBool IsCommandVisible(TIntaCommandId)const

From MEikButtonGroup. Tests whether the button with the specified command ID is visible.

Parameters

TInt aCommandId

IsCommandVisibleByPosition(TInt)

TBool IsCommandVisibleByPosition(TIntaPosition)const

From MEikButtonGroup. Returns ETrue if the button with position aPosition is visible.

Parameters

TInt aPosition

IsEmpty()

IMPORT_C TBoolIsEmpty()const

Checks if the CBA contains no commands. Note that this returns always EFalse if the CBA belongs to a full screen query.

ItemSpecificSoftkey()

TEikGroupControl *ItemSpecificSoftkey()const

Returns item specific softkey if it state should be updated.

Item specific softkey.

LayoutControl(CCoeControl *, const TRect &)

voidLayoutControl(CCoeControl *aControl,
const TRect &aRect
)[private]

Layouts given cba control to it's rect correctly. This function is used to layout every text and image inside of CEikCba.

Parameters

CCoeControl * aControlCBA Control that is to be layouted
const TRect & aRectthe rect where control should be layouted.

MSKEnabledInPlatform()

TInt MSKEnabledInPlatform()const

For checking whether the middle softkey is supported in the platform.

MakeCommandVisible(TInt, TBool)

voidMakeCommandVisible(TIntaCommandId,
TBoolaVisible
)

From MEikButtonGroup. Makes the button with the specified id either visible, or invisible.

Parameters

TInt aCommandId
TBool aVisible

MakeCommandVisibleByPosition(TInt, TBool)

voidMakeCommandVisibleByPosition(TIntaPosition,
TBoolaVisible
)

From MEikButtonGroup. Sets the the button with position aPosition to be visible if aVisible is ETrue.

Parameters

TInt aPosition
TBool aVisible

MakeVisible(TBool)

voidMakeVisible(TBoolaVisible)[virtual]

From CCoeControl. Sets this control as visible or invisible.

Parameters

TBool aVisibleETrue to make the control visible, EFalse to make it invisible.

MaxCommands()

TInt MaxCommands()const

Gets the maximum number of buttons that can be supported by the device.

MinimumSize()

TSize MinimumSize()[virtual]

From CCoeControl. Sets the control's minimum required size.

The minimum size required by the control.

MopSupplyObject(TTypeUid)

TTypeUid::Ptr MopSupplyObject(TTypeUidaId)[protected]

From CCoeControl 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.

Encapsulates the pointer to the object provided. Note that the encapsulated pointer may be NULL.

Parameters

TTypeUid aIdAn encapsulated object type ID.

MskAllowed()

TBool MskAllowed()const [private]

Checks if the middle softkey should be used.

NewL(const CEikCba *, MEikCommandObserver *, RWindowGroup *)

CEikCba *NewL(const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg
)[static]

Creates a new control button array.

Parameters

const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg

NewL(TInt, const CEikCba *, MEikCommandObserver *, RWindowGroup *)

CEikCba *NewL(TIntaResourceId,
const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg
)[static]

Creates a new control button array.

Parameters

TInt aResourceId
const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg

NewLC(const CEikCba *, MEikCommandObserver *, RWindowGroup *)

CEikCba *NewLC(const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg
)[static]

Creates a new control button array.

Parameters

const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg

NewLC(const CEikCba *, MEikCommandObserver *, RWindowGroup *, TUint)

CEikCba *NewLC(const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg,
TUintaFlags
)[static]

Creates a new control button array

S60 5.2

Parameters

const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg
TUint aFlags

NewLC(TInt, const CEikCba *, MEikCommandObserver *, RWindowGroup *)

CEikCba *NewLC(TIntaResourceId,
const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg
)[static]

Creates a new control button array.

Parameters

TInt aResourceId
const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg

NewLC(TInt, const CEikCba *, MEikCommandObserver *, RWindowGroup *, TUint)

CEikCba *NewLC(TIntaResourceId,
const CEikCba *aPrevious,
MEikCommandObserver *aCommandObserver,
RWindowGroup *aParentWg,
TUintaFlags
)[static]

Creates a new control button array

S60 5.2

Parameters

TInt aResourceId
const CEikCba * aPrevious
MEikCommandObserver * aCommandObserver
RWindowGroup * aParentWg
TUint aFlags

OfferCommandListL(const RArray< TInt > &)

IMPORT_C voidOfferCommandListL(const RArray< TInt > &aCommandList)

From MEikEnhancedButtonGroup. Used to offer list of commands for softkeys.

Parameters

const RArray< TInt > & aCommandListA list of command ids to be offered for softkeys.

OfferCommandListL(const TInt)

IMPORT_C voidOfferCommandListL(const TIntaResourceId)

From MEikEnhancedButtonGroup. Used to offer list of commands for softkeys.

Parameters

const TInt aResourceIdId for CBA resource that defines enhanced cba buttons.

OfferKeyEventL(const TKeyEvent &, TEventCode)

TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[virtual]

From CCoeControl. Handles key events.

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

Parameters

const TKeyEvent & aKeyEventThe key event.
TEventCode aTypeThe type of key event: EEventKey, EEventKeyUp or EEventKeyDown.

ReduceRect(TRect &)

voidReduceRect(TRect &aBoundingRect)const

From MEikButtonGroup. Subtracts the area occupied by the button group from the specified bounding rectangle. This method should be used in preference to querying the container's area at all times. For use by EExternal button groups only.

Parameters

TRect & aBoundingRect

RemoveCommandFromStack(TInt, TInt)

voidRemoveCommandFromStack(TIntaPosition,
TIntaCommandId
)

From MEikButtonGroup. Removes the command identified by aCommandId, in position aPosition in the group, from the command stack. Automatically retrieves the previous command details. Commands are added to the stack by calling AddCommandToStackL.

Parameters

TInt aPosition
TInt aCommandId

RemovePreviousCommand(TInt)

voidRemovePreviousCommand(TIntaPosition)

Removes previous command.

Parameters

TInt aPosition

RemovePreviousCommandWithoutSizeChanged(TInt)

voidRemovePreviousCommandWithoutSizeChanged(TIntaPosition)[private]

Removes previous command but do not call SizeChanged And SetMSKIconL.

Parameters

TInt aPosition

ReplaceCommand(const TInt, const TInt)

IMPORT_C voidReplaceCommand(const TIntaCommandId,
const TIntaResourceId
)

From MEikEnhancedButtonGroup. Replace existing command with a new command.

Parameters

const TInt aCommandIdId for command that should be replaced.
const TInt aResourceIdResource id for new enhanced cba button.

ReportContentChangedEvent()

voidReportContentChangedEvent()[private]

Reports state changed event if cba changed from empty to non-empty or vice versa.

Reserved_MtsmObject()

voidReserved_MtsmObject()[virtual]

Formerly from MTopSetMember<CEikCba>, now reserved.

Reserved_MtsmPosition()

voidReserved_MtsmPosition()[virtual]

Formerly from MTopSetMember<CEikCba>, now reserved.

ScrollBarFrame()

const CEikCbaScrollBarFrame *ScrollBarFrame()const

Returns the scroll bar frame.

SetBoundingRect(const TRect &)

voidSetBoundingRect(const TRect &aBoundingRect)

From MEikButtonGroup. Sets the boundary rectangle for externally-positioned button groups. For use by EExternal button groups only.

Parameters

const TRect & aBoundingRect

SetButtonGroupFlags(TInt)

IMPORT_C voidSetButtonGroupFlags(TIntaFlags)

Sets the button group flags.

Parameters

TInt aFlags

SetCommandL(TInt, TInt, const TDesC *, const CFbsBitmap *, const CFbsBitmap *)

voidSetCommandL(TIntaPosition,
TIntaCommandId,
const TDesC *aText,
const CFbsBitmap *aBitmap,
const CFbsBitmap *aMask
)

From MEikButtonGroup. Sets a command button's text and command ID. Note that this implementation does not support bitmap and mask.

Parameters

TInt aPositionThe position within the button group of the button to change.
TInt aCommandIdCommand ID the button will send.
const TDesC * aTextThe text for the button.
const CFbsBitmap * aBitmapNot used.
const CFbsBitmap * aMaskNot used.

SetCommandL(TInt, TInt)

voidSetCommandL(TIntaPosition,
TIntaResourceId
)

From MEikButtonGroup. Sets a command button's text label and command ID. The text and command ID are all read from resource. Note that this implementation does not support bitmap and mask.

Parameters

TInt aPosition
TInt aResourceId

SetCommandSetL(TInt)

voidSetCommandSetL(TIntaResourceId)

From MEikButtonGroup. Initialises the group of command buttons from a resource. Note that this implementation does not support bitmap and mask.

Parameters

TInt aResourceId

SetContainerWindowL(const CCoeControl &)

voidSetContainerWindowL(const CCoeControl &aContainer)[virtual]

From CCoeControl. Sets the control's containing window by copying it from aContainer.

Parameters

const CCoeControl & aContainerThe compound control that is the container for this control

SetContentObserver(TCallBack)

voidSetContentObserver(TCallBackaCallBack)

Sets content observer.

Parameters

TCallBack aCallBack

SetDefaultCommand(TInt)

voidSetDefaultCommand(TIntaCommandId)

From MEikButtonGroup. Not supported.

Parameters

TInt aCommandId

SetFadeState()

voidSetFadeState()[private]

Sets the CBA fading according to button content.

SetMSKCommandObserver(MEikCommandObserver *)

voidSetMSKCommandObserver(MEikCommandObserver *aCommandObserver)

From MEikButtonGroup. Sets the middle softkey command observer.

Parameters

MEikCommandObserver * aCommandObserver

SetMSKIconL()

voidSetMSKIconL()

Sets the middle softkey icon.

SetSBFrameObserver(MEikScrollBarObserver *)

voidSetSBFrameObserver(MEikScrollBarObserver *aObserver)

Sets the scroll bar frame observer.

Parameters

MEikScrollBarObserver * aObserver

SetScrollBarModelL(TEikScrollBarModel *)

voidSetScrollBarModelL(TEikScrollBarModel *aModel)

Sets the scroll bar model.

Parameters

TEikScrollBarModel * aModel

SetSkinBackgroundId(const TAknsItemID &)

IMPORT_C voidSetSkinBackgroundId(const TAknsItemID &aIID)

Sets the skin background for this control button array. The new background is used for all the subsequent drawing operations. This method does not itself cause a repaint.

Parameters

const TAknsItemID & aIID

SizeChanged()

voidSizeChanged()[private, virtual]

SizeChangedInControlPane()

voidSizeChangedInControlPane()[private]

SizeChangedInPopup()

voidSizeChangedInPopup()[private]

Handles size change events in case of embedded softkeys.

SizeChangedInRightPane()

voidSizeChangedInRightPane()[private]

SizeChangedInStaconPane()

voidSizeChangedInStaconPane()[private]

SizeChangedInsideDialog()

voidSizeChangedInsideDialog()[private]

SoftkeyStatusChangeAllowed(TInt, TBool)

TBool SoftkeyStatusChangeAllowed(TIntaSofkeyPosition,
TBoolaDisabled
)

Returns ETrue if softkey status change is allowed.

ETrue if softkey status change is allowed.

Parameters

TInt aSofkeyPositionSoftkey position.
TBool aDisabledETrue if softkey is to be disabled.

UpdateCbaLabels(TBool)

voidUpdateCbaLabels(TBoolaScrollerOn)

Updates the cba labels.

Parameters

TBool aScrollerOn

UpdateFonts()

voidUpdateFonts()[private]

UpdateIconL()

TBool UpdateIconL()[private]

UpdateItemSpecificSoftkey(TBool)

voidUpdateItemSpecificSoftkey(TBoolaVisibleCollection = ETrue)

Updates item specific softkey.

Parameters

TBool aVisibleCollection = ETrueETrue if state should be updated according to visible collection.

UpdateItemSpecificSoftkey(CCoeControl &, TBool)

voidUpdateItemSpecificSoftkey(CCoeControl &aControl,
TBoolaEnable
)[private]

Updates item specific softkey.

Parameters

CCoeControl & aControlItem specifc softkey control.
TBool aEnableETrue if control should be enabled, EFalse if disabled.

UpdateLabels(TBool)

voidUpdateLabels(TBoolaDrawDeferred)[private]

Updates softkey labels in case of embedded softkeys.

Parameters

TBool aDrawDeferredETrue to cause a redraw event.

UpdateMSKIconL(const TAknsItemID &, const TDesC &, const TInt32, const TInt32, TBool)

IMPORT_C TBoolUpdateMSKIconL(const TAknsItemID &aId,
const TDesC &aBmpFile,
const TInt32aBmp,
const TInt32aBmpM,
TBoolaEnable
)

For external set the MSK icon Returns ETrue if option is ok, EFalse is not.

Parameters

const TAknsItemID & aIdicon bitmap IID
const TDesC & aBmpFilefile path.
const TInt32 aBmpBitmap ID.
const TInt32 aBmpMBitmap mask ID.
TBool aEnableETrue for set icon, EFalse for use default icon.

VScrollBarAsControl()

CAknScrollBar *VScrollBarAsControl()

Returns the vertical scroll bar as a control.

VScrollBarAsGroupControl()

TEikGroupControl VScrollBarAsGroupControl()[private]

Member Data Documentation

CAknsBasicBackgroundControlContext * iBgContext

CAknsBasicBackgroundControlContext *iBgContext[private]

Old background context.

TAknsItemID iBgIID

TAknsItemID iBgIID[private]

CCoeBrushAndPenContext * iBrushAndPenContext

CCoeBrushAndPenContext *iBrushAndPenContext[private]

TUint iCbaFlags

TUint iCbaFlags[private]

TAknsItemID iClockIndicBgIID

TAknsItemID iClockIndicBgIID[private]

Skin background ID for the status pane controlled region of the CBA area in bottom softkey landscape mode.

MEikCommandObserver * iCommandObserver

MEikCommandObserver *iCommandObserver[private]

CEikCommandTable * iCommandTable

CEikCommandTable *iCommandTable[private]

New member variable that stores commands in correct order.

CEikCbaExtension * iExtension

CEikCbaExtension *iExtension[private]

TBitFlags iFlags

TBitFlags iFlags[private]

TBool iIsClockIndicBgIIDSet

TBool iIsClockIndicBgIIDSet[private]

const CFont * iLabelFont

const CFont *iLabelFont[private]

const CEikCba * iLink

const CEikCba *iLink[private]

Used to maintain the original settings if a client needs to temporarily change its cba.

CAknsMaskedLayerBackgroundControlContext * iMLBgContext

CAknsMaskedLayerBackgroundControlContext *iMLBgContext[private]

Masked layer backgrounds.

MEikCommandObserver * iMSKCommandObserver

MEikCommandObserver *iMSKCommandObserver[private]

Additional observer for MSK. This is called first and default observer after that.

TBool iMSKEnabledInPlatform

TBool iMSKEnabledInPlatform[private]

For MSK, caches CenRep value.

TBool iMSKset

TBool iMSKset[private]

For MSK.

RWindowGroup * iParentWg

RWindowGroup *iParentWg[private]

TBool iPopupVisible

TBool iPopupVisible[private]

const CFont * iRightPaneLabelFont

const CFont *iRightPaneLabelFont[private]

CEikCbaScrollBarFrame * iSBFrame

CEikCbaScrollBarFrame *iSBFrame[private]

CAknsLayeredBackgroundControlContext * iStaconBgContext

CAknsLayeredBackgroundControlContext *iStaconBgContext[private]

Old stacon background context.

CAknsMaskedLayerBackgroundControlContext * iStaconBgContextBottom

CAknsMaskedLayerBackgroundControlContext *iStaconBgContextBottom[private]

CAknsMaskedLayerBackgroundControlContext * iStaconBgContextTop

CAknsMaskedLayerBackgroundControlContext *iStaconBgContextTop[private]

const CFont * iStaconLabelFont

const CFont *iStaconLabelFont[private]