textinput/peninputgenerichwr/src/peninputgenerichwrwindow.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 14 e6a39382bb9c
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
   344     iModeSwitchChoice = CPeninputLayoutInputmodelChoice::NewL( UiLayout(),
   344     iModeSwitchChoice = CPeninputLayoutInputmodelChoice::NewL( UiLayout(),
   345             EPeninutWindowCtrlIdSwitcherPopupWindow, EPluginInputModeHwr);
   345             EPeninutWindowCtrlIdSwitcherPopupWindow, EPluginInputModeHwr);
   346     iModeSwitchChoice->SetListSkinID( KAknsIIDQsnFrList, KAknsIIDQsnFrPopupSub );
   346     iModeSwitchChoice->SetListSkinID( KAknsIIDQsnFrList, KAknsIIDQsnFrPopupSub );
   347     iModeSwitchChoice->AddEventObserver( UiLayout() );             
   347     iModeSwitchChoice->AddEventObserver( UiLayout() );             
   348     AddControlL( iModeSwitchChoice );
   348     AddControlL( iModeSwitchChoice );
   349       
   349     
   350     for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
   350     if( iCtrlPool != NULL )
   351         {
   351         {
   352         if ( iCtrlPool )
   352         for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
   353             {
   353             {
   354             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
   354             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
   355             }
   355             }
   356         }
   356         }
   357     }
   357     }