equal
deleted
inserted
replaced
45 #include "browser.hrh" |
45 #include "browser.hrh" |
46 #include "BrowserAppUi.h" |
46 #include "BrowserAppUi.h" |
47 #include "BrowserFavouritesView.h" |
47 #include "BrowserFavouritesView.h" |
48 #include "Preferences.h" |
48 #include "Preferences.h" |
49 #include <Featmgr.h> |
49 #include <Featmgr.h> |
|
50 #include "BrowserUiSDKCRKeys.h" |
50 |
51 |
51 #include <eikpriv.rsg> |
52 #include <eikpriv.rsg> |
52 #include <BARSREAD.H> |
53 #include <BARSREAD.H> |
53 |
54 |
54 #include <AknLayout2ScalableDef.h> |
55 #include <AknLayout2ScalableDef.h> |
62 // CONSTANTS |
63 // CONSTANTS |
63 const TInt EUseSkinContext = 0x01; |
64 const TInt EUseSkinContext = 0x01; |
64 const TInt EParentAbsolute = 0x02; |
65 const TInt EParentAbsolute = 0x02; |
65 const TInt KRightSpace = 10; //space in pixels left at the end of text editor. |
66 const TInt KRightSpace = 10; //space in pixels left at the end of text editor. |
66 // CONSTANTS |
67 // CONSTANTS |
67 |
68 const TInt KMaxTitleLength = 512; |
68 _LIT(KAddressText,"http://www."); |
69 _LIT(KAddressText,"http://www."); |
69 |
70 |
70 // ================= MEMBER FUNCTIONS ======================= |
71 // ================= MEMBER FUNCTIONS ======================= |
71 |
72 |
72 // --------------------------------------------------------- |
73 // --------------------------------------------------------- |
578 SetupSkinContextL(); |
579 SetupSkinContextL(); |
579 iEditing = EFalse; |
580 iEditing = EFalse; |
580 TBool searchFeature = iView->ApiProvider().Preferences().SearchFeature(); |
581 TBool searchFeature = iView->ApiProvider().Preferences().SearchFeature(); |
581 if ( searchFeature ) |
582 if ( searchFeature ) |
582 { |
583 { |
583 iDefaultSearchText = StringLoader::LoadL( R_IS_WEB_SEARCH ); |
584 HBufC* searchProvider = HBufC::NewLC( KMaxTitleLength ); |
|
585 TPtr searchProviderPtr = searchProvider->Des(); |
|
586 |
|
587 iView->ApiProvider().Preferences().GetStringValueL( KBrowserSearchProviderTitle, |
|
588 KMaxTitleLength , searchProviderPtr); |
|
589 if( searchProvider->Length() == 0 ) |
|
590 { |
|
591 iDefaultSearchText = StringLoader::LoadL( R_IS_WEB_SEARCH ); |
|
592 } |
|
593 else |
|
594 { |
|
595 iDefaultSearchText = searchProvider->AllocL(); |
|
596 } |
|
597 CleanupStack::PopAndDestroy(searchProvider); |
584 } |
598 } |
585 |
599 |
586 //adaptive popuplist |
600 //adaptive popuplist |
587 iBAdaptiveListPopup = NULL; |
601 iBAdaptiveListPopup = NULL; |
588 if( aPopupListStatus && AUTOCOMP ) //ask the feature manager |
602 if( aPopupListStatus && AUTOCOMP ) //ask the feature manager |