class MEikButtonGroup |
Abstract base class for EIKON button group.
eikcoctl.lib S60 0.9
Private Member Functions | |
---|---|
IMPORT_C void | Reserved_1() |
void | AddCommandL | ( | TInt | aPosition, |
TInt | aCommandId, | |||
const TDesC * | aText, | |||
const CFbsBitmap * | aBitmap, | |||
const CFbsBitmap * | aMask | |||
) | [pure virtual] |
Adds a command button with a command ID and a label containing both a bitmap and text.
TInt aPosition | The position in the button group for the new button. |
TInt aCommandId | Command ID for the new button. |
const TDesC * aText | Text for the button. |
const CFbsBitmap * aBitmap | Bitmap for the button. |
const CFbsBitmap * aMask | Mask bitmap for aBitmap. |
void | AddCommandSetToStackL | ( | TInt | aResourceId | ) | [pure virtual] |
As with SetCommandL() but for a set of buttons, also allows the previous command button to be retrieved by calling RemoveCommand().
TInt aResourceId | Resource describing the set of command buttons. |
void | AddCommandToStackL | ( | TInt | aPosition, |
TInt | aCommandId, | |||
const TDesC * | aText, | |||
const CFbsBitmap * | aBitmap, | |||
const CFbsBitmap * | aMask | |||
) | [pure virtual] |
Pushes a command button with text, bitmap, mask and a command ID onto a position's button stack.
TInt aPosition | The position in the button group at which to add the command button. |
TInt aCommandId | Command ID the button will send. |
const TDesC * aText | Text for the button. |
const CFbsBitmap * aBitmap | Bitmap for the button. |
const CFbsBitmap * aMask | Mask bitmap for aBitmap. |
void | AddCommandToStackL | ( | TInt | aPosition, |
TInt | aResourceId | |||
) | [pure virtual] |
Pushes a command button onto a position's button stack. The text, bitmap, mask and command ID are all read from resource.
IMPORT_C void | AnimateCommand | ( | TInt | aCommandId | ) | [virtual] |
Animates the button with the specified id.
TInt aCommandId | The button to animate. |
void | AnimateCommandByPosition | ( | TInt | aPosition | ) | [pure virtual] |
Animates the button with position aPosition.
TInt aPosition | The position for command to be animated. |
CCoeControl * | AsControl | ( | ) | [pure virtual] |
Returns the button group as a control.
The button group as a control.
const CCoeControl * | AsControl | ( | ) | const [pure virtual] |
Returns the button group as a control.
The button group as a control.
TInt | ButtonCount | ( | ) | const [pure virtual] |
Gets the total number of buttons currently present in the group.
The number of buttons.
TUint | ButtonGroupFlags | ( | ) | const [pure virtual] |
Gets the button group flags.
The button group flags.
TSize | CalcMinimumSizeL | ( | TInt | aResourceId | ) | [pure virtual] |
Calculates minimum size required to display the buttons defined in the specified resource structure.
Minimum size required to display the button group defined in the specified resource structure.
TInt aResourceId | The ID of the resource structure describing the button group. |
TInt | CommandId | ( | TInt | aCommandPos | ) | const [pure virtual] |
Returns the command id by position.
The command id.
TInt aCommandPos | The command's position. |
TInt | CommandPos | ( | TInt | aCommandId | ) | const [pure virtual] |
Returns the command position by command id.
The command position in the button group.
TInt aCommandId | The button's command id. |
void | DimCommand | ( | TInt | aCommandId, |
TBool | aDimmed | |||
) | [pure virtual] |
Dims or undims a button without drawing it.
void | DimCommandByPosition | ( | TInt | aPosition, |
TBool | aDimmed | |||
) | [pure virtual] |
Dims (but doesn't draw) the button with position aPosition.
CEikCommandButton * | GroupControlAsButton | ( | TInt | aCommandId | ) | const [pure virtual] |
Returns a group control (a button) as a command button.
The group control as a command button.
TInt aCommandId | The button's command id. |
CCoeControl * | GroupControlById | ( | TInt | aCommandId | ) | const [pure virtual] |
Returns a group control (a button) as a control.
The group control as a control.
TInt aCommandId | The button's command id. |
TBool | IsCommandDimmed | ( | TInt | aCommandId | ) | const [pure virtual] |
Determines whether the button with the specified command ID is dimmed.
ETrue if the specified command is dimmed. EFalse if the specified command is not dimmed.
TInt aCommandId | The command ID. |
TBool | IsCommandDimmedByPosition | ( | TInt | aPosition | ) | const [pure virtual] |
Returns ETrue if the button with position aPosition is dimmed.
The state of the button.
TInt aPosition | The position for command to be checked. |
TBool | IsCommandVisible | ( | TInt | aCommandId | ) | const [pure virtual] |
Tests whether the button with the specified command ID is visible.
ETrue if the specified button is visible. EFalse if the specified button is not visible.
TInt aCommandId | Specifies the button. |
TBool | IsCommandVisibleByPosition | ( | TInt | aPosition | ) | const [pure virtual] |
Returns ETrue if the button with position aPosition is visible.
The state of the button.
TInt aPosition | The position for command to be checked. |
void | MakeCommandVisible | ( | TInt | aCommandId, |
TBool | aVisible | |||
) | [pure virtual] |
Makes the button with the specified id either visible, or invisible.
void | MakeCommandVisibleByPosition | ( | TInt | aPosition, |
TBool | aVisible | |||
) | [pure virtual] |
Sets the the button with position aPosition to be visible if aVisible is ETrue.
void | ReduceRect | ( | TRect & | aBoundingRect | ) | const [pure virtual] |
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.
TRect & aBoundingRect | Rectangle to be modified. |
void | RemoveCommandFromStack | ( | TInt | aPosition, |
TInt | aCommandId | |||
) | [pure virtual] |
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.
void | SetBoundingRect | ( | const TRect & | aBoundingRect | ) | [pure virtual] |
Sets the boundary rectangle for externally-positioned button groups. For use by EExternal button groups only.
const TRect & aBoundingRect | The boundary rectangle to use. The button group attaches itself to the inside of this rectangle. |
void | SetCommandL | ( | TInt | aPosition, |
TInt | aCommandId, | |||
const TDesC * | aText, | |||
const CFbsBitmap * | aBitmap, | |||
const CFbsBitmap * | aMask | |||
) | [pure virtual] |
Sets a command button's bitmap, text and command ID.
TInt aPosition | The position within the button group of the button to change. |
TInt aCommandId | Command ID the button will send. |
const TDesC * aText | The text for the button. |
const CFbsBitmap * aBitmap | The bitmap for the button. |
const CFbsBitmap * aMask | The mask bitmap for aBitmap. |
void | SetCommandL | ( | TInt | aPosition, |
TInt | aResourceId | |||
) | [pure virtual] |
Sets a command button's bitmap, text label and command ID. The bitmap, mask, text and command ID are all read from resource.
void | SetCommandSetL | ( | TInt | aResourceId | ) | [pure virtual] |
Initialises the group of command buttons from a resource.
TInt aResourceId | ID of the resource structure specifying the command buttons. |
void | SetDefaultCommand | ( | TInt | aCommandId | ) | [pure virtual] |
Sets the default command ID for buttons in this button group.
TInt aCommandId | Command to issue if no other is specified. |
void | SetMSKCommandObserver | ( | MEikCommandObserver * | aCommandObserver | ) | [pure virtual] |
Sets the middle softkey command observer.
MEikCommandObserver * aCommandObserver | The middle softkey command observer. |