Loading isis/src/qisis/apps/ipce/AbstractProjectItemViewMW.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/AbstractProjectItemViewMW/AbstractProjectItemViewMW.cpp No newline at end of file isis/src/qisis/apps/ipce/AbstractProjectItemViewMW.h 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/AbstractProjectItemViewMW/AbstractProjectItemViewMW.h No newline at end of file isis/src/qisis/apps/ipce/CubeDnView.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/CubeDnView/CubeDnView.cpp No newline at end of file isis/src/qisis/apps/ipce/CubeDnView.h 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/CubeDnView/CubeDnView.h No newline at end of file isis/src/qisis/apps/ipce/IpceMainWindow.cpp +40 −18 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ #include <QTreeView> #include <QVariant> #include "AbstractProjectItemView.h" #include "AbstractProjectItemViewMW.h" #include "Directory.h" #include "FileName.h" #include "IException.h" Loading Loading @@ -76,12 +76,13 @@ namespace Isis { QMainWindow(parent) { m_maxThreadCount = -1; QMdiArea *centralWidget = new QMdiArea; centralWidget->setActivationOrder(QMdiArea::StackingOrder); // QMdiArea *centralWidget = new QMdiArea; // centralWidget->setActivationOrder(QMdiArea::StackingOrder); connect(centralWidget, SIGNAL( subWindowActivated(QMdiSubWindow *) ), this, SLOT( onSubWindowActivated(QMdiSubWindow *) ) ); // connect(centralWidget, SIGNAL( subWindowActivated(QMdiSubWindow *) ), // this, SLOT( onSubWindowActivated(QMdiSubWindow *) ) ); QWidget *centralWidget = new QWidget; setCentralWidget(centralWidget); setDockNestingEnabled(true); Loading @@ -89,6 +90,8 @@ namespace Isis { try { m_directory = new Directory(this); connect(m_directory, SIGNAL(newDockAvailable(QMainWindow *)), this, SLOT(addDock(QMainWindow *))); connect(m_directory, SIGNAL( newWidgetAvailable(QWidget *) ), this, SLOT( addView(QWidget *) ) ); connect(m_directory, SIGNAL(viewClosed(QWidget *)), this, SLOT(removeView(QWidget *))); Loading Loading @@ -189,9 +192,9 @@ namespace Isis { addToolBar(m_toolPad); updateToolBarActions(); setTabbedViewMode(); centralWidget->setTabsMovable(true); centralWidget->setTabsClosable(true); // setTabbedViewMode(); // centralWidget->setTabsMovable(true); // centralWidget->setTabsClosable(true); QStringList args = QCoreApplication::arguments(); Loading @@ -207,6 +210,23 @@ namespace Isis { } void IpceMainWindow::addDock(QMainWindow *newWidgetForDock) { QDockWidget *dock = new QDockWidget(newWidgetForDock->windowTitle()); dock->setWidget(newWidgetForDock); dock->setObjectName(newWidgetForDock->windowTitle()); // This needs to eventually be a work order... dock->setAttribute(Qt::WA_DeleteOnClose); connect(newWidgetForDock, SIGNAL(destroyed(QObject *)), dock, SLOT(deleteLater())); addDockWidget(Qt::RightDockWidgetArea, dock); // addDockWidget(area, dock, orientation); } /** * This is connected from Directory's newWidgetAvailable signal and called when re-attaching a * view which was detached from the MDI main window. Loading @@ -227,6 +247,8 @@ namespace Isis { if ( QMdiArea *mdiArea = qobject_cast<QMdiArea *>( centralWidget() ) ) { mdiArea->addSubWindow(newWidget); newWidget->show(); mdiArea->setActiveSubWindow(qobject_cast<QMdiSubWindow *>(newWidget)); setActiveView(qobject_cast<AbstractProjectItemView *>(newWidget)); } } } Loading Loading @@ -591,15 +613,15 @@ namespace Isis { this, SLOT( toggleViewMode() ) ); m_viewMenuActions.append(viewModeAction); m_cascadeViewsAction = new QAction("Cascade Views", this); connect(m_cascadeViewsAction, SIGNAL( triggered() ), centralWidget(), SLOT( cascadeSubWindows() ) ); m_viewMenuActions.append(m_cascadeViewsAction); m_tileViewsAction = new QAction("Tile Views", this); connect(m_tileViewsAction, SIGNAL( triggered() ), centralWidget(), SLOT( tileSubWindows() ) ); m_viewMenuActions.append(m_tileViewsAction); // m_cascadeViewsAction = new QAction("Cascade Views", this); // connect(m_cascadeViewsAction, SIGNAL( triggered() ), // centralWidget(), SLOT( cascadeSubWindows() ) ); // m_viewMenuActions.append(m_cascadeViewsAction); // // m_tileViewsAction = new QAction("Tile Views", this); // connect(m_tileViewsAction, SIGNAL( triggered() ), // centralWidget(), SLOT( tileSubWindows() ) ); // m_viewMenuActions.append(m_tileViewsAction); QAction *detachActiveViewAction = new QAction("Detach Active View", this); connect(detachActiveViewAction, SIGNAL( triggered() ), Loading Loading
isis/src/qisis/apps/ipce/AbstractProjectItemViewMW.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/AbstractProjectItemViewMW/AbstractProjectItemViewMW.cpp No newline at end of file
isis/src/qisis/apps/ipce/AbstractProjectItemViewMW.h 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/AbstractProjectItemViewMW/AbstractProjectItemViewMW.h No newline at end of file
isis/src/qisis/apps/ipce/CubeDnView.cpp 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/CubeDnView/CubeDnView.cpp No newline at end of file
isis/src/qisis/apps/ipce/CubeDnView.h 0 → 120000 +1 −0 Original line number Diff line number Diff line ../../objs/CubeDnView/CubeDnView.h No newline at end of file
isis/src/qisis/apps/ipce/IpceMainWindow.cpp +40 −18 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ #include <QTreeView> #include <QVariant> #include "AbstractProjectItemView.h" #include "AbstractProjectItemViewMW.h" #include "Directory.h" #include "FileName.h" #include "IException.h" Loading Loading @@ -76,12 +76,13 @@ namespace Isis { QMainWindow(parent) { m_maxThreadCount = -1; QMdiArea *centralWidget = new QMdiArea; centralWidget->setActivationOrder(QMdiArea::StackingOrder); // QMdiArea *centralWidget = new QMdiArea; // centralWidget->setActivationOrder(QMdiArea::StackingOrder); connect(centralWidget, SIGNAL( subWindowActivated(QMdiSubWindow *) ), this, SLOT( onSubWindowActivated(QMdiSubWindow *) ) ); // connect(centralWidget, SIGNAL( subWindowActivated(QMdiSubWindow *) ), // this, SLOT( onSubWindowActivated(QMdiSubWindow *) ) ); QWidget *centralWidget = new QWidget; setCentralWidget(centralWidget); setDockNestingEnabled(true); Loading @@ -89,6 +90,8 @@ namespace Isis { try { m_directory = new Directory(this); connect(m_directory, SIGNAL(newDockAvailable(QMainWindow *)), this, SLOT(addDock(QMainWindow *))); connect(m_directory, SIGNAL( newWidgetAvailable(QWidget *) ), this, SLOT( addView(QWidget *) ) ); connect(m_directory, SIGNAL(viewClosed(QWidget *)), this, SLOT(removeView(QWidget *))); Loading Loading @@ -189,9 +192,9 @@ namespace Isis { addToolBar(m_toolPad); updateToolBarActions(); setTabbedViewMode(); centralWidget->setTabsMovable(true); centralWidget->setTabsClosable(true); // setTabbedViewMode(); // centralWidget->setTabsMovable(true); // centralWidget->setTabsClosable(true); QStringList args = QCoreApplication::arguments(); Loading @@ -207,6 +210,23 @@ namespace Isis { } void IpceMainWindow::addDock(QMainWindow *newWidgetForDock) { QDockWidget *dock = new QDockWidget(newWidgetForDock->windowTitle()); dock->setWidget(newWidgetForDock); dock->setObjectName(newWidgetForDock->windowTitle()); // This needs to eventually be a work order... dock->setAttribute(Qt::WA_DeleteOnClose); connect(newWidgetForDock, SIGNAL(destroyed(QObject *)), dock, SLOT(deleteLater())); addDockWidget(Qt::RightDockWidgetArea, dock); // addDockWidget(area, dock, orientation); } /** * This is connected from Directory's newWidgetAvailable signal and called when re-attaching a * view which was detached from the MDI main window. Loading @@ -227,6 +247,8 @@ namespace Isis { if ( QMdiArea *mdiArea = qobject_cast<QMdiArea *>( centralWidget() ) ) { mdiArea->addSubWindow(newWidget); newWidget->show(); mdiArea->setActiveSubWindow(qobject_cast<QMdiSubWindow *>(newWidget)); setActiveView(qobject_cast<AbstractProjectItemView *>(newWidget)); } } } Loading Loading @@ -591,15 +613,15 @@ namespace Isis { this, SLOT( toggleViewMode() ) ); m_viewMenuActions.append(viewModeAction); m_cascadeViewsAction = new QAction("Cascade Views", this); connect(m_cascadeViewsAction, SIGNAL( triggered() ), centralWidget(), SLOT( cascadeSubWindows() ) ); m_viewMenuActions.append(m_cascadeViewsAction); m_tileViewsAction = new QAction("Tile Views", this); connect(m_tileViewsAction, SIGNAL( triggered() ), centralWidget(), SLOT( tileSubWindows() ) ); m_viewMenuActions.append(m_tileViewsAction); // m_cascadeViewsAction = new QAction("Cascade Views", this); // connect(m_cascadeViewsAction, SIGNAL( triggered() ), // centralWidget(), SLOT( cascadeSubWindows() ) ); // m_viewMenuActions.append(m_cascadeViewsAction); // // m_tileViewsAction = new QAction("Tile Views", this); // connect(m_tileViewsAction, SIGNAL( triggered() ), // centralWidget(), SLOT( tileSubWindows() ) ); // m_viewMenuActions.append(m_tileViewsAction); QAction *detachActiveViewAction = new QAction("Detach Active View", this); connect(detachActiveViewAction, SIGNAL( triggered() ), Loading