Link against: avkon.lib eikcoctl.lib
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 previous 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. |
|
| TBool | IsEmptyText () const |
| Checks if text is empty in this button. |
|
| 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 | SetPressedDown (const TBool aPressedDown) |
Changes the state of CEikCbaButton. |
|
| void | SetTextBitmapMode (TBool aEnableBitmap) |
| Enables bitmap mode and hides the label. |
|
| void | DrawToContext (CBitmapContext &aContext, CBitmapContext &aMaskContext, const TPoint &aOffset) const |
| Draws the button text and mask to give graphics contexts. |
|
| TPtrC | GetFullLabelText () |
| Returns the textual value of the button. |
|
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 |
| TBool | iUseTextBitmap |
| ETrue if should use text bitmap mode. |
|
| 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.
|
|
||||||||||||||||
|
Draws the button text and mask to give graphics contexts. Background is not drawn. |
|
|
Returns the textual value of the button. |
|
|
From CCoeControl. Handles pointer events.
|
|
|
Returns the button's index by command id.
|
|
|
Checks if text is empty in this button. |
|
|
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 previous 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 Button's state is stored in a member variable.
|
|
|
Enables bitmap mode and hides the label. The text is drawn by CEikCba in bitmap mode. |
|
|
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. |
|
|
|
|
ETrue if should use text bitmap mode. |