mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added command feature for addition of a new curve to a well log plot trace
This commit is contained in:
@@ -553,6 +553,7 @@ void RimProject::computeUtmAreaOfInterest()
|
||||
#include "RimEclipseCellColors.h"
|
||||
#include "RimEclipseFaultColors.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogPlotTrace.h"
|
||||
#include <QMenu>
|
||||
|
||||
|
||||
@@ -727,6 +728,10 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
|
||||
{
|
||||
commandIds << "RicNewWellLogPlotTraceFeature";
|
||||
}
|
||||
else if (dynamic_cast<RimWellLogPlotTrace*>(uiItem))
|
||||
{
|
||||
commandIds << "RicNewWellLogPlotCurveFeature";
|
||||
}
|
||||
|
||||
if (dynamic_cast<RimManagedViewCollection*>(uiItem))
|
||||
{
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
|
||||
#include "RimWellLogPlotCurve.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "cafPdmUiTreeView.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellLogPlotTrace, "WellLogPlotTrace");
|
||||
|
||||
@@ -59,3 +62,16 @@ caf::PdmFieldHandle* RimWellLogPlotTrace::objectToggleField()
|
||||
{
|
||||
return &show;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlotTrace::addCurve()
|
||||
{
|
||||
RimWellLogPlotCurve* curve = new RimWellLogPlotCurve();
|
||||
curves.push_back(curve);
|
||||
|
||||
RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true);
|
||||
updateConnectedEditors();
|
||||
|
||||
}
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
RimWellLogPlotTrace();
|
||||
virtual ~RimWellLogPlotTrace();
|
||||
|
||||
void addCurve();
|
||||
|
||||
protected:
|
||||
|
||||
// Overridden PDM methods
|
||||
|
||||
Reference in New Issue
Block a user