textinput/peninputcommonlayout/src/peninputlayoutwindow.cpp
branchRCL_3
changeset 10 6defe5d1bd39
parent 0 eb1f2e154e89
child 14 e6a39382bb9c
equal deleted inserted replaced
8:6ceef9a83b1a 10:6defe5d1bd39
  2073 //     
  2073 //     
  2074 EXPORT_C void CPeninputLayoutWindow::SetEnableSwitchToHwr(TBool aEnable)
  2074 EXPORT_C void CPeninputLayoutWindow::SetEnableSwitchToHwr(TBool aEnable)
  2075     {
  2075     {
  2076     CAknFepCtrlEventButton* switchToHwrBtn = static_cast<CAknFepCtrlEventButton*>
  2076     CAknFepCtrlEventButton* switchToHwrBtn = static_cast<CAknFepCtrlEventButton*>
  2077         ( iCtrlPool->Control( EPeninutWindowCtrlIdSwitchToHwrBtn ) );
  2077         ( iCtrlPool->Control( EPeninutWindowCtrlIdSwitchToHwrBtn ) );
  2078 
  2078     
  2079     if ( aEnable )    
  2079     if( switchToHwrBtn != NULL )
  2080         {
  2080         {
  2081         switchToHwrBtn->SetDimmed(EFalse);
  2081         if ( aEnable )    
  2082         }
  2082             {
  2083     else
  2083             switchToHwrBtn->SetDimmed(EFalse);
  2084         {
  2084             }
  2085         switchToHwrBtn->SetDimmed(ETrue);
  2085         else
  2086         switchToHwrBtn->SetActive(EFalse);
  2086             {
  2087         } 
  2087             switchToHwrBtn->SetDimmed(ETrue);
       
  2088             switchToHwrBtn->SetActive(EFalse);
       
  2089             }
       
  2090         }
  2088     }
  2091     }
  2089 
  2092 
  2090 // ---------------------------------------------------------------------------
  2093 // ---------------------------------------------------------------------------
  2091 // CPeninputLayoutWindow::SetEnableSettingBtn
  2094 // CPeninputLayoutWindow::SetEnableSettingBtn
  2092 // (other items were commented in a header)
  2095 // (other items were commented in a header)
  2095 EXPORT_C void CPeninputLayoutWindow::SetEnableSettingBtn(TBool aEnable)
  2098 EXPORT_C void CPeninputLayoutWindow::SetEnableSettingBtn(TBool aEnable)
  2096     {
  2099     {
  2097     CAknFepCtrlEventButton* langSetBtn = static_cast<CAknFepCtrlEventButton*>
  2100     CAknFepCtrlEventButton* langSetBtn = static_cast<CAknFepCtrlEventButton*>
  2098         ( iCtrlPool->Control( EPeninutWindowCtrlIdInputLangSwitcherBtn ) );
  2101         ( iCtrlPool->Control( EPeninutWindowCtrlIdInputLangSwitcherBtn ) );
  2099         
  2102         
  2100     if ( aEnable )    
  2103     
  2101         {
  2104     if( langSetBtn != NULL )
  2102         langSetBtn->SetDimmed(EFalse);
  2105         {
  2103         iTouchInputOptionButton->SetDimmed(EFalse);
  2106         if ( aEnable )    
  2104         }
  2107             {
  2105     else
  2108             langSetBtn->SetDimmed(EFalse);
  2106         {
  2109             iTouchInputOptionButton->SetDimmed(EFalse);
  2107         langSetBtn->SetDimmed(ETrue);
  2110             }
  2108         langSetBtn->SetActive(EFalse);
  2111         else
  2109         iTouchInputOptionButton->SetDimmed(ETrue);
  2112             {
  2110         iTouchInputOptionButton->SetActive(EFalse);
  2113             langSetBtn->SetDimmed(ETrue);
  2111         } 
  2114             langSetBtn->SetActive(EFalse);
       
  2115             iTouchInputOptionButton->SetDimmed(ETrue);
       
  2116             iTouchInputOptionButton->SetActive(EFalse);
       
  2117             }
       
  2118         }
  2112     }
  2119     }
  2113         
  2120         
  2114 // ---------------------------------------------------------------------------
  2121 // ---------------------------------------------------------------------------
  2115 // CPeninputLayoutWindow::ReconfigUnitSize
  2122 // CPeninputLayoutWindow::ReconfigUnitSize
  2116 // (other items were commented in a header)
  2123 // (other items were commented in a header)