src/hbplugins/inputmethods/touchinput/virtualqwerty.cpp
changeset 28 b7da29130b0e
parent 23 e6ad4ef83b23
child 30 80e4d18b72f5
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
    90     connect(HbInputSettingProxy::instance(), SIGNAL(primaryCandidateModeChanged(HbPrimaryCandidateMode)), this, SLOT(primaryCandidateModeChanged(HbPrimaryCandidateMode)));
    90     connect(HbInputSettingProxy::instance(), SIGNAL(primaryCandidateModeChanged(HbPrimaryCandidateMode)), this, SLOT(primaryCandidateModeChanged(HbPrimaryCandidateMode)));
    91     connect(HbInputSettingProxy::instance(), SIGNAL(autocompletionStateChanged(HbKeyboardSettingFlags,bool)), this, SLOT(autocompletionStateChanged(HbKeyboardSettingFlags,bool)));
    91     connect(HbInputSettingProxy::instance(), SIGNAL(autocompletionStateChanged(HbKeyboardSettingFlags,bool)), this, SLOT(autocompletionStateChanged(HbKeyboardSettingFlags,bool)));
    92     connect(HbInputSettingProxy::instance(), SIGNAL(typingCorrectionLevelChanged(HbTypingCorrectionLevel)), this, SLOT(typingCorrectionLevelChanged(HbTypingCorrectionLevel)));
    92     connect(HbInputSettingProxy::instance(), SIGNAL(typingCorrectionLevelChanged(HbTypingCorrectionLevel)), this, SLOT(typingCorrectionLevelChanged(HbTypingCorrectionLevel)));
    93     mPredictionModeHandler->setPrimaryCandidateMode(HbInputSettingProxy::instance()->primaryCandidateMode());
    93     mPredictionModeHandler->setPrimaryCandidateMode(HbInputSettingProxy::instance()->primaryCandidateMode());
    94     mPredictionModeHandler->setAutocompletionStatus(HbInputSettingProxy::instance()->isAutocompletionEnabled(HbKeyboardSettingQwerty));
    94     mPredictionModeHandler->setAutocompletionStatus(HbInputSettingProxy::instance()->isAutocompletionEnabled(HbKeyboardSettingQwerty));
    95     mPredictionModeHandler->setTypingCorrectionLevel(HbInputSettingProxy::instance()->typingCorrectionLevel());
    95   
    96 }
    96 }
    97 
    97 
    98 // ---------------------------------------------------------------------------
    98 // ---------------------------------------------------------------------------
    99 // HbVirtualQwerty::~HbVirtualQwerty
    99 // HbVirtualQwerty::~HbVirtualQwerty
   100 //
   100 //
   296     }
   296     }
   297 
   297 
   298     if(mActiveModeHandler) {
   298     if(mActiveModeHandler) {
   299         mActiveModeHandler->actionHandler(HbInputModeHandler::HbInputModeActionSetKeypad);
   299         mActiveModeHandler->actionHandler(HbInputModeHandler::HbInputModeActionSetKeypad);
   300     }
   300     }
       
   301 
       
   302     if(mCurrentKeypad && mCurrentKeypad == mQwertyAlphaKeypad) {
       
   303         mPredictionModeHandler->setTypingCorrectionLevel(HbInputSettingProxy::instance()->typingCorrectionLevel());
       
   304     }
       
   305     else {
       
   306         mPredictionModeHandler->setTypingCorrectionLevel(HbTypingCorrectionLevelLow);
       
   307     }
   301 }
   308 }
   302 
   309 
   303 /*!
   310 /*!
   304 vkb widget is about to call a custom action that is mapped to one of the keypad buttons.
   311 vkb widget is about to call a custom action that is mapped to one of the keypad buttons.
   305 */
   312 */
   347     mActiveModeHandler->mouseHandler(x, event);
   354     mActiveModeHandler->mouseHandler(x, event);
   348 }
   355 }
   349 
   356 
   350 void HbVirtualQwerty::keypadClosed()
   357 void HbVirtualQwerty::keypadClosed()
   351 {    
   358 {    
   352     if (mVkbHost->keypadStatus() == HbVkbHost::HbVkbStatusMinimized) {
   359     if (mVkbHost && mVkbHost->keypadStatus() == HbVkbHost::HbVkbStatusMinimized) {
   353         closeExactWordPopup();
   360         closeExactWordPopup();
   354     }   
   361     }   
   355 }
   362 }
   356 
   363 
   357 void HbVirtualQwerty::keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod)
   364 void HbVirtualQwerty::keypadCloseEventDetected(HbInputVkbWidget::HbVkbCloseMethod vkbCloseMethod)