calendarui/controller/src/calentoolbarimpl.cpp
branchRCL_3
changeset 36 9c5b1510919f
parent 0 f979ecb2b13e
child 60 96907930389d
equal deleted inserted replaced
30:d68a4b5d5885 36:9c5b1510919f
   388     GetViewPositionList( currentViewUid , viewPositionArray, viewInfoArray);
   388     GetViewPositionList( currentViewUid , viewPositionArray, viewInfoArray);
   389     TInt position(KPositionZero);
   389     TInt position(KPositionZero);
   390     
   390     
   391     ResetToolbarExtensionCommandsL();
   391     ResetToolbarExtensionCommandsL();
   392     // add toolbar items for native views
   392     // add toolbar items for native views
   393     for(TInt index = viewPositionArray.Count()-1;index >= KPositionZero ;index--)
   393     for(TInt index = KPositionZero ;index < viewPositionArray.Count()  ;index++)
   394         {
   394         {
   395         viewPosition = viewInfoArray.Find( viewPositionArray[index],
   395         viewPosition = viewInfoArray.Find( viewPositionArray[index],
   396                                 CCalenViewInfo::ViewInfoIdentifier );
   396                                 CCalenViewInfo::ViewInfoIdentifier );
   397         if( viewPosition != KErrNotFound )
   397         if( viewPosition != KErrNotFound )
   398             {
   398             {
   447     {
   447     {
   448     TRACE_ENTRY_POINT;
   448     TRACE_ENTRY_POINT;
   449     TInt currViewInfoPos = aViewInfoArray.Find( aCurrentViewUid , 
   449     TInt currViewInfoPos = aViewInfoArray.Find( aCurrentViewUid , 
   450                                          CCalenViewInfo::ViewInfoIdentifier );
   450                                          CCalenViewInfo::ViewInfoIdentifier );
   451     
   451     
   452     TInt index = currViewInfoPos + 1;
   452     TInt index = aViewInfoArray.Find( KUidCalenMonthView ,  CCalenViewInfo::ViewInfoIdentifier );
   453     while( index!= currViewInfoPos )
   453     
   454         {
   454     while( index!= aViewInfoArray.Count() )
   455         if( index == aViewInfoArray.Count()) // If last item,
   455         {
   456             {
   456         if( index == currViewInfoPos) // If last item,
   457             index = 0;
   457             {
       
   458             index ++;
   458             continue;
   459             continue;
   459             }
   460             }
   460         if(( aViewInfoArray[index]->CyclePosition() != CCalenView::ENoCyclePosition ) )
   461         if(( aViewInfoArray[index]->CyclePosition() != CCalenView::ENoCyclePosition ) )
   461             {
   462             {
   462             aViewPositionArray.Append(aViewInfoArray[index]->ViewUid());
   463             aViewPositionArray.Append(aViewInfoArray[index]->ViewUid());