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

YView::~YView (  )  [virtual]

The destructor

Definition at line 127 of file view.cpp.

References YSession::deleteBuffer(), endl(), mBuffer, mLineSearch, YBuffer::rmView(), YBuffer::saveYzisInfo(), YSession::self(), YModePool::stop(), and YBuffer::views().

{
    dbg() << "~YView(): Deleting view " << id << endl;
    mModePool->stop();
    mBuffer->saveYzisInfo(this);
    mBuffer->rmView(this); //make my buffer forget about me
    if (mBuffer->views().isEmpty()) {
        // last view deleted, delete the buffer
        YSession::self()->deleteBuffer( mBuffer );
    }

    delete selectionPool;
    delete mPaintSelection;
    delete mLineSearch;
    delete mModePool;
    delete mFoldPool;
}


Generated by  Doxygen 1.6.0   Back to index