mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -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;
|
||||
newWellPaths.push_back(new RimModeledWellPath());
|
||||
newWellPaths.back()->setName("UWell-" + QString::number(wellPathCollection->wellPaths.size()));
|
||||
wellPathCollection->addWellPaths(newWellPaths);
|
||||
wellPathCollection->uiCapability()->updateConnectedEditors();
|
||||
wellPathCollection->scheduleRedrawAffectedViews();
|
||||
|
@ -38,6 +38,10 @@ RimModeledWellPath::RimModeledWellPath()
|
||||
CAF_PDM_InitFieldNoDefault(&m_geometryDefinition, "WellPathGeometryDef", "Trajectory", "", "", "");
|
||||
//m_geometryDefinition.uiCapability()->setUiHidden(true);
|
||||
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
|
||||
protected:
|
||||
caf::PdmField<double> m_datumElevation;
|
||||
private:
|
||||
|
||||
caf::PdmField<QString> m_name;
|
||||
|
||||
private:
|
||||
caf::PdmField<QString> m_simWellName;
|
||||
caf::PdmField<int> m_branchIndex;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user