~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/konqueror/src/konqviewmanager.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-12-19 18:29:39 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20091219182939-i4q5c16348k7vxuk
Tags: 4:4.3.85-0ubuntu1
* New upstream release
  - Bump build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
    mainWindow->viewManager()->loadRootItem( configGroup, mainWindow, KUrl(), true, KUrl() );
363
363
    mainWindow->applyMainWindowSettings( configGroup, true );
364
364
    mainWindow->activateChild();
 
365
 
 
366
#ifdef DEBUG_VIEWMGR
 
367
    mainWindow->viewManager()->printFullHierarchy();
 
368
#endif
365
369
    return mainWindow;
366
370
}
367
371
 
373
377
        return KonqViewManager::openSavedWindow(configGroup);
374
378
    } else {
375
379
        loadRootItem( configGroup, tabContainer(), KUrl(), true, KUrl() );
 
380
#ifndef NDEBUG
 
381
        printFullHierarchy();
 
382
#endif
376
383
        return m_pMainWindow;
377
384
    }
378
385
}
827
834
 
828
835
  parentContainer->insertChildFrame( newViewFrame, index );
829
836
 
830
 
  if (parentContainer->frameType() != KonqFrameBase::Tabs) newViewFrame->show();
 
837
  if (parentContainer->frameType() != KonqFrameBase::Tabs) {
 
838
      newViewFrame->show();
 
839
  }
831
840
 
832
841
  // Don't register passive views to the part manager
833
842
  if ( !v->isPassiveMode() ) // note that KonqView's constructor could set this to true even if passiveMode is false
1154
1163
        prefix = name + QLatin1Char( '_' );
1155
1164
    }
1156
1165
 
1157
 
    //kDebug() << "begin name=" << name << "openUrl=" << openUrl;
 
1166
#ifdef DEBUG_VIEWMGR
 
1167
    kDebug() << "begin name=" << name << "openUrl=" << openUrl;
 
1168
#endif
1158
1169
 
1159
1170
    if (name.startsWith("View") || name == "empty") {
1160
1171
        // load view config
1211
1222
        QApplication::sendEvent( childView->part(), &ev );
1212
1223
#endif
1213
1224
 
1214
 
        childView->frame()->show();
1215
 
 
1216
1225
        if (parent == m_tabContainer && m_tabContainer->count() == 1) {
1217
1226
            // First tab, make it the active one
1218
1227
            parent->setActiveChild(childView->frame());
1515
1524
            className = frame->part()->widget()->metaObject()->className();
1516
1525
        kDebug() << m_spaces << frame
1517
1526
                     << "parent=" << frame->parentContainer()
1518
 
                     << (frame->isVisible() ? "visible" : "invisible")
 
1527
                     << (frame->isHidden() ? "hidden" : "shown")
1519
1528
                     << "containing view" << frame->childView()
1520
1529
                     << "and part" << frame->part()
1521
1530
                     << "whose widget is a" << className;
1523
1532
    }
1524
1533
    virtual bool visit(KonqFrameContainer* container) {
1525
1534
        kDebug() << m_spaces << container
1526
 
                     << (container->isVisible() ? "visible" : "invisible")
 
1535
                     << (container->isHidden() ? "hidden" : "shown")
1527
1536
                     << (container->orientation() == Qt::Horizontal ? "horizontal" : "vertical")
1528
1537
                     << "sizes=" << container->sizes()
1529
1538
                     << "parent=" << container->parentContainer()
1585
1594
 
1586
1595
void KonqViewManager::createTabContainer(QWidget* parent, KonqFrameContainerBase* parentContainer)
1587
1596
{
1588
 
    //kDebug() << "createTabContainer" << parent << parentContainer;
 
1597
#ifdef DEBUG_VIEWMGR
 
1598
    kDebug() << "createTabContainer" << parent << parentContainer;
 
1599
#endif
1589
1600
    m_tabContainer = new KonqFrameTabs( parent, parentContainer, this );
1590
1601
    connect( m_tabContainer, SIGNAL(ctrlTabPressed()), m_pMainWindow, SLOT(slotCtrlTabPressed()) );
1591
1602
    // Delay the opening of the URL for #106641