API published in: S60 1st Ed
Link against: eikcoctl.lib avkon.lib
Required Capabilities
None
#include <eikcba.h>
Inherits CEikControlGroup, MEikEnhancedButtonGroup, and MEikScrollBarObserver.
Public Member Functions |
|
DECLARE_TYPE_ID (0x101F4105) static CEikCba *NewL(const CEikCba *aPrevious | |
Creates a new control button array. |
|
~CEikCba () | |
Destructor. |
|
TInt | MaxCommands () const |
Gets the maximum number of buttons that can be supported by the device. |
|
void | UpdateCbaLabels (TBool aScrollerOn) |
Updates the cba labels. |
|
TInt | MSKEnabledInPlatform () const |
For checking whether the middle softkey is supported in the platform. |
|
void | SetSBFrameObserver (MEikScrollBarObserver *aObserver) |
Sets the scroll bar frame observer. |
|
void | SetScrollBarModelL (TEikScrollBarModel *aModel) |
Sets the scroll bar model. |
|
const CEikCbaScrollBarFrame * | ScrollBarFrame () const |
Returns the scroll bar frame. |
|
CEikScrollBar * | VScrollBarAsControl () |
Returns the vertical scroll bar as a control. |
|
void | CreateArrowHeadScrollBarL () |
Replaces empty scroll bar with actual arrow head scroll bar. |
|
void | InsertControlL (TEikGroupControl &aGroupControl, TInt aIndex) |
From CEikControlGroup. |
|
void | SetCommandL (TInt aPosition, TInt aCommandId, const TDesC *aText, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) |
From MEikButtonGroup. |
|
void | SetCommandL (TInt aPosition, TInt aResourceId) |
From MEikButtonGroup. |
|
void | SetCommandSetL (TInt aResourceId) |
From MEikButtonGroup. |
|
void | AddCommandL (TInt aPosition, TInt aCommandId, const TDesC *aText, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) |
From MEikButtonGroup. |
|
void | AddCommandToStackL (TInt aPosition, TInt aCommandId, const TDesC *aText, const CFbsBitmap *aBitmap, const CFbsBitmap *aMask) |
From MEikButtonGroup. |
|
void | AddCommandToStackL (TInt aPosition, TInt aResourceId) |
From MEikButtonGroup. |
|
void | AddCommandSetToStackL (TInt aResourceId) |
From MEikButtonGroup. |
|
void | SetDefaultCommand (TInt aCommandId) |
From MEikButtonGroup. |
|
TSize | CalcMinimumSizeL (TInt aResourceId) |
From MEikButtonGroup. |
|
void | RemoveCommandFromStack (TInt aPosition, TInt aCommandId) |
From MEikButtonGroup. |
|
TInt | CommandPos (TInt aCommandId) const |
From MEikButtonGroup. |
|
void | DimCommand (TInt aCommandId, TBool aDimmed) |
From MEikButtonGroup. |
|
TBool | IsCommandDimmed (TInt aCommandId) const |
From MEikButtonGroup. |
|
void | MakeCommandVisible (TInt aCommandId, TBool aVisible) |
From MEikButtonGroup. |
|
TBool | IsCommandVisible (TInt aCommandId) const |
From MEikButtonGroup. |
|
void | AnimateCommand (TInt aCommandId) |
From MEikButtonGroup. |
|
CCoeControl * | AsControl () |
From MEikButtonGroup. |
|
const CCoeControl * | AsControl () const |
From MEikButtonGroup. |
|
void | SetBoundingRect (const TRect &aBoundingRect) |
From MEikButtonGroup. |
|
void | ReduceRect (TRect &aBoundingRect) const |
From MEikButtonGroup. |
|
CCoeControl * | GroupControlById (TInt aCommandId) |
Returns a group control (a button) as a control. |
|
CCoeControl * | GroupControlById (TInt aCommandId) const |
From MEikButtonGroup. |
|
TInt | CommandId (TInt aCommandPos) const |
From MEikButtonGroup. |
|
TInt | ButtonCount () const |
From MEikButtonGroup. |
|
void | RemovePreviousCommand (TInt aPosition) |
Removes previous command. |
|
CEikCommandButton * | GroupControlAsButton (TInt aCommandId) const |
From MEikButtonGroup. |
|
TUint | ButtonGroupFlags () const |
From MEikButtonGroup. |
|
IMPORT_C void | SetButtonGroupFlags (TInt aFlags) |
Sets the button group flags. |
|
IMPORT_C void | SetSkinBackgroundId (const TAknsItemID &aIID) |
Sets the skin background for this control button array. |
|
void | SetMSKIconL () |
Sets the middle softkey icon. |
|
void | SetMSKCommandObserver (MEikCommandObserver *aCommandObserver) |
From MEikButtonGroup. |
|
void | DimCommandByPosition (TInt aPosition, TBool aDimmed) |
From MEikButtonGroup. |
|
TBool | IsCommandDimmedByPosition (TInt aPosition) const |
From MEikButtonGroup. |
|
void | MakeCommandVisibleByPosition (TInt aPosition, TBool aVisible) |
From MEikButtonGroup. |
|
TBool | IsCommandVisibleByPosition (TInt aPosition) const |
From MEikButtonGroup. |
|
void | AnimateCommandByPosition (TInt aPosition) |
From MEikButtonGroup. |
|
CCoeControl * | GroupControlByPosition (TInt aPosition) const |
Returns a group control (a button) as a control. |
|
virtual void | Reserved_MtsmPosition () |
Formerly from MTopSetMember<CEikCba>, now reserved. |
|
virtual void | Reserved_MtsmObject () |
Formerly from MTopSetMember<CEikCba>, now reserved. |
|
TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl. |
|
TSize | MinimumSize () |
From CCoeControl. |
|
void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl. |
|
void | HandleResourceChange (TInt aType) |
From CCoeControl. |
|
void | MakeVisible (TBool aVisible) |
From CCoeControl. |
|
void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl. |
|
IMPORT_C void | OfferCommandListL (const RArray< TInt > &aCommandList) |
From MEikEnhancedButtonGroup. |
|
IMPORT_C void | OfferCommandListL (const TInt aResourceId) |
From MEikEnhancedButtonGroup. |
|
IMPORT_C TBool | IsCommandInGroup (const TInt aCommandId) const |
From MEikEnhancedButtonGroup. |
|
IMPORT_C void | ReplaceCommand (const TInt aCommandId, const TInt aResourceId) |
From MEikEnhancedButtonGroup. |
|
Static Public Member Functions |
|
static CEikCba * | NewL (TInt aResourceId, const CEikCba *aPrevious, MEikCommandObserver *aCommandObserver, RWindowGroup *aParentWg) |
Creates a new control button array. |
|
static CEikCba * | NewLC (const CEikCba *aPrevious, MEikCommandObserver *aCommandObserver, RWindowGroup *aParentWg) |
Creates a new control button array. |
|
static CEikCba * | NewLC (TInt aResourceId, const CEikCba *aPrevious, MEikCommandObserver *aCommandObserver, RWindowGroup *aParentWg) |
Creates a new control button array. |
|
Data Fields |
|
MEikCommandObserver * | aCommandObserver |
MEikCommandObserver RWindowGroup * | aParentWg |
Protected Member Functions |
|
virtual void | HandleScrollEventL (CEikScrollBar *aScrollBar, TEikScrollEvent aEventType) |
From MEikScrollBarObserver Handles scroll events. |
|
TTypeUid::Ptr | MopSupplyObject (TTypeUid aId) |
From CCoeControl Retrieves an object of the same type as that encapsulated in aId. |
|
void | Draw (const TRect &aRect) const |
From CCoeControl. |
|
Destructor. |
|
From MEikButtonGroup. Not supported. Implements MEikButtonGroup. |
|
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. Implements MEikButtonGroup. |
|
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. Implements MEikButtonGroup. |
|
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. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Not supported. Reimplemented from MEikButtonGroup. |
|
From MEikButtonGroup. Not supported. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns the button group as a control. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns the button group as a control. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Gets the total number of buttons currently present in the group. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Gets the button group flags. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Calculates minimum size required to display the buttons defined in the specified resource structure. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns the command id by position. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns the command position by command id. Implements MEikButtonGroup. |
|
Replaces empty scroll bar with actual arrow head scroll bar. |
|
Creates a new control button array. |
|
From MEikButtonGroup. Dims or undims a button without drawing it. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Dims (but doesn't draw) the button with position aPosition. Implements MEikButtonGroup. |
|
From CCoeControl. Draws the control.
Reimplemented from CEikControlGroup. |
|
From CCoeControl. Gets the list of logical colours used to draw the control. The list includes an explanation of how each colour is used.
Reimplemented from CEikControlGroup. |
|
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. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns a group control (a button) as a control. Implements MEikButtonGroup. |
|
Returns a group control (a button) as a control. |
|
Returns a group control (a button) as a control. |
|
From CCoeControl. Handles pointer events.
Reimplemented from CEikControlGroup. |
|
From CCoeControl. Handles a change to the control's resources.
Reimplemented from CEikControlGroup. |
|
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.
Implements MEikScrollBarObserver. |
|
From CEikControlGroup. Adds a wrapped control to the control group array at the given index position. Overridden to prevent setting container window.
Reimplemented from CEikControlGroup. |
|
From MEikButtonGroup. Determines whether the button with the specified command ID is dimmed. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns ETrue if the button with position aPosition is dimmed. Implements MEikButtonGroup. |
|
From MEikEnhancedButtonGroup. Used to check if a certain command have been approved to the current command set.
Implements MEikEnhancedButtonGroup. |
|
From MEikButtonGroup. Tests whether the button with the specified command ID is visible. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Returns ETrue if the button with position aPosition is visible. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Makes the button with the specified id either visible, or invisible. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Sets the the button with position aPosition to be visible if aVisible is ETrue. Implements MEikButtonGroup. |
|
From CCoeControl. Sets this control as visible or invisible.
|
|
Gets the maximum number of buttons that can be supported by the device. |
|
From CCoeControl. Sets the control's minimum required size.
Reimplemented from CEikControlGroup. |
|
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.
|
|
For checking whether the middle softkey is supported in the platform. |
|
Creates a new control button array. |
|
Creates a new control button array. |
|
Creates a new control button array. |
|
From MEikEnhancedButtonGroup. Used to offer list of commands for softkeys.
Implements MEikEnhancedButtonGroup. |
|
From MEikEnhancedButtonGroup. Used to offer list of commands for softkeys.
Implements MEikEnhancedButtonGroup. |
|
From CCoeControl. Handles key events.
|
|
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. Implements MEikButtonGroup. |
|
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. Implements MEikButtonGroup. |
|
Removes previous command. |
|
From MEikEnhancedButtonGroup. Replace existing command with a new command.
Implements MEikEnhancedButtonGroup. |
|
Formerly from MTopSetMember<CEikCba>, now reserved. |
|
Formerly from MTopSetMember<CEikCba>, now reserved. |
|
Returns the scroll bar frame. |
|
From MEikButtonGroup. Sets the boundary rectangle for externally-positioned button groups. For use by EExternal button groups only. Implements MEikButtonGroup. |
|
Sets the button group flags. |
|
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. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Sets a command button's text and command ID. Note that this implementation does not support bitmap and mask.
Implements MEikButtonGroup. |
|
From MEikButtonGroup. Initialises the group of command buttons from a resource. Note that this implementation does not support bitmap and mask. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Not supported. Implements MEikButtonGroup. |
|
From MEikButtonGroup. Sets the middle softkey command observer. Implements MEikButtonGroup. |
|
Sets the middle softkey icon. |
|
Sets the scroll bar frame observer. |
|
Sets the scroll bar model. |
|
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. |
|
Updates the cba labels. |
|
Returns the vertical scroll bar as a control. |
|
|