40 #include <SVGRequestObserver.h> |
40 #include <SVGRequestObserver.h> |
41 #include <aknnotewrappers.h> |
41 #include <aknnotewrappers.h> |
42 #include <akntitle.h> |
42 #include <akntitle.h> |
43 #include <data_caging_path_literals.hrh> |
43 #include <data_caging_path_literals.hrh> |
44 #include <StringLoader.h> |
44 #include <StringLoader.h> |
45 #include <SVGTUIControl.rsg> |
45 #include <svgtuicontrol.rsg> |
46 #include <csxhelp/svgt.hlp.hrh> |
46 #include <csxhelp/svgt.hlp.hrh> |
47 //----------- |
47 //----------- |
48 |
48 |
49 // User Includes |
49 // User Includes |
50 #include "SVGTAppObserver.h" |
50 #include "SVGTAppObserver.h" |
1167 // ----------------------------------------------------------------------------- |
1167 // ----------------------------------------------------------------------------- |
1168 // |
1168 // |
1169 void CSVGTUIDialog::HandleResourceChange( TInt aType ) |
1169 void CSVGTUIDialog::HandleResourceChange( TInt aType ) |
1170 { |
1170 { |
1171 CAknDialog::HandleResourceChange( aType ); |
1171 CAknDialog::HandleResourceChange( aType ); |
1172 if( iQuietExitWhenOrientationChange ) |
1172 |
1173 { |
1173 |
1174 TryExitL( EAknCmdExit ); |
|
1175 return; |
|
1176 } |
|
1177 if ( aType == KAknsMessageSkinChange ) |
1174 if ( aType == KAknsMessageSkinChange ) |
1178 { |
1175 { |
1179 // No skin related action performed. |
1176 // No skin related action performed. |
1180 } |
1177 } |
1181 else if ( aType == KEikDynamicLayoutVariantSwitch ) |
1178 else if ( aType == KEikDynamicLayoutVariantSwitch ) |
1182 { |
1179 { |
|
1180 |
|
1181 if( iQuietExitWhenOrientationChange ) |
|
1182 { |
|
1183 TryExitL( EAknCmdExit ); |
|
1184 return; |
|
1185 } |
|
1186 |
1183 if ( iCustControl ) |
1187 if ( iCustControl ) |
1184 { |
1188 { |
1185 TBool isFullScreenOn; |
1189 TBool isFullScreenOn; |
1186 // Check whether the custom control is using full-screen or |
1190 // Check whether the custom control is using full-screen or |
1187 // normal screen |
1191 // normal screen |
1188 iCustControl->GetCurrentFullScreenStatus( isFullScreenOn ); |
1192 iCustControl->GetCurrentFullScreenStatus( isFullScreenOn ); |
1189 // Change the layout to reflect layout switch |
1193 // Change the layout to reflect layout switch |
1190 TRAP_IGNORE( SwitchDialogLayoutL( isFullScreenOn ) ); |
1194 TRAP_IGNORE( SwitchDialogLayoutL( isFullScreenOn ) ); |
1191 } |
1195 } |
|
1196 |
|
1197 // If it is a Layout switch, need to do a redraw |
|
1198 if ( aType == KEikDynamicLayoutVariantSwitch ) |
|
1199 { |
|
1200 // Redraw the dialog |
|
1201 DrawDeferred(); |
|
1202 } |
|
1203 |
1192 } |
1204 } |
1193 |
1205 |
1194 // If it is a Layout switch, need to do a redraw |
|
1195 if ( aType == KEikDynamicLayoutVariantSwitch ) |
|
1196 { |
|
1197 // Redraw the dialog |
|
1198 DrawDeferred(); |
|
1199 } |
|
1200 } |
1206 } |
1201 // ----------------------------------------------------------------------------- |
1207 // ----------------------------------------------------------------------------- |
1202 // CSVGTUIDialog::DrawProgressBarL |
1208 // CSVGTUIDialog::DrawProgressBarL |
1203 // This function updates the progress bar in the navi pane. It is called back |
1209 // This function updates the progress bar in the navi pane. It is called back |
1204 // by the custom control. |
1210 // by the custom control. |