21 #include "WidgetUiWindowView.h" |
21 #include "WidgetUiWindowView.h" |
22 #include "WidgetUiWindow.h" |
22 #include "WidgetUiWindow.h" |
23 |
23 |
24 #include <WidgetUi.rsg> |
24 #include <WidgetUi.rsg> |
25 |
25 |
26 #include <WidgetRegistryConstants.h> |
26 #include <widgetregistryconstants.h> |
27 |
27 |
28 #include <brctlinterface.h> |
28 #include <brctlinterface.h> |
29 #include <ApUtils.h> |
29 #include <ApUtils.h> |
30 #include <InternetConnectionManager.h> |
30 #include <internetconnectionmanager.h> |
31 #include <ActiveApDb.h> |
31 #include <ActiveApDb.h> |
32 #include <avkon.hrh> |
32 #include <avkon.hrh> |
33 #include <AknsDrawUtils.h> |
33 #include <aknsdrawutils.h> |
34 #include <AknsBasicBackgroundControlContext.h> |
34 #include <AknsBasicBackgroundControlContext.h> |
35 |
35 |
36 // CAknMessageQueryDialog |
36 // CAknMessageQueryDialog |
37 #include <aknmessagequerydialog.h> |
37 #include <AknMessageQueryDialog.h> |
38 #include <aknnotewrappers.h> |
38 #include <aknnotewrappers.h> |
39 #include <aknnotedialog.h> |
39 #include <AknNoteDialog.h> |
40 #include <BrowserDialogsProvider.h> |
40 #include <browserdialogsprovider.h> |
41 |
41 |
42 // EXTERNAL DATA STRUCTURES |
42 // EXTERNAL DATA STRUCTURES |
43 |
43 |
44 // EXTERNAL FUNCTION PROTOTYPES |
44 // EXTERNAL FUNCTION PROTOTYPES |
45 |
45 |
152 // |
152 // |
153 // ----------------------------------------------------------------------------- |
153 // ----------------------------------------------------------------------------- |
154 // |
154 // |
155 void CWidgetUiWindowContainer::SizeChanged() |
155 void CWidgetUiWindowContainer::SizeChanged() |
156 { |
156 { |
157 TInt offset( 0 ); |
|
158 |
|
159 if( Engine() && (Engine()->Rect() != Rect()) ) |
157 if( Engine() && (Engine()->Rect() != Rect()) ) |
160 { |
158 { |
161 TRect rect( Rect() ); |
159 TRect rect( Rect() ); |
162 //rect.iBr.iY-=offset; |
160 //rect.iBr.iY-=offset; |
163 Engine()->SetRect( rect ); |
161 Engine()->SetRect( rect ); |
278 { |
276 { |
279 // Handle RED End Key (EKeyNo) |
277 // Handle RED End Key (EKeyNo) |
280 if (aKeyEvent.iCode == EKeyNo) |
278 if (aKeyEvent.iCode == EKeyNo) |
281 { |
279 { |
282 // Close the current active widget |
280 // Close the current active widget |
283 iWindowManager.CloseWindowsAsync(EFalse); |
281 //iWindowManager.CloseWindowsAsync(EFalse); |
284 return EKeyWasConsumed; |
282 return EKeyWasConsumed; |
285 } |
283 } |
286 |
284 |
|
285 //Ignore application keys(EKeyApplication0-EKeyApplication1F) |
|
286 if( (aKeyEvent.iCode>=EKeyApplication0 && aKeyEvent.iCode<= EKeyApplicationF) || |
|
287 (aKeyEvent.iCode>=EKeyApplication10 && aKeyEvent.iCode<= EKeyApplication1F) ) |
|
288 { |
|
289 return EKeyWasNotConsumed; |
|
290 } |
287 TKeyResponse resp(EKeyWasNotConsumed); |
291 TKeyResponse resp(EKeyWasNotConsumed); |
288 TBool editing(EFalse); |
292 TBool editing(EFalse); |
289 //Reset the iIsOptionsMenuActivated if enabled |
293 //Reset the iIsOptionsMenuActivated if enabled |
290 iWindowManager.View()->DeActivateOptionsMenu(); |
294 iWindowManager.View()->DeActivateOptionsMenu(); |
291 |
295 |
292 if (Engine()) |
296 if (Engine()) |
293 { |
297 { |
294 TBool showStausPane(EFalse); |
|
295 TBrCtlDefs::TBrCtlElementType eType = Engine()->FocusedElementType(); |
298 TBrCtlDefs::TBrCtlElementType eType = Engine()->FocusedElementType(); |
296 switch(eType) |
299 switch(eType) |
297 { |
300 { |
298 case TBrCtlDefs::EElementInputBox: |
301 case TBrCtlDefs::EElementInputBox: |
299 case TBrCtlDefs::EElementActivatedInputBox: |
302 case TBrCtlDefs::EElementActivatedInputBox: |
300 case TBrCtlDefs::EElementTextAreaBox: |
303 case TBrCtlDefs::EElementTextAreaBox: |
301 // status pane is needed for editing |
|
302 showStausPane = ETrue; |
|
303 // fall through |
|
304 case TBrCtlDefs::EElementObjectBox: |
304 case TBrCtlDefs::EElementObjectBox: |
305 case TBrCtlDefs::EElementActivatedObjectBox: |
305 case TBrCtlDefs::EElementActivatedObjectBox: |
306 { |
306 { |
307 // Status pane must be shown before input is activated because resizing de-activates |
307 // Status pane must be shown before input is activated because resizing de-activates |
308 // the input box. |
308 // the input box. |