(#396) Adding a trace when creating a new well log plot

Did some refactoring - moved creation code to command feature.
This commit is contained in:
Pål Hagen
2015-09-03 09:46:26 +02:00
parent 2288130f6a
commit bcab7f2248
3 changed files with 11 additions and 23 deletions

View File

@@ -20,11 +20,6 @@
#include "RimWellLogPlotCollection.h"
#include "RimWellLogPlot.h"
#include "RimProject.h"
#include "RiuMainWindow.h"
#include "RiaApplication.h"
#include "cafPdmUiTreeView.h"
@@ -48,15 +43,3 @@ RimWellLogPlotCollection::~RimWellLogPlotCollection()
{
wellLogPlots.deleteAllChildObjects();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogPlotCollection::addWellLogPlot()
{
RimWellLogPlot* plot = new RimWellLogPlot();
wellLogPlots.push_back(plot);
RiaApplication::instance()->project()->updateConnectedEditors();
RiuMainWindow::instance()->setCurrentObjectInTreeView(plot);
}