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

void YView::commitPaintEvent (  ) 

If the number of calls of commitPaintEvent is equals to the number of calls of setPaintAutoCommit(false), pending events are applied, and returns in autocommit mode.

Definition at line 1652 of file view.cpp.

References abortPaintEvent(), clipSelection(), YViewIface::guiNotifyContentChanged(), YViewCursor::invalidate(), YSelection::isEmpty(), mainCursor, and YViewCursor::valid().

Referenced by YModeCommand::execCommand(), YZUndoBuffer::redo(), YSwapFile::replay(), YSession::sendKey(), and YZUndoBuffer::undo().

{
    if ( m_paintAutoCommit == 0 ) return ;
    if ( --m_paintAutoCommit == 0 ) {
        if ( keepCursor.valid() ) {
            mainCursor = keepCursor;
            keepCursor.invalidate();
            applyGoto( &mainCursor );
        }
        if ( ! mPaintSelection->isEmpty() ) {
            guiNotifyContentChanged( clipSelection(*mPaintSelection) );
        }
        abortPaintEvent();
    }
}


Generated by  Doxygen 1.6.0   Back to index