mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2609 Add names to new wells, and make it editable and saved/read
This commit is contained in:
parent
7156b99b88
commit
972d006249
@ -68,6 +68,7 @@ void RicNewEditableWellPathFeature::onActionTriggered(bool isChecked)
|
|||||||
{
|
{
|
||||||
std::vector<RimWellPath*> newWellPaths;
|
std::vector<RimWellPath*> newWellPaths;
|
||||||
newWellPaths.push_back(new RimModeledWellPath());
|
newWellPaths.push_back(new RimModeledWellPath());
|
||||||
|
newWellPaths.back()->setName("UWell-" + QString::number(wellPathCollection->wellPaths.size()));
|
||||||
wellPathCollection->addWellPaths(newWellPaths);
|
wellPathCollection->addWellPaths(newWellPaths);
|
||||||
wellPathCollection->uiCapability()->updateConnectedEditors();
|
wellPathCollection->uiCapability()->updateConnectedEditors();
|
||||||
wellPathCollection->scheduleRedrawAffectedViews();
|
wellPathCollection->scheduleRedrawAffectedViews();
|
||||||
|
@ -38,6 +38,10 @@ RimModeledWellPath::RimModeledWellPath()
|
|||||||
CAF_PDM_InitFieldNoDefault(&m_geometryDefinition, "WellPathGeometryDef", "Trajectory", "", "", "");
|
CAF_PDM_InitFieldNoDefault(&m_geometryDefinition, "WellPathGeometryDef", "Trajectory", "", "", "");
|
||||||
//m_geometryDefinition.uiCapability()->setUiHidden(true);
|
//m_geometryDefinition.uiCapability()->setUiHidden(true);
|
||||||
m_geometryDefinition = new RimWellPathGeometryDef;
|
m_geometryDefinition = new RimWellPathGeometryDef;
|
||||||
|
|
||||||
|
m_name.uiCapability()->setUiReadOnly(false);
|
||||||
|
m_name.xmlCapability()->setIOWritable(true);
|
||||||
|
m_name.xmlCapability()->setIOReadable(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -135,10 +135,9 @@ protected:
|
|||||||
// Fields
|
// Fields
|
||||||
protected:
|
protected:
|
||||||
caf::PdmField<double> m_datumElevation;
|
caf::PdmField<double> m_datumElevation;
|
||||||
private:
|
|
||||||
|
|
||||||
caf::PdmField<QString> m_name;
|
caf::PdmField<QString> m_name;
|
||||||
|
|
||||||
|
private:
|
||||||
caf::PdmField<QString> m_simWellName;
|
caf::PdmField<QString> m_simWellName;
|
||||||
caf::PdmField<int> m_branchIndex;
|
caf::PdmField<int> m_branchIndex;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user