browserui/browser/BrowserAppSrc/BrowserGotoPane.cpp
changeset 32 92a061761a7b
parent 31 868cceedabd3
child 37 481242ead638
equal deleted inserted replaced
31:868cceedabd3 32:92a061761a7b
    36 #include <Featmgr.h>
    36 #include <Featmgr.h>
    37 #include <fepbase.h>
    37 #include <fepbase.h>
    38 #include <aknutils.h>
    38 #include <aknutils.h>
    39 #include <browseruisdkcrkeys.h>
    39 #include <browseruisdkcrkeys.h>
    40 
    40 
    41 #include <centralrepository.h>
       
    42 #include <AknLayout2ScalableDef.h>
    41 #include <AknLayout2ScalableDef.h>
    43 #include <AknFepInternalCRKeys.h>
       
    44 #include <aknlayoutfont.h>
    42 #include <aknlayoutfont.h>
    45 #include <PtiDefs.h>
       
    46 #include <aknlayoutscalable_avkon.cdl.h>
    43 #include <aknlayoutscalable_avkon.cdl.h>
    47 
    44 
    48 #include "CommonConstants.h"
    45 #include "CommonConstants.h"
    49 #include "BrowserGotoPane.h"
    46 #include "BrowserGotoPane.h"
    50 #include "BrowserAppUi.h"
    47 #include "BrowserAppUi.h"
    51 #include "BrowserUtil.h"
    48 #include "BrowserUtil.h"
    52 #include "browser.hrh"
    49 #include "browser.hrh"
    53 #include "favouriteslimits.h"
    50 #include <favouriteslimits.h>
    54 #include "BrowserAdaptiveListPopup.h"
    51 #include "BrowserAdaptiveListPopup.h"
    55 #include "BrowserContentView.h"
    52 #include "BrowserContentView.h"
    56 
    53 
    57 #include "eikon.hrh"
    54 #include "eikon.hrh"
    58 
    55 
   231         // Disallow chinese input.
   228         // Disallow chinese input.
   232         iEditor->SetAknEditorAllowedInputModes( EAknEditorTextInputMode |
   229         iEditor->SetAknEditorAllowedInputModes( EAknEditorTextInputMode |
   233                                             EAknEditorNumericInputMode );
   230                                             EAknEditorNumericInputMode );
   234         }
   231         }
   235     TInt editorFlags =  ((iFindKeywordMode) ? EAknEditorFlagDefault : EAknEditorFlagLatinInputModesOnly) |EAknEditorFlagUseSCTNumericCharmap;
   232     TInt editorFlags =  ((iFindKeywordMode) ? EAknEditorFlagDefault : EAknEditorFlagLatinInputModesOnly) |EAknEditorFlagUseSCTNumericCharmap;
   236 #ifdef RD_INTELLIGENT_TEXT_INPUT
   233 
   237     TInt physicalKeyboards = 0;
   234     // Always disable T9 input for goto url
   238     CRepository* aknFepRepository = CRepository::NewL( KCRUidAknFep );
   235     editorFlags = (editorFlags | EAknEditorFlagNoT9);
   239     User::LeaveIfNull( aknFepRepository );
   236 
   240 
       
   241     aknFepRepository->Get( KAknFepPhysicalKeyboards,  physicalKeyboards );
       
   242     delete aknFepRepository;
       
   243 
       
   244     if ( physicalKeyboards &&   EPtiKeyboardQwerty3x11 ) {
       
   245         editorFlags = (editorFlags | EAknEditorFlagNoT9);
       
   246     }
       
   247 #endif
       
   248     iEditor->SetAknEditorFlags( editorFlags );
   237     iEditor->SetAknEditorFlags( editorFlags );
   249 
   238 
   250     iEditor->SetAknEditorPermittedCaseModes (   EAknEditorUpperCase |
   239     iEditor->SetAknEditorPermittedCaseModes (   EAknEditorUpperCase |
   251                                                 EAknEditorLowerCase );
   240                                                 EAknEditorLowerCase );
   252 
   241 
   299 // CBrowserGotoPane::HandleFindSizeChanged
   288 // CBrowserGotoPane::HandleFindSizeChanged
   300 // ---------------------------------------------------------------------------
   289 // ---------------------------------------------------------------------------
   301 //
   290 //
   302 void CBrowserGotoPane::HandleFindSizeChanged()
   291 void CBrowserGotoPane::HandleFindSizeChanged()
   303     {
   292     {
   304     if ( !AknLayoutUtils::PenEnabled() )
   293     
   305         {
   294     if ( iSearchEditor && !iFindKeywordMode)
   306         if ( iSearchEditor && !iFindKeywordMode)
   295         {
   307             {
       
   308             TRect clientRect = CBrowserAppUi::Static()->ClientRect();
   296             TRect clientRect = CBrowserAppUi::Static()->ClientRect();
   309             TAknWindowLineLayout findWindow = AknLayout::popup_find_window();
   297             TAknWindowLineLayout findWindow = AknLayout::popup_find_window();
   310 
   298 
   311             TRect findWindowRect = AknLayoutUtils::RectFromCoords( clientRect,findWindow.il, findWindow.it,
   299             TRect findWindowRect = AknLayoutUtils::RectFromCoords( clientRect,findWindow.il, findWindow.it,
   312                     findWindow.ir, findWindow.ib, findWindow.iW, findWindow.iH);
   300                     findWindow.ir, findWindow.ib, findWindow.iW, findWindow.iH);
   313 
   301 
   314             // Now Increase the height of rect to make room for two editors (Goto + search)//
   302             // Now Increase the height of rect to make room for two editors (Goto + search)//
   315             findWindowRect.iTl.iY -= ( findWindow.iH  );
   303             findWindowRect.iTl.iY -= ( findWindow.iH  );
   316             SetRect( findWindowRect );
   304             SetRect( findWindowRect );
   317             }
   305         }
   318         else
   306 
   319             {
   307     else if ( !AknLayoutUtils::PenEnabled() )
       
   308         {
       
   309         
   320             TRect parentrect = iAvkonAppUi->ApplicationRect();
   310             TRect parentrect = iAvkonAppUi->ApplicationRect();
   321 
   311 
   322             TAknLayoutRect lrect;
   312             TAknLayoutRect lrect;
   323             lrect.LayoutRect( parentrect,
   313             lrect.LayoutRect( parentrect,
   324                         AknLayout::main_pane( CBrowserAppUi::Static()->ApplicationRect(), 0, 1, 1 )
   314                         AknLayout::main_pane( CBrowserAppUi::Static()->ApplicationRect(), 0, 1, 1 )
   325                         );
   315                         );
   326             AknLayoutUtils::LayoutControl ( this,
   316             AknLayoutUtils::LayoutControl ( this,
   327                                         lrect.Rect(),
   317                                         lrect.Rect(),
   328                                         AknLayout::popup_find_window() );
   318                                         AknLayout::popup_find_window() );
   329             }
   319         }
   330         }
   320     else if( AknLayoutUtils::PenEnabled() )
   331     else
       
   332         {
   321         {
   333         // The ClientRect() will be the application rectangle minus any
   322         // The ClientRect() will be the application rectangle minus any
   334         // toolbars/menu bars etc.
   323         // toolbars/menu bars etc.
   335         AknLayoutUtils::LayoutControl ( this,
   324         AknLayoutUtils::LayoutControl ( this,
   336                                         CBrowserAppUi::Static()->ClientRect(),
   325                                         CBrowserAppUi::Static()->ClientRect(),