#include <mw/AknPopupField.h>
| class CAknPopupField : public CEikBorderedControl |
| Protected Attributes | |
|---|---|
| CAsyncCallBack * | iAttemptExitAsync |
| CAknPopupFieldBitmapButton * | iButton |
| CEikButtonGroupContainer * | iCba |
| TAknDesCArrayDecorator | iDecorator |
| TInt | iEmptyNoteResourceId |
| CAknNoteDialog::TTimeout | iEmptyNoteTimeout |
| CAknNoteDialog::TTone | iEmptyNoteTone |
| HBufC * | iEmptyText |
| TInt | iFlags |
| EAknFormMode | iFormMode |
| HBufC * | iInvalidText |
| CEikLabel * | iLabel |
| CAknListBoxLayoutDecorator * | iLayoutDecorator |
| TInt | iMaxNoLines |
| MAknPopupFieldObserver * | iObserver |
| HBufC * | iOtherText |
| CAknFormGraphicStyleListBox * | iSelectionList |
| EAknPopupFieldSelectionMode | iSelectionMode |
| MAknQueryValue * | iValue |
| TInt | iWidth |
| Public Member Enumerations | |
|---|---|
| enum | EAknFormMode { EAknFormModeView, EAknFormModeEdit, EAknFormModeViewWideWithGraphic, EAknFormModeViewWideWithoutGraphic, ..., EAknFormModeEditWideWithoutGraphic } |
| enum | EAknPopupFieldSelectionMode { EAknPopupFieldLabelMode, EAknPopupFieldSelectionListMode } |
| Protected Member Functions | |
|---|---|
| void | CommonConstructL() |
| virtual IMPORT_C CCoeControl * | ComponentControl(TInt) |
| virtual IMPORT_C TInt | CountComponentControls() |
| virtual IMPORT_C void | Draw(const TRect &) |
| virtual IMPORT_C void | FocusChanged(TDrawNow) |
| IMPORT_C void | HandleControlEventL(CCoeControl *, TCoeEvent) |
| IMPORT_C void | HandleListBoxEventL(CEikListBox *, TListBoxEvent) |
| IMPORT_C TTypeUid::Ptr | MopSupplyObject(TTypeUid) |
| IMPORT_C void | ProcessCommandL(TInt) |
| virtual IMPORT_C void | SizeChanged() |
| Inherited Attributes | |
|---|---|
| CCoeControl::iCoeEnv | |
| CCoeControl::iContext | |
| CCoeControl::iPosition | |
| CCoeControl::iSize | |
| CEikBorderedControl::iBorder | |
| Inherited Enumerations | |
|---|---|
| CCoeControl:TZoomType | |
Represents a combo box type control, used to implement the Series 60 pop-up field.
| CAsyncCallBack * | iAttemptExitAsync | [protected] |
Active object for calling AttemptExitCallbackL asynchronously. Own.
| HBufC * | iInvalidText | [protected] |
The invalid text. Used in the view state when none of the elements in the list are available. Own.
| CAknListBoxLayoutDecorator * | iLayoutDecorator | [protected] |
Contains a popup field selection array and a leading text that will be inserted before the text from the descriptor array entry. Own.
| MAknPopupFieldObserver * | iObserver | [protected] |
Observer for receiving events from the popup field. Not own.
| CAknFormGraphicStyleListBox * | iSelectionList | [protected] |
List box for the popup field usage. Own.
| EAknPopupFieldSelectionMode | iSelectionMode | [protected] |
Enumeration representing selection mode values.
Form mode for the popup field.
Selection mode of the popup field.
| IMPORT_C void | ActivateSelectionListL | ( | ) |
Causes a list of pre-defined values to appear. Use this method to activate the pop-up field from a menu option command. Note that the desired control must be focused on before it can be activated.
| void | CommonConstructL | ( | ) | [protected] |
Construction tasks common to both a normal construction and a construction from a resource. Used from ConstructL() and ConstructFromResourceL().
| IMPORT_C CCoeControl * | ComponentControl | ( | TInt | aIndex | ) | const [protected, virtual] |
Reimplemented from CCoeControl::ComponentControl(TInt)const
From CCoeControl.
Gets an indexed component of a compound control.
| Parameter | Description |
|---|---|
| aIndex | Control index. |
Returns: The component control with an index of aIndex.
| IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)
From CCoeControl.
Constructs the control from a resource file.
| Parameter | Description |
|---|---|
| aReader | The resource reader pointing to the popup field resource. |
| IMPORT_C TInt | CountComponentControls | ( | ) | const [protected, virtual] |
Reimplemented from CCoeControl::CountComponentControls()const
From CCoeControl.
Gets the number of controls contained in a compound control.
Returns: The number of component controls contained by this control.
| IMPORT_C void | Draw | ( | const TRect & | aRect | ) | const [protected, virtual] |
Reimplemented from CEikBorderedControl::Draw(const TRect &)const
From CEikBorderedControl.
Called by the framework to draw the control.
| Parameter | Description |
|---|---|
| aRect | Rectangle in which the Cone framework believes drawing is needed. |
| IMPORT_C void | FocusChanged | ( | TDrawNow | aDrawNow | ) | [protected, virtual] |
Reimplemented from CCoeControl::FocusChanged(TDrawNow)
From CCoeControl.
Responds to a change in focus.
| Parameter | Description |
|---|---|
| aDrawNow | Contains the value that was passed to it by SetFocus(). |
| IMPORT_C void | HandleControlEventL | ( | CCoeControl * | aControl, |
| TCoeEvent | aEvent | |||
| ) | [protected] | |||
From MCoeControlObserver.
Handles an event from an observed control.
| Parameter | Description |
|---|---|
| aControl | The control that sent the event. |
| aEvent | The event type. |
| IMPORT_C void | HandleListBoxEventL | ( | CEikListBox * | aListBox, |
| TListBoxEvent | aEventType | |||
| ) | [protected] | |||
From MEikListBoxObserver.
Processes key events from the listbox. Responds to EEventEnterKeyPressed to accept the pop-up.
| Parameter | Description |
|---|---|
| aListBox | Listbox being observed. |
| aEventType | Event observed. |
| IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CEikBorderedControl::HandlePointerEventL(const TPointerEvent &)
From CCoeControl.
Handles pointer events of popup field list.
| Parameter | Description |
|---|---|
| aPointerEvent | The pointer event to be handled. |
| IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
Reimplemented from CEikBorderedControl::HandleResourceChange(TInt)
From CCoeControl.
Handles a change to the control's resources.
| Parameter | Description |
|---|---|
| aType | The type of the resource change. |
| IMPORT_C TSize | MinimumSize | ( | ) | [virtual] |
Reimplemented from CCoeControl::MinimumSize()
From CCoeControl.
Determines the minimum size of the control.
Returns: The minimum size required by the control.
| IMPORT_C TTypeUid::Ptr | MopSupplyObject | ( | TTypeUid | aId | ) | [protected] |
Reimplemented from CCoeControl::MopSupplyObject(TTypeUid)
From CCoeControl.
Retrieves an object of the same type as that encapsulated in aId.
| Parameter | Description |
|---|---|
| aId | An encapsulated object type ID. |
Returns: Encapsulates the pointer to the object provided. Note that the encapsulated pointer may be NULL.
| IMPORT_C TInt | NumLines | ( | ) | const |
Number of lines used.
Returns: Number of entries on the selection list. If selection list is not active, 1 is returned. NOTE that the number is limited by KAknMaxEditorLines.
| IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
| TEventCode | aType | |||
| ) | [virtual] | |||
Reimplemented from CCoeControl::OfferKeyEventL(const TKeyEvent &,TEventCode)
From CCoeControl.
Handles key events.
| Parameter | Description |
|---|---|
| aKeyEvent | The key event. |
| aType | The type of key event. |
Returns: Indicates whether or not the key event was used by this control.
| IMPORT_C void | ProcessCommandL | ( | TInt | aCommandId | ) | [protected] |
From MEikCommandObserver.
Processes events from the softkeys. Responds to EAknSoftkeyOk and EAknSoftkeyCancel to accept or cancel the pop-up.
| Parameter | Description |
|---|---|
| aCommandId | Event Id from the soft-key. |
| IMPORT_C void | SetAllowsUserDefinedEntry | ( | TBool | aAllows | ) |
Sets a flag that enables user defined entry. Note that flag can also be set from resources, but this method allows behaviour to be changed at runtime.
| Parameter | Description |
|---|---|
| aAllows | if ETrue sets a flag. |
| IMPORT_C void | SetEmptyListNoteL | ( | TInt | aResourceId, |
| CAknNoteDialog::TTimeout | aTimeout = CAknNoteDialog::EShortTimeout, | |||
| CAknNoteDialog::TTone | aTone = CAknNoteDialog::ENoTone | |||
| ) | ||||
Sets the note to be displayed when the selection list has no items available.
| Parameter | Description |
|---|---|
| aResourceId | Resource id for the note. |
| aTimeout | = CAknNoteDialog::EShortTimeout Timeout for the note. |
| aTone | = CAknNoteDialog::ENoTone Tone for the note. |
| IMPORT_C void | SetEmptyTextL | ( | const TDesC & | aEmptyText | ) |
Sets the empty list note text. This note is displayed when the selection list has no items available.
| Parameter | Description |
|---|---|
| aEmptyText | The empty list note text. |
| IMPORT_C void | SetFont | ( | const CFont * | aFont | ) |
Sets the font of the contained label.
| Parameter | Description |
|---|---|
| aFont | Font definition used to set the font of the contained label. |
| IMPORT_C void | SetFormFieldRect | ( | TRect | aFormFieldRect | ) |
Sets a form field rectangle so that a popup field can correctly position the label.
| Parameter | Description |
|---|---|
| aFormFieldRect | The form field rectangle. |
| IMPORT_C void | SetInvalidTextL | ( | const TDesC & | aInvalidText | ) |
Sets the text for view state when none of the elements in the list are available.
| Parameter | Description |
|---|---|
| aInvalidText | The invalid text. |
| IMPORT_C void | SetMaxNumberOfLinesPermitted | ( | TInt | aMaxNoLines | ) |
/** Sets the maximium number of lines that can be displayed.
| Parameter | Description |
|---|---|
| aMaxNoLines | The maximum number of lines. |
| IMPORT_C void | SetOtherTextL | ( | const TDesC & | aOtherText | ) |
Sets the text to be added to the bottom of the array to enter user defined data.
| Parameter | Description |
|---|---|
| aOtherText | Text to the bottom of the selection array. |
| IMPORT_C void | SetPopupFieldObserver | ( | MAknPopupFieldObserver * | aObserver | ) |
Sets an observer of this class to receive events from popup field.
| Parameter | Description |
|---|---|
| aObserver | Pointer to the class that implements the observer interface. |
| IMPORT_C void | SetQueryValueL | ( | MAknQueryValue * | aValue | ) |
Used by the client to set the query value. It is used to represent the user defined query value in this popup field control.
| Parameter | Description |
|---|---|
| aValue | Pointer to query value, ownership is not passed. |
| IMPORT_C void | SetShowIndicatorsL | ( | TBool | aShowIndicators | ) |
Sets a flag that determines whether the indicators are shown. In practice the indicators have the appearance of radio buttons.
| Parameter | Description |
|---|---|
| aShowIndicators | If ETrue, indicators are displayed. |
| IMPORT_C void | SizeChanged | ( | ) | [protected, virtual] |
Reimplemented from CCoeControl::SizeChanged()
From CCoeControl.
Responds to changes to the size and position of the contents of this control.