equal
deleted
inserted
replaced
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 |