The class provides a list with items markable with shift+selection_key.
1) Setup listbox for markable list (resource file still needs to be correct for markable lists :)
3) Handles mark/unmark/mark all/unmark all and edit list options menu visibility
EAknCtSingleListBox (See CAknSingleStyleListBox)
EAknCtSingleNumberListBox (See CAknSingleNumberStyleListBox)
EAknCtSingleHeadingListBox (See CAknSingleHeadingStyleListBox)
EAknCtSingleGraphicListBox (See CAknSingleGraphicStyleListBox)
EAknCtSingleGraphicHeadingListBox (See CAknSingleGraphicHeadingStyleListBox)
EAknCtSingleNumberHeadingListBox (See CAknSingleNumberHeadingStyleListBox)
EAknCtSingleLargeListBox (See CAknSingleLargeStyleListBox)
EAknCtDoubleListBox (See CAknDoubleStyleListBox)
EAknCtDoubleNumberListBox (See CAknDoubleNumberStyleListBox)
EAknCtDoubleTimeListBox (See CAknDoubleTimeStyleListBox)
EAknCtDoubleLargeListBox (See CAknDoubleLargeStyleListBox)
EAknCtDoubleGraphicListBox (See CAknDoubleGraphicStyleListBox)
The menubar you give for markable list dialog should have one of the following as menu panes:
TInt openedItem = 0;
MDesCArray *arrayOfItems = ...;
CArrayFix<TInt> *selectedItems = ...;
CAknMarkableListDialog *dialog = CAknMarkableListDialog::NewL(openedItem, selectedItems, arrayOfItems, R_RES_ID_FOR_A_MENUBAR);
TInt result = dialog->ExecuteLD(R_RES_ID_FOR_A_DIALOG);
if (result)
{
...
}
else
{
...
}
|
Public Member Functions |
IMPORT_C void | ConstructL (TInt aMenuTitleResourceId) |
| ConstructL() 2nd phase constructor.
|
IMPORT_C | ~CAknMarkableListDialog () |
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
| HandlePointerEventL() from CCoeControl.
|
Static Public Member Functions |
static IMPORT_C CAknMarkableListDialog * | NewL (TInt &aOpenedItem, CArrayFix< TInt > *aSelectedItems, MDesCArray *aArray, TInt aMenuBarResourceId, TInt aOkMenuBarId, MEikCommandObserver *aObserver=0) |
| CAknMarkableListDialog::NewL().
|
static IMPORT_C CAknMarkableListDialog * | NewLC (TInt &aOpenedItem, CArrayFix< TInt > *aSelectedItems, MDesCArray *aArray, TInt aMenuBarResourceId, TInt aOkMenuBarId, MEikCommandObserver *aObserver=0) |
| CAknMarkableListDialog::NewL().
|
static IMPORT_C CAknMarkableListDialog * | NewL (TInt &aOpenedItem, CArrayFix< TInt > *aSelectedItems, MDesCArray *aArray, TInt aMenuBarResourceId, MEikCommandObserver *aObserver=0) |
| NewL().
|
static IMPORT_C CAknMarkableListDialog * | NewLC (TInt &aOpenedItem, CArrayFix< TInt > *aSelectedItems, MDesCArray *aArray, TInt aMenuBarResourceId, MEikCommandObserver *aObserver=0) |
| NewLC().
|
Protected Member Functions |
IMPORT_C | CAknMarkableListDialog (TInt &aOpenedItem, CArrayFix< TInt > *aSelectedItems, MDesCArray *aArray, TInt aMenuBarResourceId, TInt aOkMenuBarResourceId, MEikCommandObserver *aObserver) |
| CAknMarkableListDialog().
|
IMPORT_C void | PreLayoutDynInitL () |
| PreLayoutDynInitL() From CAknDialog.
|
IMPORT_C void | PostLayoutDynInitL () |
| PreLayoutDynInitL() From CAknDialog.
|
IMPORT_C void | SelectionListProcessCommandL (TInt aCommand) |
| SelectionListProcessCommandL() handles selection list and markable list default commands.
|
IMPORT_C void | ProcessCommandL (TInt aCommand) |
| ProcessCommandL() From CAknDialog.
|
IMPORT_C void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| DynInitMenuPaneL() From MEikCommandObserver.
|
IMPORT_C void | HandleListBoxEventL (CEikListBox *aListBox, TListBoxEvent aEventType) |
| HandleListBoxEventL() From MEikListBoxObserver Handles listbox events.
|
IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
| OfferKeyEventL() From CCoeControl.
|
IMPORT_C TBool | OkToExitL (TInt aButtonId) |
| OkToExitL() From CAknDialog.
|
IMPORT_C | CAknMarkableListDialog (TInt &aValue, CArrayFix< TInt > *aSelectedItems, MDesCArray *aArray, MEikCommandObserver *aObserver) |
| CAknMarkableListDialog().
|
Protected Attributes |
TInt | iMenuBarResourceId |
| resource id of the menu bar
|
TInt | iOkMenuBarResourceId |
| resource id of the OK menu bar
|