calendarui/views/src/calencontainerlayoutmanager.cpp
branchRCL_3
changeset 12 38571fd2a704
parent 0 f979ecb2b13e
child 67 1539a383d7b6
equal deleted inserted replaced
5:42814f902fe6 12:38571fd2a704
   142     CheckToolbarL();
   142     CheckToolbarL();
   143 
   143 
   144     // See if preview pane is available
   144     // See if preview pane is available
   145     CheckPreviewL();
   145     CheckPreviewL();
   146 
   146 
   147     // If no preview pane, check for an info bar
   147     CheckInfobarL();
   148     if ( !iLayoutFlags.IsSet( ECalenContainerPreview ))
   148     
   149         {
       
   150         CheckInfobarL();
       
   151         }
       
   152 
       
   153     TRACE_EXIT_POINT;
   149     TRACE_EXIT_POINT;
   154     }
   150     }
   155 
   151 
   156 // ----------------------------------------------------------------------------
   152 // ----------------------------------------------------------------------------
   157 // CCalenContainerLayoutManager::CheckPreviewL
   153 // CCalenContainerLayoutManager::CheckPreviewL
   161 void CCalenContainerLayoutManager::CheckPreviewL()
   157 void CCalenContainerLayoutManager::CheckPreviewL()
   162     {
   158     {
   163     TRACE_ENTRY_POINT;
   159     TRACE_ENTRY_POINT;
   164 
   160 
   165     TRect previewRect = iContainer.PreviewRectL();
   161     TRect previewRect = iContainer.PreviewRectL();
   166     if ( !iContainer.PreviewRectL().IsEmpty() )
   162     if (!iContainer.PreviewRectL().IsEmpty() && iContainer.PreviewPane())
   167         {
   163         {
   168         iLayoutFlags.Set( ECalenContainerPreview );
   164         iLayoutFlags.Set( ECalenContainerPreview );        
   169         iLayoutFlags.Clear( ECalenContainerInfobar );
       
   170         }
   165         }
   171     
   166     
   172     
   167     
   173 
   168 
   174     TRACE_EXIT_POINT;
   169     TRACE_EXIT_POINT;
   198             }
   193             }
   199          else 
   194          else 
   200             {
   195             {
   201             iInfobar = infoBarControl;
   196             iInfobar = infoBarControl;
   202             // If the infobar exists, set the container window and activate.
   197             // If the infobar exists, set the container window and activate.
   203             iLayoutFlags.Set( ECalenContainerInfobar );
   198             iLayoutFlags.Set( ECalenContainerInfobar );           
   204             iLayoutFlags.Clear( ECalenContainerPreview );
       
   205             iInfobar->SetContainerWindowL( iContainer );
   199             iInfobar->SetContainerWindowL( iContainer );
   206             }
   200             }
   207        }
   201        }
   208      // For ToDo View, issue ECalenNotifyCheckPluginUnloading explicitly as it will not enter above 'if' loop
   202      // For ToDo View, issue ECalenNotifyCheckPluginUnloading explicitly as it will not enter above 'if' loop
   209      // This change is made only for language variants that have plugins
   203      // This change is made only for language variants that have plugins