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

void YView::updateFileName (  ) 

Update the GUI when current file name has changed. Updates the status bar and notificates the GUI through guiUpdateFileName.

Can't be called until the GUI has been initialized.

Definition at line 305 of file view.cpp.

References YBuffer::fileName(), YViewIface::guiStatusBar(), YViewIface::guiUpdateFileName(), myBuffer(), and YStatusBarIface::setFileName().

Referenced by YSession::createView(), YBuffer::filenameChanged(), and YBuffer::updateAllViews().

{
    QString filename = myBuffer()->fileName();
    if (guiStatusBar())
        guiStatusBar()->setFileName(filename);
    guiUpdateFileName();
}


Generated by  Doxygen 1.6.0   Back to index