menufw/menufwui/mmwidgets/src/mmlistboxview.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
    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_56 % << Don't touch! Updated by Synergy at check-out.
    15  *  Version     : %version: MM_55 % << 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;
       
    85   }
    84   }
    86 
    85 
    87 // -----------------------------------------------------------------------------
    86 // -----------------------------------------------------------------------------
    88 //
    87 //
    89 // -----------------------------------------------------------------------------
    88 // -----------------------------------------------------------------------------
   246     {
   245     {
   247     CMmListBoxView* view= CONST_CAST( CMmListBoxView*, this );
   246     CMmListBoxView* view= CONST_CAST( CMmListBoxView*, this );
   248     view->UpdateAverageItemHeight ();
   247     view->UpdateAverageItemHeight ();
   249 
   248 
   250     CMmListBoxModel* model = static_cast< CMmListBoxModel* > ( iModel );
   249     CMmListBoxModel* model = static_cast< CMmListBoxModel* > ( iModel );
   251     if( model && model->GetSuiteModel()
   250     if ( model && model->GetSuiteModel()
   252             && !model->GetSuiteModel()->GetItemsOrder()->IsSuiteReadyToShow()
   251             && !model->GetSuiteModel()->GetItemsOrder()->IsSuiteReadyToShow() )
   253             && !GetListCommingFromBackground() )
       
   254         {
   252         {
   255         return;
   253         return;
   256         }
   254         }
   257 
   255 
   258     if ( RedrawDisabled () || !IsVisible () )
   256     if ( RedrawDisabled () || !IsVisible () )
   630 void CMmListBoxView::DisableScrollToItem( TBool aDisable )
   628 void CMmListBoxView::DisableScrollToItem( TBool aDisable )
   631     {
   629     {
   632     iScrollToItemDisabled = aDisable;
   630     iScrollToItemDisabled = aDisable;
   633     }
   631     }
   634 
   632 
   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 
       
   654 // End of file
   633 // End of file