notepad/notepad1/LibSrc/NpdExternalTextEditorDialog.cpp
branchRCL_3
changeset 36 9c5b1510919f
parent 0 f979ecb2b13e
child 60 96907930389d
equal deleted inserted replaced
30:d68a4b5d5885 36:9c5b1510919f
   308     HideMenu();
   308     HideMenu();
   309 	if ( iFindItemMenu && iFindItemMenu->CommandIsValidL( aCommandId ) )
   309 	if ( iFindItemMenu && iFindItemMenu->CommandIsValidL( aCommandId ) )
   310         {
   310         {
   311            TInt ret = DoSearchL( iFindItemMenu->SearchCase(aCommandId) );
   311            TInt ret = DoSearchL( iFindItemMenu->SearchCase(aCommandId) );
   312 		   if ( ret == EAknSoftkeyExit )
   312 		   if ( ret == EAknSoftkeyExit )
   313 			{
   313 		       {
   314 				aCommandId = ret;
   314                aCommandId = ret;
   315 			}
   315 		       }
       
   316 		   else
       
   317                {
       
   318                return;
       
   319                }
   316         }
   320         }
   317 
   321 
   318     switch (aCommandId)
   322     switch (aCommandId)
   319         {
   323         {
   320         case ENotepadCmdDelete:
   324         case ENotepadCmdDelete:
   409 // -----------------------------------------------------------------------------
   413 // -----------------------------------------------------------------------------
   410 //
   414 //
   411 TInt CNotepadExternalTextDialog::DoSearchL(CFindItemEngine::TFindItemSearchCase aCase)
   415 TInt CNotepadExternalTextDialog::DoSearchL(CFindItemEngine::TFindItemSearchCase aCase)
   412 	{
   416 	{
   413 		CFindItemDialog* dialog = CFindItemDialog::NewL( iEditor->Text()->Read(0), aCase );
   417 		CFindItemDialog* dialog = CFindItemDialog::NewL( iEditor->Text()->Read(0), aCase );
       
   418 	    dialog->EnableSingleClick( ETrue );
   414 	    TInt ret = dialog->ExecuteLD();
   419 	    TInt ret = dialog->ExecuteLD();
   415 	    TBuf<128> test = _L("FI returned: ");
   420 	    TBuf<128> test = _L("FI returned: ");
   416 	    test.AppendNum(ret);
   421 	    test.AppendNum(ret);
   417 	    iEikonEnv->InfoMsg(test);
   422 	    iEikonEnv->InfoMsg(test);
   418 		return ret;
   423 		return ret;