API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcdlg.lib
Required Capabilities
None
#include <aknnotecontrol.h>
Inherits CAknControl.
Manage layout of elements in a note dialog:- the text, the image and animation, the progress bar.
Public Member Functions |
|
IMPORT_C | CAknNoteControl () |
C++ default constructor. |
|
virtual IMPORT_C | ~CAknNoteControl () |
Destructor. |
|
void | ConstructFromResourceL (TResourceReader &aRes) |
Constructs controls from a resource file. |
|
IMPORT_C void | SetImageL (CEikImage *aImage) |
Set the note image. |
|
IMPORT_C void | SetAnimationL (TInt aResource) |
Set the note animation. |
|
IMPORT_C void | SetIconL (CEikImage *aIcon) |
Set the note icon. |
|
IMPORT_C void | SetFinalProgressValue (TInt aValue) |
Set the progress bar final value in the note attributes. |
|
IMPORT_C TInt | IncrementBarsAndDraw (TInt aIncrement) |
Increment the progress bar and draw. |
|
IMPORT_C void | CreateProgressBarL () |
Create the progress bar. |
|
IMPORT_C CEikProgressInfo * | GetProgressInfo () |
Return the progress bar. |
|
IMPORT_C void | StartAnimationL () |
Start the note animation. |
|
IMPORT_C TInt | CancelAnimation () |
Stop the note animation. |
|
IMPORT_C void | ResetText () |
Reset the note text. |
|
IMPORT_C void | SetTextL (const TDesC &aText) |
Set whole text for the note control. |
|
IMPORT_C void | SetTextL (const TDesC &aText, TInt aLineNum) |
Set text for a specific line. |
|
IMPORT_C void | SetTextNumberL (const TInt aNumber) |
Set the number inside the note text. |
|
IMPORT_C void | SetTextPluralityL (const TBool aIsPlural) |
Determine which text is to be used, either the text for singular notes, e.g. |
|
IMPORT_C TInt | NumberOfLines () const |
Return the number of lines. |
|
IMPORT_C void | Layout () |
Do layout. |
|
void | WindowLayout (TAknWindowLineLayout &aLayout) const |
This is used by a dialog to layout the control correctly. |
|
IMPORT_C TInt | NoteHeight () const |
Return the note height. |
|
IMPORT_C TInt | NoteWidth () const |
Return the note width. |
|
TSize | MinimumSize () |
Gets the minimun size requided by the control. |
|
CAknNoteAttributes * | Attributes () const |
Accessor to note attributes stored in CAknNoteAttributes . |
|
void | Reset () |
Used by sleeping notes when going to background, in order to stop and delete animations. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
IMPORT_C void | SetDynamicTextL (const TDesC &aText) |
IMPORT_C void | UpdateAndFormatLabelsL (const TDesC &aLabels) |
IMPORT_C void | UpdateLabelsL (const TDesC &aLabel1, const TDesC &aLabel2=KNullDesC, const TDesC &aLabel3=KNullDesC) |
IMPORT_C void | UpdateLabels (const TDesC &aLabel1, const TDesC &aLabel2=KNullDesC, const TDesC &aLabel3=KNullDesC) |
IMPORT_C void | SetLabelReserveLengthL (TInt aLength1=0, TInt aLength2=0, TInt aLength3=0) |
IMPORT_C void | SetBgRect (const TRect &aRect, const TPoint &aPos, TBool aOwnerNotDialog=EFalse) |
Sets up background rectangle context. |
|
TInt | NoteLayout () const |
Protected Member Functions |
|
IMPORT_C TTypeUid::Ptr | MopSupplyObject (TTypeUid aId) |
From MObjectProvider . |
|
Friends |
|
class | CAknNoteAttributes |
Data Structures |
|
class | TIndex |
Manage indexes into LAF tables. More... |
|
C++ default constructor. |
|
Destructor. |
|
Accessor to note attributes stored in
|
|
Stop the note animation.
Calls
|
|
Constructs controls from a resource file.
|
|
Create the progress bar.
|
|
Return the progress bar.
|
|
|
Increment the progress bar and draw.
|
|
Do layout. Before doing layout parse the text (This might be redundant except when the control attributs are trasfered but is left here to avoid breaking the functionality of this exported method). Layout is done only if it is needed, i.e. if the attributes indicates that something has changed in such a way that layout needs to be performed again, e.g. a line of text has been added. This method assumes that the rect of the control has not been changed. On the contrary, SizeChanged does not assume that the rect is the same and hence always performs layout. |
|
Gets the minimun size requided by the control.
|
|
From
Gets an (
|
|
Return the note height. The note height is taken from the layout compiler and depends on number of lines and the note layout type.
|
|
|
|
Return the note width. The note width is taken from the layout compiler. Contrary to the note height, the note width does not depend on the note layout type or on number of lines.
|
|
Return the number of lines.
|
|
Used by sleeping notes when going to background, in order to stop and delete animations.
Calls |
|
Reset the note text. Perform layout only for the control. The dialog will not be resized.
|
|
Set the note animation. Set the animation in the note attributes. Perform layout only for the control. The dialog will not be resized.
|
|
Sets up background rectangle context.
|
|
|
|
Set the progress bar final value in the note attributes.
|
|
Set the note icon. Set the icon in the note attributes. Perform layout only for the control. The dialog will not be resized.
|
|
Set the note image. Set the image in the note attributes. This reduces the size of the image if necessary (only fixed set of image sizes if supported). Perform layout only for the control. The dialog will not be resized.
|
|
|
|
Set text for a specific line. Any previous text will be overwritten, except for the text that was set for other lines via this method.
This method prevents
This method is kept for backwards compatibility as the same results could be achieved by the other Perform layout only for the control. The dialog will not be resized.
|
|
Set whole text for the note control. Perform layout only for the control. The dialog will not be resized.
|
|
Set the number inside the note text.
The text must have been previously set via resource or via
Note:- This method could be replaced by a Perform layout only for the control. The dialog will not be resized.
|
|
Determine which text is to be used, either the text for singular notes, e.g. "You have 1 new message" or the text for plural notes, e.g. "You have %N new messages". These texts must have been set via resource.
Note:- This method could be replaced by a Perform layout only for the control. The dialog will not be resized.
|
|
Start the note animation.
|
|
|
|
|
|
|
|
This is used by a dialog to layout the control correctly.
|
|