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 trace to a well log plot
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
#include "RiuWellLogPlot.h"
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "cafPdmUiTreeView.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellLogPlot, "WellLogPlot");
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -92,3 +95,15 @@ caf::PdmFieldHandle* RimWellLogPlot::objectToggleField()
|
||||
{
|
||||
return &showWindow;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlot::addTrace()
|
||||
{
|
||||
RimWellLogPlotTrace* trace = new RimWellLogPlotTrace();
|
||||
traces.push_back(trace);
|
||||
|
||||
RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true);
|
||||
updateConnectedEditors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user