textinput/peninputsplititut/src/peninputsplititutwindowmanager.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 44 ecbabf52600f
child 56 8152b1f1763a
--- a/textinput/peninputsplititut/src/peninputsplititutwindowmanager.cpp	Tue Sep 14 21:59:06 2010 +0300
+++ b/textinput/peninputsplititut/src/peninputsplititutwindowmanager.cpp	Wed Sep 15 12:34:44 2010 +0300
@@ -259,8 +259,18 @@
         	break;
         case ECmdPenInputFingerMatchIndicator:
         	{
-        	iWindow->UpdateIndiBubbleL( aData );
-        	handle = ETrue;
+            if ( iLayoutOwner->UiMgr()->CurrentState() )
+                {
+                if (iLayoutOwner->UiMgr()->CurrentState()->StateType() == CSplitItutUiMgrBase::EStateSpelling )
+                    {
+                    iWindow->UpdateSpellIndiBubbleL( aData );
+                    }
+                else
+                    {
+                    iWindow->UpdateSplitIndiBubbleL( aData );
+                    }
+                handle = ETrue;
+                }
         	}
         	break;
         default:
@@ -328,8 +338,31 @@
 // CSplitItutWindowManager::HandleAppInfoChangeL
 // ---------------------------------------------------------------------------
 //
-void CSplitItutWindowManager::HandleAppInfoChangeL(const TDesC& /*aInfo*/)
+void CSplitItutWindowManager::HandleAppInfoChangeL(const TDesC& aInfo)
     {
+    if ( iWindow )
+        {
+        CBubbleCtrl* splitIndibubble = static_cast<CBubbleCtrl*> 
+                                    (iWindow->Control(ECtrlIdSplitIndiBubble)) ;
+
+        if ( splitIndibubble )
+            { 
+            if ( aInfo.Length() > 0 && !iInEditWordQueryDlg)
+                {
+                TRAP_IGNORE(splitIndibubble->SetTextL(aInfo));
+                }
+            else
+                {
+                TRAP_IGNORE(splitIndibubble->SetTextL(KNullDesC));
+                }
+            iWindow->SetSplitIndiBubble();
+            if (splitIndibubble->IsShowing())//make sure we redraw if visible
+                {
+                splitIndibubble->Popup(splitIndibubble->Rect());
+                }
+            }
+        }
+        
     }
 
 // ---------------------------------------------------------------------------