Loading isis/src/qisis/apps/ipce/IpceMainWindow.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -89,8 +89,6 @@ namespace Isis { //centralWidget->hide(); setDockNestingEnabled(true); m_activeView = NULL; try { m_directory = new Directory(this); connect(m_directory, SIGNAL( newWidgetAvailable(QWidget *) ), Loading Loading @@ -466,7 +464,6 @@ namespace Isis { QSize iconSize(25, 45); m_permToolBar->setIconSize(iconSize); m_permToolBar->setObjectName("PermanentToolBar"); addToolBar(m_permToolBar); foreach ( QAction *action, m_directory->permToolBarActions() ) { Loading isis/src/qisis/apps/ipce/IpceMainWindow.h +3 −5 Original line number Diff line number Diff line Loading @@ -138,7 +138,9 @@ namespace Isis { * Cleanup connections are made for the views and the docks to ensure * that cleanup happens for both. Fixes #5433. * @history 2018-06-13 Tracie Sucharski - Fixed cleanup of views and QDockWidgets. * @history 2018-06-13 Kaitlyn Lee - Removed code adding the save active control net button and * @history 2018-06-13 Kaitlyn Lee - Since views now inherit from QMainWindow, each individual * view has its own toolbar, so having an active toolbar and tool pad is * not needed. Removed code adding the save active control net button and * the toolpad, since control nets can be saved with the project save button. * @history 2018-06-15 Tracie Sucharski - Fixed break to recent projects. The readSettings * must be called before initializeActions to get the recent projects Loading Loading @@ -220,13 +222,9 @@ namespace Isis { QList<QAction *> m_helpMenuActions;//!< Internal list of help actions QList<QAction *> m_permToolBarActions;//!< Internal list of permanent toolbar actions QList<QAction *> m_activeToolBarActions;//!< Internal list of active toolbar actions QList<QAction *> m_toolPadActions;//!< Internal list of toolpad actions QAction *m_cascadeViewsAction; //!< Action that cascades the mdi area QAction *m_tileViewsAction; //!< Action that tiles the mdi area AbstractProjectItemView *m_activeView; //!< The active view }; } Loading isis/src/qisis/objs/AbstractProjectItemView/AbstractProjectItemView.cpp +6 −96 Original line number Diff line number Diff line Loading @@ -149,36 +149,6 @@ namespace Isis { } /** * Returns a list of actions appropriate for the permanent tool bar. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::permToolBarActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for the active tool bar. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::activeToolBarActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for the tool pad. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::toolPadActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a context menu. * Loading @@ -189,66 +159,6 @@ namespace Isis { } /** * Returns a list of actions appropriate for a file menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::fileMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a project menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::projectMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for an edit menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::editMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a view menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::viewMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a settings menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::settingsMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a help menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::helpMenuActions() { return QList<QAction *>(); } /** * Returns the current item of the model. * Loading isis/src/qisis/objs/AbstractProjectItemView/AbstractProjectItemView.h +6 −15 Original line number Diff line number Diff line Loading @@ -66,6 +66,8 @@ namespace Isis { * to be main windows themselves, changing from an mdi interface to an * sdi interface. * @history 2018-05-30 Tracie Sucharski - Added the WindowFlag to set this as a Widget. * @history 2018-06-15 Kaitlyn Lee - Removed methods returing toolbar and menu actions because each * individual has its own toolbar. These methods are not needed anymore. */ class AbstractProjectItemView : public QMainWindow { Loading @@ -81,19 +83,8 @@ namespace Isis { virtual void dragMoveEvent(QDragMoveEvent *event); virtual void dropEvent(QDropEvent *event); virtual QList<QAction *> permToolBarActions(); virtual QList<QAction *> activeToolBarActions(); virtual QList<QAction *> toolPadActions(); virtual QList<QAction *> contextMenuActions(); virtual QList<QAction *> fileMenuActions(); virtual QList<QAction *> projectMenuActions(); virtual QList<QAction *> editMenuActions(); virtual QList<QAction *> viewMenuActions(); virtual QList<QAction *> settingsMenuActions(); virtual QList<QAction *> helpMenuActions(); virtual ProjectItem *currentItem(); virtual QList<ProjectItem *> selectedItems(); Loading isis/src/qisis/objs/ControlPointEditView/ControlPointEditView.cpp +0 −61 Original line number Diff line number Diff line Loading @@ -60,28 +60,6 @@ namespace Isis { layout->addWidget(m_controlPointEditWidget); m_permToolBar = new QToolBar("Standard Tools", 0); m_permToolBar->setObjectName("permToolBar"); m_permToolBar->setIconSize(QSize(22, 22)); //toolBarLayout->addWidget(m_permToolBar); m_activeToolBar = new QToolBar("Active Tool", 0); m_activeToolBar->setObjectName("activeToolBar"); m_activeToolBar->setIconSize(QSize(22, 22)); //toolBarLayout->addWidget(m_activeToolBar); m_toolPad = new ToolPad("Tool Pad", 0); m_toolPad->setObjectName("toolPad"); //toolBarLayout->addWidget(m_toolPad); // m_controlPointEditWidget->addToPermanent(m_permToolBar); // m_controlPointEditWidget->addTo(m_activeToolBar); // m_controlPointEditWidget->addTo(m_toolPad); m_activeToolBarAction = new QWidgetAction(this); m_activeToolBarAction->setDefaultWidget(m_activeToolBar); setAcceptDrops(true); QSizePolicy policy = sizePolicy(); Loading @@ -97,13 +75,6 @@ namespace Isis { */ ControlPointEditView::~ControlPointEditView() { delete m_controlPointEditWidget; delete m_permToolBar; delete m_activeToolBar; delete m_toolPad; m_permToolBar = 0; m_activeToolBar = 0; m_toolPad = 0; } Loading @@ -126,36 +97,4 @@ namespace Isis { QSize ControlPointEditView::sizeHint() const { return QSize(800, 600); } /** * Returns a list of actions for the permanent tool bar. * * @return (QList<QAction *>) The actions */ QList<QAction *> ControlPointEditView::permToolBarActions() { return m_permToolBar->actions(); } /** * Returns a list of actions for the active tool bar. * * @return (QList<QAction *>) The actions */ QList<QAction *> ControlPointEditView::activeToolBarActions() { QList<QAction *> actions; actions.append(m_activeToolBarAction); return actions; } /** * Returns a list of actions for the tool pad. * * @return (QList<QAction *>) The actions */ QList<QAction *> ControlPointEditView::toolPadActions() { return m_toolPad->actions(); } } Loading
isis/src/qisis/apps/ipce/IpceMainWindow.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -89,8 +89,6 @@ namespace Isis { //centralWidget->hide(); setDockNestingEnabled(true); m_activeView = NULL; try { m_directory = new Directory(this); connect(m_directory, SIGNAL( newWidgetAvailable(QWidget *) ), Loading Loading @@ -466,7 +464,6 @@ namespace Isis { QSize iconSize(25, 45); m_permToolBar->setIconSize(iconSize); m_permToolBar->setObjectName("PermanentToolBar"); addToolBar(m_permToolBar); foreach ( QAction *action, m_directory->permToolBarActions() ) { Loading
isis/src/qisis/apps/ipce/IpceMainWindow.h +3 −5 Original line number Diff line number Diff line Loading @@ -138,7 +138,9 @@ namespace Isis { * Cleanup connections are made for the views and the docks to ensure * that cleanup happens for both. Fixes #5433. * @history 2018-06-13 Tracie Sucharski - Fixed cleanup of views and QDockWidgets. * @history 2018-06-13 Kaitlyn Lee - Removed code adding the save active control net button and * @history 2018-06-13 Kaitlyn Lee - Since views now inherit from QMainWindow, each individual * view has its own toolbar, so having an active toolbar and tool pad is * not needed. Removed code adding the save active control net button and * the toolpad, since control nets can be saved with the project save button. * @history 2018-06-15 Tracie Sucharski - Fixed break to recent projects. The readSettings * must be called before initializeActions to get the recent projects Loading Loading @@ -220,13 +222,9 @@ namespace Isis { QList<QAction *> m_helpMenuActions;//!< Internal list of help actions QList<QAction *> m_permToolBarActions;//!< Internal list of permanent toolbar actions QList<QAction *> m_activeToolBarActions;//!< Internal list of active toolbar actions QList<QAction *> m_toolPadActions;//!< Internal list of toolpad actions QAction *m_cascadeViewsAction; //!< Action that cascades the mdi area QAction *m_tileViewsAction; //!< Action that tiles the mdi area AbstractProjectItemView *m_activeView; //!< The active view }; } Loading
isis/src/qisis/objs/AbstractProjectItemView/AbstractProjectItemView.cpp +6 −96 Original line number Diff line number Diff line Loading @@ -149,36 +149,6 @@ namespace Isis { } /** * Returns a list of actions appropriate for the permanent tool bar. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::permToolBarActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for the active tool bar. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::activeToolBarActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for the tool pad. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::toolPadActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a context menu. * Loading @@ -189,66 +159,6 @@ namespace Isis { } /** * Returns a list of actions appropriate for a file menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::fileMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a project menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::projectMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for an edit menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::editMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a view menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::viewMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a settings menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::settingsMenuActions() { return QList<QAction *>(); } /** * Returns a list of actions appropriate for a help menu. * * @return @b QList<QAction *> The actions */ QList<QAction *> AbstractProjectItemView::helpMenuActions() { return QList<QAction *>(); } /** * Returns the current item of the model. * Loading
isis/src/qisis/objs/AbstractProjectItemView/AbstractProjectItemView.h +6 −15 Original line number Diff line number Diff line Loading @@ -66,6 +66,8 @@ namespace Isis { * to be main windows themselves, changing from an mdi interface to an * sdi interface. * @history 2018-05-30 Tracie Sucharski - Added the WindowFlag to set this as a Widget. * @history 2018-06-15 Kaitlyn Lee - Removed methods returing toolbar and menu actions because each * individual has its own toolbar. These methods are not needed anymore. */ class AbstractProjectItemView : public QMainWindow { Loading @@ -81,19 +83,8 @@ namespace Isis { virtual void dragMoveEvent(QDragMoveEvent *event); virtual void dropEvent(QDropEvent *event); virtual QList<QAction *> permToolBarActions(); virtual QList<QAction *> activeToolBarActions(); virtual QList<QAction *> toolPadActions(); virtual QList<QAction *> contextMenuActions(); virtual QList<QAction *> fileMenuActions(); virtual QList<QAction *> projectMenuActions(); virtual QList<QAction *> editMenuActions(); virtual QList<QAction *> viewMenuActions(); virtual QList<QAction *> settingsMenuActions(); virtual QList<QAction *> helpMenuActions(); virtual ProjectItem *currentItem(); virtual QList<ProjectItem *> selectedItems(); Loading
isis/src/qisis/objs/ControlPointEditView/ControlPointEditView.cpp +0 −61 Original line number Diff line number Diff line Loading @@ -60,28 +60,6 @@ namespace Isis { layout->addWidget(m_controlPointEditWidget); m_permToolBar = new QToolBar("Standard Tools", 0); m_permToolBar->setObjectName("permToolBar"); m_permToolBar->setIconSize(QSize(22, 22)); //toolBarLayout->addWidget(m_permToolBar); m_activeToolBar = new QToolBar("Active Tool", 0); m_activeToolBar->setObjectName("activeToolBar"); m_activeToolBar->setIconSize(QSize(22, 22)); //toolBarLayout->addWidget(m_activeToolBar); m_toolPad = new ToolPad("Tool Pad", 0); m_toolPad->setObjectName("toolPad"); //toolBarLayout->addWidget(m_toolPad); // m_controlPointEditWidget->addToPermanent(m_permToolBar); // m_controlPointEditWidget->addTo(m_activeToolBar); // m_controlPointEditWidget->addTo(m_toolPad); m_activeToolBarAction = new QWidgetAction(this); m_activeToolBarAction->setDefaultWidget(m_activeToolBar); setAcceptDrops(true); QSizePolicy policy = sizePolicy(); Loading @@ -97,13 +75,6 @@ namespace Isis { */ ControlPointEditView::~ControlPointEditView() { delete m_controlPointEditWidget; delete m_permToolBar; delete m_activeToolBar; delete m_toolPad; m_permToolBar = 0; m_activeToolBar = 0; m_toolPad = 0; } Loading @@ -126,36 +97,4 @@ namespace Isis { QSize ControlPointEditView::sizeHint() const { return QSize(800, 600); } /** * Returns a list of actions for the permanent tool bar. * * @return (QList<QAction *>) The actions */ QList<QAction *> ControlPointEditView::permToolBarActions() { return m_permToolBar->actions(); } /** * Returns a list of actions for the active tool bar. * * @return (QList<QAction *>) The actions */ QList<QAction *> ControlPointEditView::activeToolBarActions() { QList<QAction *> actions; actions.append(m_activeToolBarAction); return actions; } /** * Returns a list of actions for the tool pad. * * @return (QList<QAction *>) The actions */ QList<QAction *> ControlPointEditView::toolPadActions() { return m_toolPad->actions(); } }