Logo Search packages:      
Sourcecode: akregator version File versions

void View::slotFrameChanged ( Frame *  f  )  [slot]

called when another part/frame is activated. Updates progress bar, caption etc. accordingly

Parameters:
f the activated frame

Definition at line 623 of file akregator_view.cpp.

References m_articleViewer, Akregator::Part::mergePart(), Akregator::Part::setCanceled(), Akregator::Part::setCaption(), Akregator::Part::setCompleted(), Akregator::Part::setProgress(), Akregator::Part::setStarted(), and Akregator::Part::setStatusBar().

Referenced by View().

{
    if (m_shuttingDown)
        return;
    
    m_currentFrame=f;

    m_tabsClose->setEnabled(f != m_mainFrame);

    m_part->setCaption(f->caption());
    m_part->setProgress(f->progress());
    m_part->setStatusBar(f->statusText());

    m_part->mergePart(m_articleViewer);
    
    if (f->part() == m_part)
        m_part->mergePart(m_articleViewer);
    else
        m_part->mergePart(f->part());

    f->widget()->setFocus();
    
    switch (f->state())
    {
        case Frame::Started:
            m_part->setStarted(f->part());
            break;
        case Frame::Canceled:
            m_part->setCanceled(f->part(), QString::null);
            break;
        case Frame::Idle:
        case Frame::Completed:
        default:
            m_part->setCompleted(f->part());
    }
}


Generated by  Doxygen 1.6.0   Back to index