API published in: S60 1st Ed
Link against: eikcoctl.lib avkon.lib
Required Capabilities
None
#include <eikcba.h>
Inherits CAknControl.
Inherited by CEikEnhancedCbaButton.
Public Member Functions | |
~CEikCbaButton () | |
Destructor. | |
void | ConstructL (TGulAlignmentValue aAlignment) |
Constructs a new CBA button instance. | |
void | AddCommandL (const TDesC &aText) |
Updates the label text with the given label. | |
void | PushCommandL (TInt aCommandId, const TDesC &aText) |
Pushes a command into button stack. | |
TInt | PopCommand () |
Pops a command from the button stack. | |
void | RemoveCommand (TInt aCommandId) |
Removes a command from the button stack. | |
void | RemovePreviousCommand () |
Removes the previos command from the button stack. | |
void | SwitchToShortTextL (TBool aShortText) |
Switches the button's text to short or long depending on the parameter given. | |
void | SetLabelFont (const CFont *aLabelFont) |
Sets the labels font. | |
void | TruncateLabelText () |
Truncates the label. | |
void | SetContainerWindowL (const CCoeControl &aContainer) |
From CCoeControl. | |
void | ConstructFromResourceL (TResourceReader &aReader, TGulAlignmentValue anAlignment) |
Constructs the control from a resource file. | |
TSize | MinimumSize () |
From CCoeControl. | |
void | SetDimmed (TBool aDimmed) |
From CCoeControl. | |
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl. | |
void | SetImage (CEikImage &aImage) |
Sets the button's image. | |
void | ReplaceImageByLabel () |
Replaces the buttons image with label. | |
TBool | IsImageOn () const |
Returns whether the button has image set. | |
void | ConstructEmptyButtonL () |
Constructs empty button with id EAknSoftkeyEmpty. | |
TBool | PressedDown () const |
Returns the state of CEikCbaButton . | |
void | SetPressedDownL (const TBool aPressedDown) |
Changes the state of CEikCbaButton . | |
Protected Member Functions | |
TInt | IndexFromCommandId (TInt aCommandId) |
Returns the button's index by command id. | |
void | UpdateLabelText (TPtrC aLabelText) |
Updates the label text with the given label. | |
Protected Attributes | |
TBuf< KMaxCbaLabelLength > | iFullLabelText |
TPtrC | iLongLabelText |
TPtrC | iShortLabelText |
CEikLabel * | iLabel |
CDesCArray * | iText |
CArrayFix< SButtonOptions > * | iButtonOptions |
CEikImage * | iImage |
const CFbsBitmap * | iMask |
Original mask for softkey image. | |
CFbsBitmap * | iSfeMask |
Feedback effects transparency mask for softkey image. | |
TBool | iDoImage |
TInt | iSpare |
TBool | iPressedDown |
Buttons state. | |
Data Structures | |
struct | SButtonOptions |
Holds information about command id and dimming status for a button. More... |
|
Destructor. |
|
Updates the label text with the given label.
|
|
Constructs empty button with id EAknSoftkeyEmpty. Reimplemented in CEikEnhancedCbaButton. |
|
Constructs the control from a resource file.
|
|
Constructs a new CBA button instance.
|
|
From CCoeControl. Handles pointer events.
|
|
Returns the button's index by command id.
|
|
Returns whether the button has image set.
|
|
From CCoeControl. Sets the control's minimum required size.
|
|
Pops a command from the button stack.
|
|
Returns the state of
|
|
Pushes a command into button stack.
|
|
Removes a command from the button stack.
|
|
Removes the previos command from the button stack. |
|
Replaces the buttons image with label. |
|
From CCoeControl. Sets the control's containing window by copying it from aContainer.
|
|
From CCoeControl. Sets the control to be dimmed.
|
|
Sets the button's image.
|
|
Sets the labels font.
|
|
Changes the state of Buttons state is stored in a member variable.
|
|
Switches the button's text to short or long depending on the parameter given.
|
|
Truncates the label. This is done by CEikLabel. |
|
Updates the label text with the given label.
|
|
|
|
|
|
|
|
Original mask for softkey image. |
|
Buttons state. |
|
Feedback effects transparency mask for softkey image. |
|
|
Reimplemented from CAknControl. |
|