uifw/EikStd/coctlsrc/EIKCOLIB.CPP
branchRCL_3
changeset 10 9f56a4e1b8ab
parent 0 2f259fa3e83a
child 55 aecbbf00d063
equal deleted inserted replaced
9:aabf2c525e0f 10:9f56a4e1b8ab
     1 /*
     1 /*
     2 * Copyright (c) 1997-1999 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   521 TRect CEikAppUiFactory::ClientRect()
   521 TRect CEikAppUiFactory::ClientRect()
   522     {
   522     {
   523     CCoeEnv* env = CCoeEnv::Static();
   523     CCoeEnv* env = CCoeEnv::Static();
   524     TRect rect = LafAppUi::ClientRect( *env, *this );
   524     TRect rect = LafAppUi::ClientRect( *env, *this );
   525 
   525 
   526 #ifdef RD_SCALABLE_UI_V2
       
   527     if ( TouchPane() )
       
   528         {
       
   529         TouchPane()->ReduceRect( rect );
       
   530         }
       
   531 
       
   532     CAknToolbar* toolbar = CurrentFixedToolbar();
   526     CAknToolbar* toolbar = CurrentFixedToolbar();
   533 
   527 
   534     // reduce fixed toolbar's area
   528     // Reduce fixed toolbar's area.
   535     if ( toolbar )
   529     if ( toolbar )
   536         {
   530         {
   537         TInt flags = toolbar->ToolbarFlags();
   531         TInt flags = toolbar->ToolbarFlags();
   538 
   532 
   539         if ( flags & KAknToolbarFixed && !( flags & KAknToolbarDefault ) )
   533         if ( flags & KAknToolbarFixed && !( flags & KAknToolbarDefault ) )
   540             {
   534             {
   541             toolbar->ReduceRect( rect );
   535             toolbar->ReduceRect( rect );
   542             }
   536             }
   543         }
   537         }
   544 
   538 
   545 	  // recaculate the client rect is splitinput is enabled.
   539     // Recalculate the client rect is split input is enabled.
   546     if ( iExtension && iExtension->iSplitInput )
   540     if ( iExtension && iExtension->iSplitInput )
   547         {
   541         {
   548         TInt inputTop = rect.iBr.iY;
   542         TInt inputTop = rect.iBr.iY;
   549         TAknLayoutRect splitwnd;
   543         TAknLayoutRect splitwnd;
   550 		TRect screenRect ;
   544         TRect screenRect ;
   551 		AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EScreen, screenRect );
   545         AknLayoutUtils::LayoutMetricsRect( AknLayoutUtils::EScreen, screenRect );
   552 
   546 
   553         if ( Layout_Meta_Data::IsLandscapeOrientation() )
   547         if ( Layout_Meta_Data::IsLandscapeOrientation() )
   554             {
   548             {
   555             splitwnd.LayoutRect( screenRect, AknLayoutScalable_Avkon::popup_fep_vkbss_window (0).LayoutLine() );
   549             splitwnd.LayoutRect(
   556             TRect wndRc = splitwnd.Rect();
   550                 screenRect,
   557             inputTop = wndRc.iTl.iY;
   551                 AknLayoutScalable_Avkon::popup_fep_vkbss_window( 0 ).LayoutLine() );
   558             }
   552             }
   559         else
   553         else
   560             {
   554             {
   561             splitwnd.LayoutRect( screenRect, AknLayoutScalable_Avkon::popup_fep_ituss_window(0).LayoutLine() );
   555             splitwnd.LayoutRect(
   562             TRect wndRc = splitwnd.Rect();
   556                 screenRect,
   563             inputTop = wndRc.iTl.iY;
   557                 AknLayoutScalable_Avkon::popup_fep_ituss_window( 0 ).LayoutLine() );
   564             }
   558             }
       
   559         
       
   560         TRect wndRc( splitwnd.Rect() );
       
   561         inputTop = wndRc.iTl.iY;
   565         rect.iBr.iY = rect.iBr.iY > inputTop ? inputTop : rect.iBr.iY;
   562         rect.iBr.iY = rect.iBr.iY > inputTop ? inputTop : rect.iBr.iY;
   566         rect.iTl.iY = 0;
   563         rect.iTl.iY = 0;
   567         }
   564         }
   568 
   565 
   569 #endif // RD_SCALABLE_UI_V2	
       
   570 
       
   571     return rect;
   566     return rect;
   572     }
   567     }
       
   568 
   573 
   569 
   574 void CEikAppUiFactory::ReadAppInfoResourceL(TInt aResourceFileOffset, CEikAppUi* aAppUi)
   570 void CEikAppUiFactory::ReadAppInfoResourceL(TInt aResourceFileOffset, CEikAppUi* aAppUi)
   575     {
   571     {
   576     const TInt resourceFileOffset=(aResourceFileOffset)? aResourceFileOffset : aAppUi->Application()->ResourceFileOffset();
   572     const TInt resourceFileOffset=(aResourceFileOffset)? aResourceFileOffset : aAppUi->Application()->ResourceFileOffset();
   577     SEikAppInfo appInfo;
   573     SEikAppInfo appInfo;