mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crashes related to name config and make name correct for old plots when loading
This commit is contained in:
@@ -113,6 +113,8 @@ RimWellAllocationPlot::RimWellAllocationPlot()
|
||||
m_tofAccumulatedPhaseFractionsPlot.uiCapability()->setUiHidden(true);
|
||||
m_tofAccumulatedPhaseFractionsPlot = new RimTofAccumulatedPhaseFractionsPlot;
|
||||
|
||||
m_nameConfig->setCustomName("Well Allocation Plot");
|
||||
|
||||
this->setAsPlotMdiWindow();
|
||||
}
|
||||
|
||||
|
||||
@@ -107,8 +107,6 @@ RimWellPltPlot::RimWellPltPlot()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_wellLogPlot_OBSOLETE, "WellLog", "WellLog", "", "", "");
|
||||
m_wellLogPlot_OBSOLETE.uiCapability()->setUiHidden(true);
|
||||
m_wellLogPlot_OBSOLETE = new RimWellLogPlot();
|
||||
m_wellLogPlot_OBSOLETE->setDepthType(RimWellLogPlot::MEASURED_DEPTH);
|
||||
m_wellLogPlot_OBSOLETE.xmlCapability()->setIOWritable(false);
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_wellPathName, "WellName", "Well Name", "", "", "");
|
||||
@@ -135,6 +133,8 @@ RimWellPltPlot::RimWellPltPlot()
|
||||
m_phases = std::vector<caf::AppEnum<FlowPhase>>({FLOW_PHASE_OIL, FLOW_PHASE_GAS, FLOW_PHASE_WATER});
|
||||
m_phases.uiCapability()->setUiLabelPosition(caf::PdmUiItemInfo::HIDDEN);
|
||||
|
||||
m_nameConfig->setCustomName("PLT Plot");
|
||||
|
||||
this->setAsPlotMdiWindow();
|
||||
m_doInitAfterLoad = false;
|
||||
m_isOnLoad = true;
|
||||
|
||||
@@ -74,7 +74,7 @@ const char RimWellRftPlot::PLOT_NAME_QFORMAT_STRING[] = "RFT: %1";
|
||||
RimWellRftPlot::RimWellRftPlot()
|
||||
: RimWellLogPlot()
|
||||
{
|
||||
CAF_PDM_InitObject("Well Allocation Plot", ":/RFTPlot16x16.png", "", "");
|
||||
CAF_PDM_InitObject("RFT Plot", ":/RFTPlot16x16.png", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_showPlotTitle_OBSOLETE, "ShowPlotTitle", false, "Show Plot Title", "", "", "");
|
||||
m_showPlotTitle_OBSOLETE.xmlCapability()->setIOWritable(false);
|
||||
@@ -84,8 +84,6 @@ RimWellRftPlot::RimWellRftPlot()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_wellLogPlot_OBSOLETE, "WellLog", "Well Log", "", "", "");
|
||||
m_wellLogPlot_OBSOLETE.uiCapability()->setUiHidden(true);
|
||||
m_wellLogPlot_OBSOLETE = new RimWellLogPlot();
|
||||
m_wellLogPlot_OBSOLETE->setDepthType(RimWellLogPlot::TRUE_VERTICAL_DEPTH);
|
||||
m_wellLogPlot_OBSOLETE.xmlCapability()->setIOWritable(false);
|
||||
|
||||
m_depthType = RimWellLogPlot::TRUE_VERTICAL_DEPTH;
|
||||
@@ -112,6 +110,9 @@ RimWellRftPlot::RimWellRftPlot()
|
||||
m_selectedTimeSteps.uiCapability()->setUiLabelPosition(caf::PdmUiItemInfo::HIDDEN);
|
||||
m_selectedTimeSteps.uiCapability()->setAutoAddingOptionFromValue(false);
|
||||
|
||||
m_nameConfig->setCustomName("RFT Plot");
|
||||
m_trackLegendsHorizontal = true;
|
||||
|
||||
this->setAsPlotMdiWindow();
|
||||
m_isOnLoad = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user