mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
Added undo view and activated undo framework
This commit is contained in:
parent
566f2c4cd7
commit
1f60ef76c9
@ -26,50 +26,52 @@
|
||||
#include "RiaBaseDefs.h"
|
||||
#include "RiaPreferences.h"
|
||||
#include "RiaRegressionTest.h"
|
||||
|
||||
#include "RigCaseCellResultsData.h"
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RigFemPartResultsCollection.h"
|
||||
#include "RigGeoMechCaseData.h"
|
||||
|
||||
#include "RimCaseCollection.h"
|
||||
#include "RimEclipsePropertyFilterCollection.h"
|
||||
#include "RimCommandObject.h"
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RimEclipseCellColors.h"
|
||||
#include "RimEclipsePropertyFilterCollection.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimEclipseWellCollection.h"
|
||||
#include "RimFaultCollection.h"
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RimGeoMechCellColors.h"
|
||||
#include "RimGeoMechModels.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimReservoirCellResultsStorage.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimGeoMechCase.h"
|
||||
|
||||
#include "RimEclipseCellColors.h"
|
||||
#include "RimGeoMechCellColors.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimUiTreeModelPdm.h"
|
||||
#include "RimUiTreeView.h"
|
||||
#include "RimEclipseWellCollection.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPathImport.h"
|
||||
|
||||
#include "RiuMultiCaseImportDialog.h"
|
||||
#include "RiuProcessMonitor.h"
|
||||
#include "RiuResultInfoPanel.h"
|
||||
#include "RiuViewer.h"
|
||||
#include "RiuWellImportWizard.h"
|
||||
|
||||
#include "RigGeoMechCaseData.h"
|
||||
|
||||
#include "cafAboutDialog.h"
|
||||
#include "cafAnimationToolBar.h"
|
||||
#include "cafCmdExecCommandManager.h"
|
||||
#include "cafPdmFieldCvfMat4d.h"
|
||||
#include "cafPdmObjectGroup.h"
|
||||
#include "cafPdmSettings.h"
|
||||
#include "cafPdmUiPropertyView.h"
|
||||
#include "cafPdmUiPropertyViewDialog.h"
|
||||
#include "cafPdmUiTreeView.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
#include "cvfTimer.h"
|
||||
#include "RimGeoMechModels.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RigFemPartResultsCollection.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
|
||||
//==================================================================================================
|
||||
@ -87,7 +89,7 @@ RiuMainWindow* RiuMainWindow::sm_mainWindowInstance = NULL;
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuMainWindow::RiuMainWindow()
|
||||
: m_OBSOLETE_treeView(NULL),
|
||||
: m_OBSOLETE_treeView(NULL),
|
||||
m_pdmRoot(NULL),
|
||||
m_mainViewer(NULL),
|
||||
m_windowMenu(NULL)
|
||||
@ -100,7 +102,7 @@ RiuMainWindow::RiuMainWindow()
|
||||
setCentralWidget(m_CentralFrame);
|
||||
#else
|
||||
m_mdiArea = new QMdiArea;
|
||||
connect(m_mdiArea, SIGNAL(subWindowActivated ( QMdiSubWindow *)), SLOT(slotSubWindowActivated(QMdiSubWindow*)));
|
||||
connect(m_mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow *)), SLOT(slotSubWindowActivated(QMdiSubWindow*)));
|
||||
setCentralWidget(m_mdiArea);
|
||||
#endif
|
||||
|
||||
@ -119,12 +121,14 @@ RiuMainWindow::RiuMainWindow()
|
||||
loadWinGeoAndDockToolBarLayout();
|
||||
|
||||
sm_mainWindowInstance = this;
|
||||
|
||||
|
||||
slotRefreshFileActions();
|
||||
slotRefreshEditActions();
|
||||
|
||||
// Set pdm root so scripts are displayed
|
||||
setPdmRoot(RiaApplication::instance()->project());
|
||||
|
||||
caf::CmdExecCommandManager::instance()->enableUndoCommandSystem(true);
|
||||
}
|
||||
|
||||
|
||||
@ -567,6 +571,24 @@ void RiuMainWindow::createDockPanels()
|
||||
//m_windowsMenu->addAction(dockWidget->toggleViewAction());
|
||||
}
|
||||
|
||||
{
|
||||
QDockWidget* dockWidget = new QDockWidget("Undo stack", this);
|
||||
dockWidget->setObjectName("dockWidget");
|
||||
dockWidget->setAllowedAreas(Qt::AllDockWidgetAreas);
|
||||
|
||||
m_undoView = new QUndoView(this);
|
||||
m_undoView->setStack(caf::CmdExecCommandManager::instance()->undoStack());
|
||||
//connect(caf::CmdExecCommandManager::instance()->undoStack(), SIGNAL(indexChanged(int)), SLOT(slotIndexChanged()));
|
||||
|
||||
dockWidget->setWidget(m_undoView);
|
||||
|
||||
addDockWidget(Qt::RightDockWidgetArea, dockWidget);
|
||||
|
||||
dockWidget->hide();
|
||||
|
||||
//m_windowsMenu->addAction(dockWidget->toggleViewAction());
|
||||
}
|
||||
|
||||
{
|
||||
QDockWidget* dockWidget = new QDockWidget("OBSOLETE Project Tree", this);
|
||||
dockWidget->setObjectName("dockWidget");
|
||||
|
@ -22,36 +22,37 @@
|
||||
|
||||
#include "cafUiTreeModelPdm.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QEvent>
|
||||
#include <QMainWindow>
|
||||
#include <QPointer>
|
||||
|
||||
class QTreeView;
|
||||
class QMdiArea;
|
||||
class QFrame;
|
||||
class QMdiSubWindow;
|
||||
class QActionGroup;
|
||||
class QComboBox;
|
||||
class QFrame;
|
||||
class QItemSelection;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QItemSelection;
|
||||
class QActionGroup;
|
||||
class QMdiArea;
|
||||
class QMdiSubWindow;
|
||||
class QSpinBox;
|
||||
class QTreeView;
|
||||
class QUndoView;
|
||||
|
||||
class RiuViewer;
|
||||
class RiuResultInfoPanel;
|
||||
class RiuProcessMonitor;
|
||||
class RimCase;
|
||||
class RimEclipseCase;
|
||||
class RimUiTreeModelPdm;
|
||||
class RimUiTreeView;
|
||||
class RimEclipseCase;
|
||||
class RimCase;
|
||||
class RiuProcessMonitor;
|
||||
class RiuResultInfoPanel;
|
||||
class RiuViewer;
|
||||
|
||||
namespace caf
|
||||
{
|
||||
class PdmUiTreeView;
|
||||
class AnimationToolBar;
|
||||
class FrameAnimationControl;
|
||||
class PdmObject;
|
||||
class PdmUiPropertyView;
|
||||
class PdmUiTreeView;
|
||||
class UiPropertyCreatorPdm;
|
||||
class UiTreeModelPdm;
|
||||
}
|
||||
@ -294,6 +295,7 @@ private:
|
||||
RimUiTreeModelPdm* m_OBSOLETE_treeModelPdm;
|
||||
|
||||
caf::PdmUiTreeView* m_projectTreeView;
|
||||
QUndoView* m_undoView;
|
||||
|
||||
caf::PdmObject* m_pdmRoot;
|
||||
caf::PdmUiPropertyView* m_pdmUiPropertyView;
|
||||
|
Loading…
Reference in New Issue
Block a user