textinput/peninputvkbjp/src/peninputvkbwindow.cpp
branchRCL_3
changeset 7 6defe5d1bd39
parent 0 eb1f2e154e89
equal deleted inserted replaced
6:6ceef9a83b1a 7:6defe5d1bd39
   378 
   378 
   379     // Switch to hwr button
   379     // Switch to hwr button
   380     AddButtonL( EPeninutWindowCtrlIdSwitchToHwrBtn,
   380     AddButtonL( EPeninutWindowCtrlIdSwitchToHwrBtn,
   381                 EPeninputLayoutEventToHwr,
   381                 EPeninputLayoutEventToHwr,
   382                 R_PENINPUT_LAYOUT_VKB_HWR );
   382                 R_PENINPUT_LAYOUT_VKB_HWR );
   383     for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
   383     
   384         {
   384     if( iCtrlPool != NULL )
   385         if ( iCtrlPool )
   385         {
       
   386         for ( TInt i = 0; i < iCtrlPool->ControlCount(); i++ )
   386             {
   387             {
   387             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
   388             iCtrlPool->ControlByIndex( i )->AddEventObserver( UiLayout() );
   388             }
   389             }
   389         }
   390         }
   390     }
   391     }
   709         TInt unitHeight = CPeninputDataConverter::AnyToInt
   710         TInt unitHeight = CPeninputDataConverter::AnyToInt
   710             ( iLayoutContext->RequestData( EPeninputDataTypeUnitHeight ) );
   711             ( iLayoutContext->RequestData( EPeninputDataTypeUnitHeight ) );
   711 
   712 
   712         CFepUiBaseCtrl* ctrl = iCtrlPool->Control( EPeninutWindowCtrlIdRangeBar );
   713         CFepUiBaseCtrl* ctrl = iCtrlPool->Control( EPeninutWindowCtrlIdRangeBar );
   713         TRect rect = TRect( TPoint(0,0), TSize( unitWidth, unitHeight ) );
   714         TRect rect = TRect( TPoint(0,0), TSize( unitWidth, unitHeight ) );
   714         static_cast<CAknFepCtrlRangeBar*> (ctrl)->SizeChanged(rect);
   715         
       
   716         if( ctrl != NULL )
       
   717             {
       
   718             static_cast<CAknFepCtrlRangeBar*> (ctrl)->SizeChanged(rect);
       
   719             }
   715         }
   720         }
   716     }
   721     }
   717 
   722 
   718 // ---------------------------------------------------------------------------
   723 // ---------------------------------------------------------------------------
   719 // CPeninputVkbWindow::CPeninputVkbWindow
   724 // CPeninputVkbWindow::CPeninputVkbWindow