filemanager/App/src/CFileManagerContainerBase.cpp
branchRCL_3
changeset 52 40fb776cbfb3
parent 42 f5c50b8af68c
equal deleted inserted replaced
45:6a0ceb387ac7 52:40fb776cbfb3
    57     iListBox->CreateScrollBarFrameL( ETrue );
    57     iListBox->CreateScrollBarFrameL( ETrue );
    58     iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(
    58     iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(
    59         CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
    59         CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto );
    60     iListBox->SetObserver( this );
    60     iListBox->SetObserver( this );
    61     iListBox->SetListBoxObserver( this );
    61     iListBox->SetListBoxObserver( this );
    62     iListBox->SetMarkingModeObserver( this );
       
    63 
       
    64     SetIndex( aFocusedIndex );
    62     SetIndex( aFocusedIndex );
    65     iListBox->SetFocus( ETrue );
    63     iListBox->SetFocus( ETrue );
    66     iListBox->AddSelectionObserverL( this );
    64     iListBox->AddSelectionObserverL( this );
    67     SetRect( aRect );
    65     SetRect( aRect );
    68     ActivateL();
    66     ActivateL();
   358 // -----------------------------------------------------------------------------
   356 // -----------------------------------------------------------------------------
   359 // CFileManagerContainerBase::ProcessCommandL
   357 // CFileManagerContainerBase::ProcessCommandL
   360 // 
   358 // 
   361 // -----------------------------------------------------------------------------
   359 // -----------------------------------------------------------------------------
   362 // 
   360 // 
   363 void CFileManagerContainerBase::ProcessCommandL( TInt /* aCommandId */ )
   361 void CFileManagerContainerBase::ProcessCommandL( TInt aCommandId )
   364     {
   362     {
   365     }
   363     switch ( aCommandId )
   366 
   364         {
   367 // -----------------------------------------------------------------------------
   365         case EAknSoftkeyShiftMSK:
   368 // CFileManagerContainerBase::MarkingModeStatusChanged()
   366             {
   369 //
   367             static_cast< CAknAppUi* >( ControlEnv()->AppUi() )->
   370 // -----------------------------------------------------------------------------
   368                 ProcessCommandL( EFileManagerToggleMark );
   371 //
   369             break;
   372 void CFileManagerContainerBase::MarkingModeStatusChanged( TBool aActivated )
   370             }
   373     {
   371             
   374     // Set flag to indicate marking model is activated or not
   372         default:
   375     iMarkingModeActivated = aActivated;
   373             {
   376     }
   374             break;
   377 
   375             }
   378 // -----------------------------------------------------------------------------
   376         }
   379 // CFileManagerContainerBase::ExitMarkingMode()
       
   380 //
       
   381 // -----------------------------------------------------------------------------
       
   382 //
       
   383 TBool CFileManagerContainerBase::ExitMarkingMode() const
       
   384     {
       
   385     return iAllowMarkingModeExit;
       
   386     }
   377     }
   387 
   378 
   388 // -----------------------------------------------------------------------------
   379 // -----------------------------------------------------------------------------
   389 // CFileManagerContainerBase::SelectionModeChanged
   380 // CFileManagerContainerBase::SelectionModeChanged
   390 // 
   381 // 
   413 TBool CFileManagerContainerBase::SelectionModeEnabled() const
   404 TBool CFileManagerContainerBase::SelectionModeEnabled() const
   414     {
   405     {
   415     return iSelectionModeEnabled;
   406     return iSelectionModeEnabled;
   416     }
   407     }
   417 
   408 
   418 // -----------------------------------------------------------------------------
       
   419 // CFileManagerContainerBase::IsMarkingModeActivated
       
   420 // 
       
   421 // -----------------------------------------------------------------------------
       
   422 //
       
   423 TBool CFileManagerContainerBase::IsMarkingModeActivated() const
       
   424     {
       
   425     return iMarkingModeActivated;
       
   426     }
       
   427 // -----------------------------------------------------------------------------
   409 // -----------------------------------------------------------------------------
   428 // CFileManagerContainerBase::UpdateCba
   410 // CFileManagerContainerBase::UpdateCba
   429 // 
   411 // 
   430 // -----------------------------------------------------------------------------
   412 // -----------------------------------------------------------------------------
   431 // 
   413 // 
   604 //
   586 //
   605 TInt CFileManagerContainerBase::SearchFieldToListBoxIndex( TInt aIndex )
   587 TInt CFileManagerContainerBase::SearchFieldToListBoxIndex( TInt aIndex )
   606     {
   588     {
   607     return 0;
   589     return 0;
   608     }
   590     }
   609 
       
   610 // -----------------------------------------------------------------------------
       
   611 // CFileManagerContainerBase::AllowMarkingModeExit
       
   612 // 
       
   613 // -----------------------------------------------------------------------------
       
   614 //
       
   615 void CFileManagerContainerBase::AllowMarkingModeExit( TBool aAllowExit )
       
   616     {
       
   617     iAllowMarkingModeExit = aAllowExit;
       
   618     }
       
   619 
       
   620 // -----------------------------------------------------------------------------
       
   621 // CFileManagerContainerBase::SetMarkingMode
       
   622 // 
       
   623 // -----------------------------------------------------------------------------
       
   624 //
       
   625 void CFileManagerContainerBase::SetMarkingMode( TBool aEnable )
       
   626     {
       
   627     iListBox->SetMarkingMode( aEnable );
       
   628     }
       
   629 
       
   630 //  End of File  
   591 //  End of File