menufw/menufwui/mmwidgets/src/mmlistboxview.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15  *  Version     : %version: MM_55 % << Don't touch! Updated by Synergy at check-out.
    15  *  Version     : %version: MM_56 % << Don't touch! Updated by Synergy at check-out.
    16  *
    16  *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 
    20 
    79 // -----------------------------------------------------------------------------
    79 // -----------------------------------------------------------------------------
    80 //
    80 //
    81 void CMmListBoxView::ConstructL ()
    81 void CMmListBoxView::ConstructL ()
    82   {
    82   {
    83   iPreviouslyDrawnCurrentItemIndex = KErrNotFound;
    83   iPreviouslyDrawnCurrentItemIndex = KErrNotFound;
       
    84   iListCommingFromBackground = EFalse;
    84   }
    85   }
    85 
    86 
    86 // -----------------------------------------------------------------------------
    87 // -----------------------------------------------------------------------------
    87 //
    88 //
    88 // -----------------------------------------------------------------------------
    89 // -----------------------------------------------------------------------------
   245     {
   246     {
   246     CMmListBoxView* view= CONST_CAST( CMmListBoxView*, this );
   247     CMmListBoxView* view= CONST_CAST( CMmListBoxView*, this );
   247     view->UpdateAverageItemHeight ();
   248     view->UpdateAverageItemHeight ();
   248 
   249 
   249     CMmListBoxModel* model = static_cast< CMmListBoxModel* > ( iModel );
   250     CMmListBoxModel* model = static_cast< CMmListBoxModel* > ( iModel );
   250     if ( model && model->GetSuiteModel()
   251     if( model && model->GetSuiteModel()
   251             && !model->GetSuiteModel()->GetItemsOrder()->IsSuiteReadyToShow() )
   252             && !model->GetSuiteModel()->GetItemsOrder()->IsSuiteReadyToShow()
       
   253             && !GetListCommingFromBackground() )
   252         {
   254         {
   253         return;
   255         return;
   254         }
   256         }
   255 
   257 
   256     if ( RedrawDisabled () || !IsVisible () )
   258     if ( RedrawDisabled () || !IsVisible () )
   628 void CMmListBoxView::DisableScrollToItem( TBool aDisable )
   630 void CMmListBoxView::DisableScrollToItem( TBool aDisable )
   629     {
   631     {
   630     iScrollToItemDisabled = aDisable;
   632     iScrollToItemDisabled = aDisable;
   631     }
   633     }
   632 
   634 
       
   635 // -----------------------------------------------------------------------------
       
   636 //
       
   637 // -----------------------------------------------------------------------------
       
   638 //
       
   639 TBool CMmListBoxView::GetListCommingFromBackground() const
       
   640     {
       
   641     return iListCommingFromBackground;
       
   642     }
       
   643 
       
   644 // -----------------------------------------------------------------------------
       
   645 //
       
   646 // -----------------------------------------------------------------------------
       
   647 //
       
   648 void CMmListBoxView::SetListCommingFromBackground(
       
   649         TBool aCommingFromBackground )
       
   650     {
       
   651     iListCommingFromBackground = aCommingFromBackground;
       
   652     }
       
   653 
   633 // End of file
   654 // End of file