Commit b79a47be authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Added tab functionality.

parent 3e98b2c5
Loading
Loading
Loading
Loading
+21 −14
Original line number Diff line number Diff line
@@ -343,6 +343,10 @@ namespace Isis {
    m_fileMenuActions.append(exitAction);
    m_permToolBarActions.append(exitAction);

    QAction *tabViewsAction = new QAction("Tab Views", this);
    connect( tabViewsAction, SIGNAL(triggered()), this, SLOT(tabAllViews()) );
    m_viewMenuActions.append(tabViewsAction);

    QAction *saveNet = new QAction("&Save Active Control Network", this);
    saveNet->setIcon( QIcon::fromTheme("document-save") );
    saveNet->setShortcut(Qt::CTRL + Qt::Key_S);
@@ -809,13 +813,16 @@ namespace Isis {


  /**
   * PlaceHolder for the option to tab all views. (This was setTabbedViewMode in the old code)
   * Tabs all views inside of the main window.
   */
  void IpceMainWindow::tabAllViews() {
//  QMdiArea *mdiArea = qobject_cast<QMdiArea *>( centralWidget() );
//  mdiArea->setViewMode(QMdiArea::TabbedView);
//  m_cascadeViewsAction->setEnabled(false);
//  m_tileViewsAction->setEnabled(false);
  QDockWidget *firstView = m_viewDocks.first();
  foreach (QDockWidget *currentView, m_viewDocks) {
    if (currentView == firstView) {
      continue;
    }
    tabifyDockWidget(firstView, currentView);
  }
}


+2 −2

File changed.

Contains only whitespace changes.