equal
deleted
inserted
replaced
60 EXPORT_C void TGlxLayoutSplitter::SetLayoutL( |
60 EXPORT_C void TGlxLayoutSplitter::SetLayoutL( |
61 MGlxLayout* aLayout, const CAlfVisual* aVisual ) |
61 MGlxLayout* aLayout, const CAlfVisual* aVisual ) |
62 { |
62 { |
63 // Call SetVisualListL first |
63 // Call SetVisualListL first |
64 __ASSERT_DEBUG( iVisualList, Panic( EGlxPanicNullVisualList ) ); |
64 __ASSERT_DEBUG( iVisualList, Panic( EGlxPanicNullVisualList ) ); |
65 // to replace EGlxPanicNullCHuiVisual |
|
66 //__ASSERT_DEBUG( aVisual && aLayout, Panic( EGlxPanicNullCAlfVisual ) ); |
|
67 // search if there already is a layout for this visual |
65 // search if there already is a layout for this visual |
68 __DEBUG_ONLY( TLayout temp;temp.iVisual = aVisual; ); |
66 __DEBUG_ONLY( TLayout temp;temp.iVisual = aVisual; ); |
69 __ASSERT_DEBUG( |
67 __ASSERT_DEBUG( |
70 iLayouts.Find( temp, TLayout::Match ) == KErrNotFound, |
68 iLayouts.Find( temp, TLayout::Match ) == KErrNotFound, |
71 Panic( EGlxPanicAlreadyAdded ) ); |
69 Panic( EGlxPanicAlreadyAdded ) ); |
87 TInt index = LayoutIndex( aVisual ); |
85 TInt index = LayoutIndex( aVisual ); |
88 if( index != KErrNotFound ) |
86 if( index != KErrNotFound ) |
89 { |
87 { |
90 iLayouts.Remove( index ); |
88 iLayouts.Remove( index ); |
91 } |
89 } |
92 // NOTE! it is ok to try to remove a layout from visual when there was none |
90 // NOTE: it is ok to try to remove a layout from visual when there was none |
93 } |
91 } |
94 |
92 |
95 // ----------------------------------------------------------------------------- |
93 // ----------------------------------------------------------------------------- |
96 // Sets layout to be used when for visuals which don't have a specific layout |
94 // Sets layout to be used when for visuals which don't have a specific layout |
97 // ----------------------------------------------------------------------------- |
95 // ----------------------------------------------------------------------------- |