mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed the top levels of the new tree
Including Scripts and Well Paths
This commit is contained in:
parent
0e50a0bac5
commit
3d599542f4
@ -609,12 +609,12 @@ void RimProject::actionsBasedOnSelection(std::vector<QAction*>& actions)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimProject::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName /*= ""*/)
|
||||
{
|
||||
RimOilField* field = activeOilField();
|
||||
if (field)
|
||||
RimOilField* oilField = activeOilField();
|
||||
if (oilField)
|
||||
{
|
||||
if (field->analysisModels()) uiTreeOrdering.add(field->analysisModels());
|
||||
if (field->geoMechModels()) uiTreeOrdering.add(&(field->geoMechModels));
|
||||
if (field->wellPathCollection()) uiTreeOrdering.add(&(field->wellPathCollection()->wellPaths));
|
||||
if (oilField->analysisModels()) uiTreeOrdering.add(oilField->analysisModels());
|
||||
if (oilField->geoMechModels()) uiTreeOrdering.add(oilField->geoMechModels());
|
||||
if (oilField->wellPathCollection()) uiTreeOrdering.add(oilField->wellPathCollection());
|
||||
}
|
||||
|
||||
uiTreeOrdering.add(&scriptCollection);
|
||||
|
@ -40,7 +40,9 @@ RimScriptCollection::RimScriptCollection()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&directory, "ScriptDirectory", "Dir", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&calcScripts, "CalcScripts", "", "", "", "");
|
||||
calcScripts.uiCapability()->setUiHidden(true);
|
||||
CAF_PDM_InitFieldNoDefault(&subDirectories, "SubDirectories", "", "", "", "");
|
||||
subDirectories.uiCapability()->setUiHidden(true);
|
||||
|
||||
directory.uiCapability()->setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());
|
||||
}
|
||||
|
@ -74,6 +74,7 @@ RimWellPathCollection::RimWellPathCollection()
|
||||
CAF_PDM_InitField(&wellPathClipZDistance, "WellPathClipZDistance", 100, "Well path clipping depth distance", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&wellPaths, "WellPaths", "Well Paths", "", "", "");
|
||||
wellPaths.uiCapability()->setUiHidden(true);
|
||||
|
||||
m_wellPathCollectionPartManager = new RivWellPathCollectionPartMgr(this);
|
||||
m_project = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user