Logo Search packages:      
Sourcecode: yzis version File versions  Download package

void YView::initChanges ( QPoint  pos  ) 

initChanges and applyChanges are called by the buffer to inform the view that there are changes around x,y. Each view have to find what they have to redraw, depending of the wrap option, and of course window size.

Definition at line 914 of file view.cpp.

References YViewCursor::buffer(), YBuffer::getLineLength(), gotoxy(), YBuffer::lineCount(), mainCursor, mBuffer, and YViewCursor::screenY().

{
    beginChanges = pos;
    origPos = mainCursor.buffer();
    lineDY = 1;
    if ( wrap && pos.y() < mBuffer->lineCount() ) {
        gotoxy( qMax( 1, mBuffer->getLineLength( pos.y() ) ) - 1, pos.y(), false );
        lineDY = mainCursor.screenY();
    }
    gotoxy( pos, false );
}


Generated by  Doxygen 1.6.0   Back to index