emailuis/emailui/src/ncseditor.cpp
branchRCL_3
changeset 73 c8382f7b54ef
parent 64 3533d4323edc
child 80 726fba06891a
equal deleted inserted replaced
70:968773a0b6ef 73:c8382f7b54ef
   127 
   127 
   128 // -----------------------------------------------------------------------------
   128 // -----------------------------------------------------------------------------
   129 // CNcsEditor::GetLineRectL() const
   129 // CNcsEditor::GetLineRectL() const
   130 // -----------------------------------------------------------------------------
   130 // -----------------------------------------------------------------------------
   131 //
   131 //
   132 void CNcsEditor::GetLineRectL( TRect& aLineRect ) const
   132 void CNcsEditor::GetLineRect( TRect& aLineRect ) const
   133     {
   133     {
   134     FUNC_LOG;
   134     FUNC_LOG;
   135     TPoint position;
   135     TPoint position;
   136     iLayout->DocPosToXyPosL( CursorPos(), position );
   136     TRAP_IGNORE( iLayout->DocPosToXyPosL( CursorPos(), position ) );
   137     iLayout->GetLineRect( position.iY, aLineRect );
   137     iLayout->GetLineRect( position.iY, aLineRect );
   138     }
   138     }
   139 
   139 
   140 // -----------------------------------------------------------------------------
   140 // -----------------------------------------------------------------------------
   141 // CNcsEditor::CursorLineNumber() const
   141 // CNcsEditor::CursorLineNumber() const
   668 
   668 
   669 
   669 
   670 void CNcsEditor::SetPhysicsEmulationOngoing( TBool aPhysOngoing )
   670 void CNcsEditor::SetPhysicsEmulationOngoing( TBool aPhysOngoing )
   671     {
   671     {
   672     iPhysOngoing = aPhysOngoing;
   672     iPhysOngoing = aPhysOngoing;
   673     this->SetCursorVisible( !aPhysOngoing );
   673     if ( IsFocused() )
       
   674         {
       
   675         SetCursorVisible( !aPhysOngoing );
       
   676         }
   674     }
   677     }
   675 
   678 
   676 TBool CNcsEditor::IsPhysicsEmulationOngoing() const
   679 TBool CNcsEditor::IsPhysicsEmulationOngoing() const
   677     {
   680     {
   678     return iPhysOngoing;
   681     return iPhysOngoing;