API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknnavide.h>
Inherits CAknControl, and MAknNavigationDecoratorInterface.
The class, for example, decorates navigation pane controls with navi arrows.
Public Types |
|
enum | TScrollButton { ELeftButton = 0x0001, ERightButton = 0x0002 } |
Defines scroll buttons. More... |
|
enum | TControlType { ENotSpecified, ETabGroup, ENaviLabel, ENaviImage, EHintText, EEditorIndicator, ENaviVolume } |
Defines type of the decorated control. More... |
|
enum | TAknNaviControlLayoutStyle { ENaviControlLayoutNormal = 0x1, ENaviControlLayoutNarrow = 0x2, ENaviControlLayoutWide = 0x4 } |
Defines the navigation control layout style. More... |
|
enum | TAknNaviControlLayoutMode { ENaviControlLayoutModeAutomatic = 0x400, ENaviControlLayoutModeForced = 0x800 } |
Defines the navigation control layout mode. More... |
|
Public Member Functions |
|
IMPORT_C | ~CAknNavigationDecorator () |
Destructor. |
|
IMPORT_C CCoeControl * | DecoratedControl () |
Returns the control inside a navigation decorator object. |
|
IMPORT_C void | MakeScrollButtonVisible (TBool aVisible) |
Shows or hides the navigation arrows at the both ends of the navigation pane when current object is shown. |
|
IMPORT_C TBool | ScrollButtonVisible () const |
Gets the State of the visibility of navigation arrows. |
|
IMPORT_C void | SetScrollButtonDimmed (TScrollButton aButton, TBool aDimmed) |
Sets the navigation arrow dimmed (and highlighted). |
|
IMPORT_C TBool | IsScrollButtonDimmed (TScrollButton aButton) const |
Is button dimmed or highlighted. |
|
IMPORT_C void | SetControlType (TControlType aType) |
Sets the type of the decorated control. |
|
IMPORT_C TControlType | ControlType () const |
Returns the type of the decorated control. |
|
virtual IMPORT_C void | SetNaviDecoratorObserver (MAknNaviDecoratorObserver *aObserver) |
Sets observer for navigation decorator events in the decorated control. |
|
void | SetNaviStack (CAknNavigationControlContainer *aContainer) |
Sets the pointer to the default navigation pane control. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
IMPORT_C void | SetNaviControlLayoutStyle (TAknNaviControlLayoutStyle aStyle) |
Sets the layout style for this objects decorated control. |
|
IMPORT_C TAknNaviControlLayoutStyle | NaviControlLayoutStyle () |
Gets the current layout style of this objects decorated control (ENaviControlLayoutNormalm ENaviControlLayoutNarrow or ENaviControlLayoutWide ). |
|
IMPORT_C TBool | NaviControlLayoutStyleSupported (TAknNaviControlLayoutStyle aStyle) |
Tells if decorated control supports given layout style at the current statuspane layout. |
|
IMPORT_C void | SetNaviControlLayoutMode (TAknNaviControlLayoutMode aMode) |
Sets the layout mode ENaviControlLayoutModeAutomatic or ENaviControlLayoutModeForced . |
|
IMPORT_C TAknNaviControlLayoutMode | NaviControlLayoutMode () |
Gets the current layout mode of decorated control. |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
Handles a change to the control's resources of type aType which are shared across the environment, e.g. |
|
Static Public Member Functions |
|
static IMPORT_C CAknNavigationDecorator * | NewL (CAknNavigationControlContainer *aNavigationControlContainer, CCoeControl *aDecoratedControl, TControlType aType=ENotSpecified) |
Creates a new navigation decorator. |
|
static TRect | DecoratedControlRect (TInt aControlType) |
Gets the default rectangle of the given control type. |
|
static TRect | DecoratedControlNarrowRect (TInt aControlType) |
Gets the default rectangle of the navigation pane's default control. |
|
static TRect | DecoratedTabControlRect (TBool aTopAdjacent) |
Gets the default rect of tab group control type relative to navipane in normal layoutstyle (ENaviControlLayoutNormal ). |
|
Protected Member Functions |
|
virtual IMPORT_C void | SizeChanged () |
From CCoeControl . |
|
virtual IMPORT_C TInt | CountComponentControls () const |
From CCoeControl . |
|
virtual IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
From CCoeControl . |
|
IMPORT_C void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
From MCoeControlObserver . |
|
Protected Attributes |
|
CCoeControl * | iDecoratedControl |
Decorated control. |
|
CAknNavigationControlContainer * | iContainer |
Navigation pane default control. |
|
MAknNaviDecoratorObserver * | iNaviDecoratorObserver |
Observer for handling decorator events. |
|
Friends |
|
class | CAknNavigationControlContainer |
|
|
Defines the navigation control layout style.
|
|
Defines type of the decorated control. |
|
Defines scroll buttons. |
|
Destructor. |
|
From Returns a control determined by control id.
|
|
Returns the type of the decorated control.
|
|
From Returns the number of controls inside the context pane control.
|
|
Returns the control inside a navigation decorator object. Ownership of the control is not changed.
Implements MAknNavigationDecoratorInterface. |
|
Gets the default rectangle of the navigation pane's default control.
|
|
Gets the default rectangle of the given control type.
|
|
Gets the default rect of tab group control type relative to navipane in normal layoutstyle (
|
|
From Handles an event from an observed control.
|
|
From Handle pointer events.
|
|
Handles a change to the control's resources of type aType which are shared across the environment, e.g. color scheme change.
|
|
Is button dimmed or highlighted.
|
|
Shows or hides the navigation arrows at the both ends of the navigation pane when current object is shown.
|
|
Gets the current layout mode of decorated control.
Can be
|
|
Gets the current layout style of this objects decorated control (
|
|
Tells if decorated control supports given layout style at the current statuspane layout.
For
|
|
Creates a new navigation decorator. The object takes ownership of the decorated object at the beginning of the method before any leaving functions.
|
|
Gets the State of the visibility of navigation arrows.
|
|
Sets the type of the decorated control.
|
|
Sets the layout mode
See
|
|
Sets the layout style for this objects decorated control. The layout style can be normal or narrow style.
The style is really applied if the decorated control supports it or if the layout mode has been set to forced mode (
Whether decorated control supports or does not support given style at the currently active statuspane layout can be queried
using
|
|
Sets observer for navigation decorator events in the decorated control.
|
|
Sets the pointer to the default navigation pane control.
|
|
Sets the navigation arrow dimmed (and highlighted). Arrows have to be visible so that the dimmed arrow is shown on the screen.
|
|
From Handles the size change events. |
|
|
Navigation pane default control. |
|
Decorated control. Own. |
|
Observer for handling decorator events. |