Fixed the top levels of the new tree

Including Scripts and Well Paths
This commit is contained in:
Jacob Støren 2015-08-11 15:22:49 +02:00
parent 0e50a0bac5
commit 3d599542f4
3 changed files with 8 additions and 5 deletions

View File

@ -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);

View File

@ -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());
}

View File

@ -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;