mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Export well paths dialog. Set default export folder
This commit is contained in:
parent
b584ab905c
commit
fe6de813f4
@ -172,6 +172,7 @@ RicExportWellPathsUi* RicExportSelectedWellPathsFeature::openDialog()
|
|||||||
}
|
}
|
||||||
|
|
||||||
RicExportWellPathsUi* featureUi = app->project()->dialogData()->wellPathsExportData();
|
RicExportWellPathsUi* featureUi = app->project()->dialogData()->wellPathsExportData();
|
||||||
|
featureUi->setExportFolder(startPath);
|
||||||
|
|
||||||
caf::PdmUiPropertyViewDialog propertyDialog(nullptr, featureUi, "Export Well Paths", "", QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
caf::PdmUiPropertyViewDialog propertyDialog(nullptr, featureUi, "Export Well Paths", "", QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||||
propertyDialog.resize(QSize(600, 60));
|
propertyDialog.resize(QSize(600, 60));
|
||||||
|
@ -43,6 +43,14 @@ RicExportWellPathsUi::RicExportWellPathsUi()
|
|||||||
CAF_PDM_InitField(&m_mdStepSize, "MdStepSize", 5.0, "MD Step Size", "", "", "");
|
CAF_PDM_InitField(&m_mdStepSize, "MdStepSize", 5.0, "MD Step Size", "", "", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RicExportWellPathsUi::setExportFolder(const QString& exportFolder)
|
||||||
|
{
|
||||||
|
m_exportFolder = exportFolder;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -67,28 +75,6 @@ double RicExportWellPathsUi::mdStepSize() const
|
|||||||
return m_mdStepSize;
|
return m_mdStepSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
//QList<caf::PdmOptionItemInfo> RicExportWellPathsUi::calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions,
|
|
||||||
// bool* useOptionsOnly)
|
|
||||||
//{
|
|
||||||
// QList<caf::PdmOptionItemInfo> options;
|
|
||||||
//
|
|
||||||
// if (fieldNeedingOptions == &m_mdStepSize)
|
|
||||||
// {
|
|
||||||
// std::vector<RimGridView*> visibleViews;
|
|
||||||
// RiaApplication::instance()->project()->allVisibleGridViews(visibleViews);
|
|
||||||
//
|
|
||||||
// for (RimGridView* v : visibleViews)
|
|
||||||
// {
|
|
||||||
// RiaOptionItemFactory::appendOptionItemFromViewNameAndCaseName(v, &options);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return options;
|
|
||||||
//}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -34,14 +34,13 @@ class RicExportWellPathsUi : public caf::PdmObject
|
|||||||
public:
|
public:
|
||||||
RicExportWellPathsUi();
|
RicExportWellPathsUi();
|
||||||
|
|
||||||
|
void setExportFolder(const QString& exportFolder);
|
||||||
void setMdStepSize(double mdStepSize);
|
void setMdStepSize(double mdStepSize);
|
||||||
|
|
||||||
QString exportFolder() const;
|
QString exportFolder() const;
|
||||||
double mdStepSize() const;
|
double mdStepSize() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions,
|
|
||||||
// bool* useOptionsOnly) override;
|
|
||||||
void defineEditorAttribute(const caf::PdmFieldHandle* field,
|
void defineEditorAttribute(const caf::PdmFieldHandle* field,
|
||||||
QString uiConfigName,
|
QString uiConfigName,
|
||||||
caf::PdmUiEditorAttribute* attribute) override;
|
caf::PdmUiEditorAttribute* attribute) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user