equal
deleted
inserted
replaced
55 // ----------------------------------------------------------------------------- |
55 // ----------------------------------------------------------------------------- |
56 // |
56 // |
57 void CXnWallpaperContainer::ConstructL() |
57 void CXnWallpaperContainer::ConstructL() |
58 { |
58 { |
59 CreateWindowL(); |
59 CreateWindowL(); |
60 TRect rect = iAvkonAppUi->ClientRect(); |
60 |
61 iBgContext = CAknsBasicBackgroundControlContext::NewL( |
61 iBgContext = CAknsBasicBackgroundControlContext::NewL( |
62 KAknsIIDQsnBgScreen, rect, EFalse ); |
62 KAknsIIDQsnBgScreen, TRect(), ETrue ); |
|
63 |
|
64 TRect rect; |
|
65 |
|
66 AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, rect ); |
|
67 |
63 SetRect( rect ); |
68 SetRect( rect ); |
64 } |
69 } |
65 |
70 |
66 // ----------------------------------------------------------------------------- |
71 // ----------------------------------------------------------------------------- |
67 // Destructor. |
72 // Destructor. |
95 // |
100 // |
96 void CXnWallpaperContainer::SizeChanged() |
101 void CXnWallpaperContainer::SizeChanged() |
97 { |
102 { |
98 if ( iBgContext ) |
103 if ( iBgContext ) |
99 { |
104 { |
100 iBgContext->SetRect(Rect()); |
105 TRect rect; |
101 TRect rect = Rect(); |
106 |
|
107 AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EScreen, rect ); |
|
108 |
|
109 iBgContext->SetRect( rect ); |
102 } |
110 } |
103 } |
111 } |
104 |
112 |
105 // ----------------------------------------------------------------------------- |
113 // ----------------------------------------------------------------------------- |
106 // CXnWallpaperContainer::HandleResourceChange |
114 // CXnWallpaperContainer::HandleResourceChange |
107 // ----------------------------------------------------------------------------- |
115 // ----------------------------------------------------------------------------- |
108 // |
116 // |
109 void CXnWallpaperContainer::HandleResourceChange(TInt aType) |
117 void CXnWallpaperContainer::HandleResourceChange(TInt aType) |
110 { |
118 { |
111 TRect rect; |
|
112 if ( aType == KEikDynamicLayoutVariantSwitch ) |
119 if ( aType == KEikDynamicLayoutVariantSwitch ) |
113 { |
120 { |
114 AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect); |
121 TRect rect; |
115 SetRect(rect); |
122 |
|
123 AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EMainPane, rect ); |
|
124 |
|
125 SetRect( rect ); |
116 } |
126 } |
|
127 |
117 CCoeControl::HandleResourceChange(aType); |
128 CCoeControl::HandleResourceChange(aType); |
118 } |
129 } |
119 |
130 |
120 // End of File |
131 // End of File |