Link against: avkon.lib
None
#include <akntabgrp.h>
Inherits CAknControl, and MAknNaviDecoratorObserver.
Public Types |
|
| enum | TDirection { ELeft, ERight } |
| Directions in which the tab group focus can be moved. More... |
|
Public Member Functions |
|
| IMPORT_C | ~CAknTabGroup () |
| Destructor. |
|
| IMPORT_C TInt | AddTabL (TResourceReader &aReader) |
| Add a tab to the tab group from resources. |
|
| IMPORT_C void | AddTabL (TInt aTabId, const TDesC &aText) |
| Add a tab to the tab group. |
|
| IMPORT_C void | AddTabL (TInt aTabId, const TDesC &aText, const CFbsBitmap *aTabBitmap, const CFbsBitmap *aMask=NULL) |
| Add a tab to the tab group. |
|
| IMPORT_C void | AddTabL (TInt aTabId, const CFbsBitmap *aTabBitmap, const CFbsBitmap *aMask=NULL) |
| Add a tab to the tab group. |
|
| IMPORT_C void | ReplaceTabL (TResourceReader &aReader) |
| Replaces a tab with a new one from resources. |
|
| IMPORT_C void | ReplaceTabL (TInt aTabId, const TDesC &aText) |
| Replaces a tab with a new one. |
|
| IMPORT_C void | ReplaceTabL (TInt aTabId, const TDesC &aText, const CFbsBitmap *aTabBitmap, const CFbsBitmap *aMask=NULL) |
| Replaces a tab with a new one. |
|
| IMPORT_C void | ReplaceTabL (TInt aTabId, const CFbsBitmap *aTabBitmap, const CFbsBitmap *aMask=NULL) |
| Replaces a tab with a new one. |
|
| IMPORT_C void | ReplaceTabTextL (TInt aTabId, const TDesC &aTabText) |
| Replaces a tab text with a new one. |
|
| IMPORT_C void | DeleteTabL (TInt aTabId) |
| Delete a tab from the tab group. |
|
| IMPORT_C void | SetActiveTabById (TInt aTabId) |
| Activate (highlight) a tab. |
|
| IMPORT_C void | SetActiveTabByIndex (TInt aTabIndex) |
| Activate (highlight) a tab. |
|
| IMPORT_C TInt | ActiveTabId () const |
| Returns the ID of the currently active (highlighted) tab. |
|
| IMPORT_C TInt | ActiveTabIndex () const |
| Returns the index of the currently active (highlighted) tab. |
|
| IMPORT_C void | SetTabFixedWidthL (TInt aWidth) |
| Set width of each tab. |
|
| IMPORT_C void | DimTab (TInt aTabId, TBool aDimmed) |
| Sets a tab dimmed/not dimmed. |
|
| virtual IMPORT_C TBool | IsTabDimmed (TInt aTabId) const |
| Used to check whether or not a tab is dimmed. |
|
| virtual IMPORT_C TInt | TabIndexFromId (TInt aTabId) const |
| Returns the index of a tab. |
|
| virtual IMPORT_C TInt | TabIdFromIndex (TInt aTabIndex) const |
| Returns the ID of a tab. |
|
| virtual IMPORT_C TInt | TabCount () const |
| Number of tabs in the tab group. |
|
| IMPORT_C void | SetObserver (MAknTabObserver *aObserver) |
| Sets the tab observer for this tab group. |
|
| virtual IMPORT_C TSize | MinimumSize () |
| Return minimum size of the control. |
|
| virtual IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
| Handles key events. |
|
| virtual IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
| Gets the list of logical colors employed in the drawing of the control, paired with an explanation of how they are used.
|
|
| void | HandleResourceChange (TInt aType) |
| Handles a change to the control's resources. |
|
| IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
| Handles pointer events in tabs. |
|
| virtual IMPORT_C void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
| Handles an event from an observed control. |
|
| virtual IMPORT_C void | PrepareContext (CWindowGc &aGc) const |
| Allows to modify graphics context before Draw. |
|
| virtual IMPORT_C void | HandleNaviDecoratorEventL (TInt aEventID) |
| Method for handling events in observed classes. |
|
| IMPORT_C void | SetTabMultiColorMode (TInt aTabId, TBool aMultiColor) |
| Sets the multi-color drawing mode of a tab. |
|
| void | SetDecoratorLayout (TBool aNarrow) |
| Sets the navigation decorator layout so that it corresponds the current tab group layout. |
|
| void | SetNarrowTabLayoutL (TBool aNarrow, TBool aUseAnimation=EFalse) |
| void | SetNaviArrowsVisible (TBool aVisible) |
Static Public Member Functions |
|
| static IMPORT_C CAknTabGroup * | NewL (const CCoeControl &aParent) |
| Creates new tab group. |
|
| static IMPORT_C CAknTabGroup * | NewLC (const CCoeControl &aParent) |
| Creates new tab group and pushes it to the clean up stack. |
|
Protected Member Functions |
|
| virtual IMPORT_C void | SizeChanged () |
| Handles the size change events. |
|
| virtual IMPORT_C TInt | CountComponentControls () const |
| Returns number of controls inside this control. |
|
| virtual IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
| Returns a component control determined by control index. |
|
| virtual IMPORT_C void | FocusChanged (TDrawNow aDrawNow) |
| This is called when the focus is changed. |
|
| void | ReverseTabOrderL () |
| Reverse the order of tabs in tab array. |
|
|
|
Directions in which the tab group focus can be moved. |
|
|
Destructor. |
|
|
Returns the ID of the currently active (highlighted) tab.
|
|
|
Returns the index of the currently active (highlighted) tab.
|
|
||||||||||||||||
|
Add a tab to the tab group.
|
|
||||||||||||||||||||
|
Add a tab to the tab group.
|
|
||||||||||||
|
Add a tab to the tab group.
|
|
|
Add a tab to the tab group from resources.
|
|
|
Returns a component control determined by control index.
|
|
|
Returns number of controls inside this control.
|
|
|
Delete a tab from the tab group.
|
|
||||||||||||
|
Sets a tab dimmed/not dimmed.
|
|
|
This is called when the focus is changed.
|
|
|
Gets the list of logical colors employed in the drawing of the control, paired with an explanation of how they are used.
Appends the list into
|
|
||||||||||||
|
Handles an event from an observed control.
|
|
|
Method for handling events in observed classes.
Implements MAknNaviDecoratorObserver. |
|
|
Handles pointer events in tabs.
|
|
|
Handles a change to the control's resources.
|
|
|
Used to check whether or not a tab is dimmed.
|
|
|
Return minimum size of the control.
|
|
|
Creates new tab group.
|
|
|
Creates new tab group and pushes it to the clean up stack.
|
|
||||||||||||
|
Handles key events.
|
|
|
Allows to modify graphics context before Draw.
|
|
||||||||||||||||
|
Replaces a tab with a new one.
|
|
||||||||||||||||||||
|
Replaces a tab with a new one.
|
|
||||||||||||
|
Replaces a tab with a new one.
|
|
|
Replaces a tab with a new one from resources. Tab with same ID is replaced.
|
|
||||||||||||
|
Replaces a tab text with a new one.
|
|
|
Reverse the order of tabs in tab array. |
|
|
Activate (highlight) a tab.
|
|
|
Activate (highlight) a tab.
|
|
|
Sets the navigation decorator layout so that it corresponds the current tab group layout.
|
|
||||||||||||
|
|
|
Sets the tab observer for this tab group.
|
|
|
Set width of each tab. This width determines what tab layout is used. To get a specific tab layout, use the following constants:
|
|
||||||||||||
|
Sets the multi-color drawing mode of a tab. This should be called after adding a tab to the tab group if the icon in the tab should be drawn as multi-colored. The tab icon will be drawn using a color specified in the active skin if multi-color mode is not defined. This function should be called right after a tab containing a multi-color icon is added to the tab group.
|
|
|
Handles the size change events. |
|
|
Number of tabs in the tab group.
|
|
|
Returns the ID of a tab.
|
|
|
Returns the index of a tab.
|