uifw/AvKon/src/akninfrm.cpp
branchRCL_3
changeset 19 aecbbf00d063
parent 18 fcdfafb36fe7
child 20 d48ab3b357f1
equal deleted inserted replaced
18:fcdfafb36fe7 19:aecbbf00d063
   274     TRect parent( Rect() );       // parent for components
   274     TRect parent( Rect() );       // parent for components
   275     TRect editorParent( Rect() ); // parent for the editor
   275     TRect editorParent( Rect() ); // parent for the editor
   276     TRect rect( Rect() );         // rect of the whole shebang
   276     TRect rect( Rect() );         // rect of the whole shebang
   277     TAknLayoutRect r;            // common temporary layout rect
   277     TAknLayoutRect r;            // common temporary layout rect
   278 
   278 
       
   279     TAknWindowComponentLayout outline(0);
       
   280     TAknWindowLineLayout      iconPos(0);
       
   281     TAknTextComponentLayout   editor(0);
       
   282 
   279     TBool apac( AknLayoutUtils::Variant() == EApacVariant && ( iFlags & EShowIndicators ) );
   283     TBool apac( AknLayoutUtils::Variant() == EApacVariant && ( iFlags & EShowIndicators ) );
   280     
       
   281     TAknWindowComponentLayout outline = AknLayoutScalable_Avkon::input_find_pane();
       
   282     TAknWindowLineLayout iconPos = AknLayoutScalable_Avkon::find_popup_pane_g1().LayoutLine();
       
   283     TAknTextComponentLayout   editor = AknLayoutScalable_Avkon::input_popup_find_pane_t1( apac ? 2 : 0 );
       
   284 
       
   285 
   284 
   286     if ( iFlags & EPopupLayout ) // popup find box 
   285     if ( iFlags & EPopupLayout ) // popup find box 
   287         {
   286         {
   288         _AKNTRACE( "[%s][%s] PopupLayout", 
   287         _AKNTRACE( "[%s][%s] PopupLayout", 
   289         		"CAknInputFrame", __FUNCTION__ );
   288         		"CAknInputFrame", __FUNCTION__ );
   351     if ( !iInputContext )
   350     if ( !iInputContext )
   352         {
   351         {
   353         // we need to provide own context if one does not exist
   352         // we need to provide own context if one does not exist
   354         // because old style drawing did kind of work even
   353         // because old style drawing did kind of work even
   355         // without calling SetInputContext( ... )
   354         // without calling SetInputContext( ... )
   356         TRAP_IGNORE
   355         iInputContext = CAknsFrameBackgroundControlContext::NewL(
   357             ( 
   356             KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse );
   358             iInputContext = CAknsFrameBackgroundControlContext::NewL(
   357         iFlags = iFlags | EOwnsInputContext;
   359                     KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse);
   358         // also need to provide skin for the editor in this case
   360         
   359         static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );
   361             if (iInputContext)
       
   362                 {
       
   363                 iFlags = iFlags | EOwnsInputContext;
       
   364                 // also need to provide skin for the editor in this case
       
   365                 static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );  
       
   366                 }
       
   367             );
       
   368         }
   360         }
   369 
   361 
   370     if ( iInputContext )
   362     if ( iInputContext )
   371         {
   363         {
   372         // this layout is actually from form!
   364         // this layout is actually from form!
   514     CCoeControl::HandleResourceChange( aType );
   506     CCoeControl::HandleResourceChange( aType );
   515     switch ( aType )
   507     switch ( aType )
   516         {
   508         {
   517         case KAknsMessageSkinChange:
   509         case KAknsMessageSkinChange:
   518         case KEikDynamicLayoutVariantSwitch:
   510         case KEikDynamicLayoutVariantSwitch:
   519             TRAP_IGNORE(CreateIconL());
   511             CreateIconL();
   520             break;
   512             break;
   521             
   513             
   522         default:
   514         default:
   523             break;
   515             break;
   524         }
   516         }