API published in: S60 1st Ed
Link against: eikdlg.lib eikcoctl.lib
Required Capabilities
None
#include <eiktbar.h>
Inherits CEikControlGroup, and MEikButtonGroup.
It contains buttons which are used to issue application commands, and other controls. A toolband may also be created using
this class, by setting the EEikToolBarHorizontal
flag and initialising from a TOOLBAND
resource.
Public Member Functions |
|
IMPORT_C | ~CEikToolBar () |
Destructor. |
|
IMPORT_C | CEikToolBar () |
Default C++ constructor. |
|
IMPORT_C void | ConstructL (MEikCommandObserver *aCommandObserver, TInt aResourceId, const TRect &aBoundingRect) |
Completes construction of a default-constructed toolbar. |
|
IMPORT_C void | StaticConstructL (MEikCommandObserver *aCommandObserver, TInt aResourceId) |
Creates a toolbar from a resource definition, but does not set its extent or activate it. |
|
IMPORT_C void | SetCommandObserver (MEikCommandObserver *aCommandObserver) |
Sets the toolbar's command observer. |
|
IMPORT_C void | CoordinateButtons (TInt aId, TInt aCount, TEikButtonCoordinator *aCoordinator) |
Sets the button co-ordinator for a group of buttons in a toolbar. |
|
IMPORT_C void | SetButtonStateOn (TInt aId, TBool aState) |
Sets the state of the specified button and draws the button to show the new state. |
|
IMPORT_C TBool | DelayActivation () const |
Delays activation of the toolbar when constructed. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
Second-phase construction from a resource. |
|
IMPORT_C void | SetDimmed (TBool aDimmed) |
Sets the toolbar dimmed or not dimmed. |
|
IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
Gets the list of logical colours used to draw the control. |
|
IMPORT_C void | HandleResourceChange (TInt aType) |
Handles a change to the control's resources. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
Handles pointer events. |
|
IMPORT_C void | AddControlL (CCoeControl *aControl, TInt aId) |
Adds a control to the control group. |
|
IMPORT_C void | AddControlL (TEikGroupControl &aGroupControl) |
Adds a control wrapped with its ID and length to the control group. |
|
void | AddControlTypeL (TInt aType) |
Adds a control type to the control type array. |
|
void | RemoveControlType (TInt aIndex) |
Removes a control type from the control type array. |
|
TBool | ControlIsButton (TInt aIndex) const |
Used to check if a control is a button type control or not. |
|
IMPORT_C void | SetBoundingRect (const TRect &aBoundingRect) |
Sets the toolbar's bounding rectangle. |
|
IMPORT_C void | ReduceRect (TRect &aBoundingRect) const |
Shrinks a rectangle to exclude the toolbar area. |
|
Protected Member Functions |
|
IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
Writes the internal state of the control and its components to aWriteStream . |
|
Destructor. Deletes the toolbar's brush and pen context and control types. |
|
Default C++ constructor. Creates a new toolbar object, but does not initialise any of its heap-stored members. |
|
Adds a control wrapped with its ID and length to the control group.
From
Reimplemented from CEikControlGroup. |
|
Adds a control to the control group.
From
Reimplemented from CEikControlGroup. |
|
Adds a control type to the control type array. |
|
Second-phase construction from a resource.
This is called by
From
|
|
Completes construction of a default-constructed toolbar.
The command observer interface defines a method for creating custom controls on the toolbar from user-defined IDs specified
in the resource
IDs for controls which cannot be constructed using
Applications requiring custom controls in their toolbars should override their AppUI's
|
|
Used to check if a control is a button type control or not. |
|
Sets the button co-ordinator for a group of buttons in a toolbar.
|
|
Delays activation of the toolbar when constructed.
This function sets the toolbar flag
The application can subsequently activate the toolbar by calling
|
|
Gets the list of logical colours used to draw the control.
Appends the list to
From
Reimplemented from CEikControlGroup. |
|
Handles pointer events. This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. If overriding this method, the implementation must include a base call to this method.
From
Reimplemented from CEikControlGroup. |
|
Handles a change to the control's resources.
The types of resources handled are those which are shared across the environment, e.g. colours or fonts. For colour scheme
changes, If overriding this method, the implementation must include a base call to this method.
From
Reimplemented from CEikControlGroup. |
|
Shrinks a rectangle to exclude the toolbar area. This function reduces the size of the rectangle passed into the function so that on return, the area occupied by the toolbar or toolband is removed from the rectangle. It is provided to prevent drawing over an existing toolbar or toolband.
From
Implements MEikButtonGroup. |
|
Removes a control type from the control type array. |
|
Sets the toolbar's bounding rectangle. This function has a different effect on the toolbar's extent, depending on whether the toolbar is vertical or horizontal. For a vertical toolbar, sets the toolbar height to equal the height of the bounding rectangle. For a horizontal toolbar (toolband), sets the toolband width to equal the width of the bounding rectangle.
From
Implements MEikButtonGroup. |
|
Sets the state of the specified button and draws the button to show the new state.
|
|
Sets the toolbar's command observer. Applications will not typically need to use this function.
|
|
Sets the toolbar dimmed or not dimmed. Dimming usually indicates that user input is not accepted.
From
|
|
Creates a toolbar from a resource definition, but does not set its extent or activate it.
This function is used by
|
|
Writes the internal state of the control and its components to Does nothing in release mode. Designed to be overridden and base called from subclasses.
From
Reimplemented from CEikControlGroup. |