mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
pre-proto - Automatically selecting new features after creation
This commit is contained in:
parent
6b58adb91b
commit
e480de9591
@ -33,6 +33,7 @@
|
||||
#include <QAction>
|
||||
#include "RiuSelectionManager.h"
|
||||
#include "RivSimWellPipeSourceInfo.h"
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicNewSimWellFractureAtPosFeature, "RicNewSimWellFractureAtPosFeature");
|
||||
@ -73,6 +74,9 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||
fracture->setijk(simWellItem->i, simWellItem->j, simWellItem->k);
|
||||
|
||||
fractureCollection->updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include "cvfAssert.h"
|
||||
|
||||
#include <QAction>
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
|
||||
CAF_CMD_SOURCE_INIT(RicNewSimWellFractureFeature, "RicNewSimWellFractureFeature");
|
||||
@ -59,7 +60,7 @@ void RicNewSimWellFractureFeature::onActionTriggered(bool isChecked)
|
||||
fracture->name = "New Simulation Well Fracture";
|
||||
|
||||
fractureCollection->updateConnectedEditors();
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -30,6 +30,7 @@
|
||||
|
||||
#include "RivWellPathSourceInfo.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "RiuSelectionManager.h"
|
||||
#include "RiuViewer.h"
|
||||
|
||||
@ -79,8 +80,9 @@ void RicNewWellPathFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||
fracture->name = "New Well Path Fracture";
|
||||
fracture->positionAtWellpath = wellPathItem->m_pipeCenterlineIntersectionInDomainCoords;
|
||||
fracture->measuredDepth = wellPathItem->m_measuredDepth;
|
||||
fractureCollection->updateConnectedEditors();
|
||||
|
||||
fractureCollection->updateConnectedEditors();
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -25,6 +25,8 @@
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
#include "RimWellPathFractureCollection.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
@ -59,7 +61,7 @@ void RicNewWellPathFractureFeature::onActionTriggered(bool isChecked)
|
||||
fracture->name = "New Well Path Fracture";
|
||||
|
||||
fractureCollection->updateConnectedEditors();
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(fracture);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user