camerauis/cameraapp/generic/GsCamcorderPlugin/src/CamLocationSettingContainer.cpp
equal
deleted
inserted
replaced
167 TRect layoutAreaRect; |
167 TRect layoutAreaRect; |
168 layoutAreaRect = mainPaneRect; |
168 layoutAreaRect = mainPaneRect; |
169 layoutAreaRect.BoundingRect( statusPaneRect ); |
169 layoutAreaRect.BoundingRect( statusPaneRect ); |
170 |
170 |
171 // set the layouts for the rect containing the description |
171 // set the layouts for the rect containing the description |
172 if ( CamUtility::IsNhdDevice() ) |
172 if ( AknLayoutUtils::PenEnabled() ) |
173 { |
173 { |
174 if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
174 if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
175 { |
175 { |
176 iSummaryRect.LayoutRect( layoutAreaRect, AknLayoutScalable_Apps::main_cset_text2_pane( 0 ) ); |
176 iSummaryRect.LayoutRect( layoutAreaRect, AknLayoutScalable_Apps::main_cset_text2_pane( 0 ) ); |
177 } |
177 } |
201 TAknLayoutScalableParameterLimits listLimits = |
201 TAknLayoutScalableParameterLimits listLimits = |
202 AknLayoutScalable_Apps::main_cset_text2_pane_t1_copy1_ParamLimits( 0 ); |
202 AknLayoutScalable_Apps::main_cset_text2_pane_t1_copy1_ParamLimits( 0 ); |
203 TInt lineCount = listLimits.LastRow() + 1; |
203 TInt lineCount = listLimits.LastRow() + 1; |
204 for ( TInt i = 0; i < lineCount; i++ ) |
204 for ( TInt i = 0; i < lineCount; i++ ) |
205 { |
205 { |
206 if ( CamUtility::IsNhdDevice() ) |
206 if ( AknLayoutUtils::PenEnabled() ) |
207 { |
207 { |
208 layout.LayoutText( iSummaryRect.Rect(), |
208 layout.LayoutText( iSummaryRect.Rect(), |
209 AknLayoutScalable_Apps::main_cset_text2_pane_t1( i ) ); |
209 AknLayoutScalable_Apps::main_cset_text2_pane_t1( i ) ); |
210 } |
210 } |
211 else |
211 else |
257 // get layout for the listbox rect |
257 // get layout for the listbox rect |
258 TAknLayoutRect listboxLayoutRect; |
258 TAknLayoutRect listboxLayoutRect; |
259 if ( visibility == CEikScrollBarFrame::EOn ) |
259 if ( visibility == CEikScrollBarFrame::EOn ) |
260 { |
260 { |
261 // if scrollbars are used, use scrollbar layout |
261 // if scrollbars are used, use scrollbar layout |
262 if ( CamUtility::IsNhdDevice() ) |
262 if ( AknLayoutUtils::PenEnabled() ) |
263 { |
263 { |
264 listboxLayoutRect.LayoutRect( listboxRect, |
264 listboxLayoutRect.LayoutRect( listboxRect, |
265 AknLayoutScalable_Apps::main_cset_list_pane( 0 ) ); |
265 AknLayoutScalable_Apps::main_cset_list_pane( 0 ) ); |
266 } |
266 } |
267 else |
267 else |
270 AknLayoutScalable_Apps::main_cset_list_pane_copy1( 0 ) ); |
270 AknLayoutScalable_Apps::main_cset_list_pane_copy1( 0 ) ); |
271 } |
271 } |
272 } |
272 } |
273 else |
273 else |
274 { |
274 { |
275 if ( CamUtility::IsNhdDevice() ) |
275 if ( AknLayoutUtils::PenEnabled() ) |
276 { |
276 { |
277 listboxLayoutRect.LayoutRect( listboxRect, |
277 listboxLayoutRect.LayoutRect( listboxRect, |
278 AknLayoutScalable_Apps::main_cset_list_pane( 1 ) ); |
278 AknLayoutScalable_Apps::main_cset_list_pane( 1 ) ); |
279 } |
279 } |
280 else |
280 else |
284 } |
284 } |
285 } |
285 } |
286 |
286 |
287 // layout scrollbarpane (will not be visible if not needed) |
287 // layout scrollbarpane (will not be visible if not needed) |
288 TAknLayoutRect scrollbarLayoutRect; |
288 TAknLayoutRect scrollbarLayoutRect; |
289 if ( CamUtility::IsNhdDevice() ) |
289 if ( AknLayoutUtils::PenEnabled() ) |
290 { |
290 { |
291 scrollbarLayoutRect.LayoutRect( listboxRect, |
291 scrollbarLayoutRect.LayoutRect( listboxRect, |
292 AknLayoutScalable_Apps::scroll_pane_cp028( 0 ) ); |
292 AknLayoutScalable_Apps::scroll_pane_cp028( 0 ) ); |
293 } |
293 } |
294 else |
294 else |
421 // get layout for the listbox rect |
421 // get layout for the listbox rect |
422 TAknLayoutRect listboxLayoutRect; |
422 TAknLayoutRect listboxLayoutRect; |
423 if ( visibility == CEikScrollBarFrame::EOn ) |
423 if ( visibility == CEikScrollBarFrame::EOn ) |
424 { |
424 { |
425 // if scrollbars are used, use scrollbar layout |
425 // if scrollbars are used, use scrollbar layout |
426 if ( CamUtility::IsNhdDevice() ) |
426 if ( AknLayoutUtils::PenEnabled() ) |
427 { |
427 { |
428 listboxLayoutRect.LayoutRect( listboxRect, |
428 listboxLayoutRect.LayoutRect( listboxRect, |
429 AknLayoutScalable_Apps::main_cset_list_pane( 0 ) ); |
429 AknLayoutScalable_Apps::main_cset_list_pane( 0 ) ); |
430 } |
430 } |
431 else |
431 else |
434 AknLayoutScalable_Apps::main_cset_list_pane_copy1( 0 ) ); |
434 AknLayoutScalable_Apps::main_cset_list_pane_copy1( 0 ) ); |
435 } |
435 } |
436 } |
436 } |
437 else |
437 else |
438 { |
438 { |
439 if ( CamUtility::IsNhdDevice() ) |
439 if ( AknLayoutUtils::PenEnabled() ) |
440 { |
440 { |
441 listboxLayoutRect.LayoutRect( listboxRect, |
441 listboxLayoutRect.LayoutRect( listboxRect, |
442 AknLayoutScalable_Apps::main_cset_list_pane( 1 ) ); |
442 AknLayoutScalable_Apps::main_cset_list_pane( 1 ) ); |
443 } |
443 } |
444 else |
444 else |
448 } |
448 } |
449 } |
449 } |
450 |
450 |
451 // layout scrollbarpane (will not be visible if not needed) |
451 // layout scrollbarpane (will not be visible if not needed) |
452 TAknLayoutRect scrollbarLayoutRect; |
452 TAknLayoutRect scrollbarLayoutRect; |
453 if ( CamUtility::IsNhdDevice() ) |
453 if ( AknLayoutUtils::PenEnabled() ) |
454 { |
454 { |
455 scrollbarLayoutRect.LayoutRect( listboxRect, |
455 scrollbarLayoutRect.LayoutRect( listboxRect, |
456 AknLayoutScalable_Apps::scroll_pane_cp028( 0 ) ); |
456 AknLayoutScalable_Apps::scroll_pane_cp028( 0 ) ); |
457 } |
457 } |
458 else |
458 else |
524 layoutAreaRect = mainPaneRect; |
524 layoutAreaRect = mainPaneRect; |
525 layoutAreaRect.BoundingRect( statusPaneRect ); |
525 layoutAreaRect.BoundingRect( statusPaneRect ); |
526 |
526 |
527 // get the rect size for listbox in the layout |
527 // get the rect size for listbox in the layout |
528 TAknLayoutRect listboxLayoutRect; |
528 TAknLayoutRect listboxLayoutRect; |
529 if ( CamUtility::IsNhdDevice() ) |
529 if ( AknLayoutUtils::PenEnabled() ) |
530 { |
530 { |
531 if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
531 if ( Layout_Meta_Data::IsLandscapeOrientation() ) |
532 { |
532 { |
533 listboxLayoutRect.LayoutRect( layoutAreaRect, |
533 listboxLayoutRect.LayoutRect( layoutAreaRect, |
534 AknLayoutScalable_Apps::main_cset_listscroll_pane( 4 ) ); |
534 AknLayoutScalable_Apps::main_cset_listscroll_pane( 4 ) ); |