equal
deleted
inserted
replaced
367 // Transfer iconlist ownership to the listbox |
367 // Transfer iconlist ownership to the listbox |
368 iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList ); |
368 iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList ); |
369 |
369 |
370 /*// Save empty text and set null for list box. |
370 /*// Save empty text and set null for list box. |
371 // It is made not to display "No data". |
371 // It is made not to display "No data". |
372 iEmptyListText = iListBox->View()->EmptyListText()->AllocL();*/ |
372 iEmptyListText = iListBox->View()->EmptyListText()->AllocL(); |
373 |
373 //iListBox->View()->SetListEmptyTextL( KNullDesC );*/ |
374 //set NULL string so that "no entries" is not shown |
374 |
375 //until the list is populated |
375 // Set text for empty listbox |
376 iListBox->View()->SetListEmptyTextL( KNullDesC ); |
376 HBufC* emptyText = StringLoader::LoadLC(R_CALEN_QTN_CALE_NO_EVENTS, |
377 |
377 iEikonEnv); |
|
378 iListBox->View()->SetListEmptyTextL( *emptyText ); //Whenever listbox is empty, it will set with this empty text. |
|
379 CleanupStack::PopAndDestroy(emptyText); |
|
380 |
378 TRACE_EXIT_POINT; |
381 TRACE_EXIT_POINT; |
379 } |
382 } |
380 |
383 |
381 // ---------------------------------------------------------------------------- |
384 // ---------------------------------------------------------------------------- |
382 // CCalenTodoContainer::SetCurrentItemIndex |
385 // CCalenTodoContainer::SetCurrentItemIndex |
571 } |
574 } |
572 |
575 |
573 CleanupStack::PopAndDestroy( listDes ); |
576 CleanupStack::PopAndDestroy( listDes ); |
574 CleanupStack::PopAndDestroy( &calendarInfoList ); |
577 CleanupStack::PopAndDestroy( &calendarInfoList ); |
575 iListBox->HandleItemAdditionL(); |
578 iListBox->HandleItemAdditionL(); |
576 |
579 //iListBox->View()->SetListEmptyTextL( *iEmptyListText ); |
577 //Whenever listbox is empty, it will set with this empty text. |
|
578 HBufC* emptyText = StringLoader::LoadLC(R_CALEN_QTN_CALE_NO_EVENTS, |
|
579 iEikonEnv); |
|
580 iListBox->View()->SetListEmptyTextL( *emptyText ); |
|
581 CleanupStack::PopAndDestroy(emptyText); |
|
582 |
|
583 |
580 |
584 TRACE_EXIT_POINT; |
581 TRACE_EXIT_POINT; |
585 } |
582 } |
586 |
583 |
587 // ---------------------------------------------------------------------------- |
584 // ---------------------------------------------------------------------------- |
1249 |
1246 |
1250 AddToStackAndMakeVisibleL(); |
1247 AddToStackAndMakeVisibleL(); |
1251 // Now we know if the view is empty or not we can update the CBA buttons. |
1248 // Now we know if the view is empty or not we can update the CBA buttons. |
1252 static_cast<CCalenTodoView*>( iView )->UpdateCBAButtonsL(); |
1249 static_cast<CCalenTodoView*>( iView )->UpdateCBAButtonsL(); |
1253 UpdateStatusPaneAndExtensionsL(); |
1250 UpdateStatusPaneAndExtensionsL(); |
1254 UpdateTodayToolbarItemL(); |
|
1255 |
1251 |
1256 TRACE_EXIT_POINT; |
1252 TRACE_EXIT_POINT; |
1257 } |
1253 } |
1258 |
1254 |
1259 // ---------------------------------------------------------------------------- |
1255 // ---------------------------------------------------------------------------- |