mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2475 Fractures: Use filename as default name when importing a StimPlan fracture
This commit is contained in:
@@ -106,7 +106,6 @@ void RimStimPlanFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* ch
|
||||
if (&m_stimPlanFileName == changedField)
|
||||
{
|
||||
m_readError = false;
|
||||
updateUiTreeName();
|
||||
loadDataAndUpdate();
|
||||
setDefaultsBasedOnXMLfile();
|
||||
}
|
||||
@@ -154,23 +153,12 @@ void RimStimPlanFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* ch
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStimPlanFractureTemplate::updateUiTreeName()
|
||||
{
|
||||
this->uiCapability()->setUiName(fileNameWithOutPath());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStimPlanFractureTemplate::setFileName(const QString& fileName)
|
||||
{
|
||||
m_stimPlanFileName = fileName;
|
||||
|
||||
updateUiTreeName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -181,15 +169,6 @@ const QString& RimStimPlanFractureTemplate::fileName()
|
||||
return m_stimPlanFileName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimStimPlanFractureTemplate::fileNameWithOutPath()
|
||||
{
|
||||
QFileInfo stimplanfileFileInfo(m_stimPlanFileName());
|
||||
return stimplanfileFileInfo.fileName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -97,8 +97,6 @@ protected:
|
||||
virtual void defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute * attribute) override;
|
||||
|
||||
private:
|
||||
void updateUiTreeName();
|
||||
|
||||
bool setBorderPolygonResultNameToDefault();
|
||||
void setDepthOfWellPathAtFracture();
|
||||
void setPerforationLength();
|
||||
|
||||
Reference in New Issue
Block a user