#1670 Minor UI adjustments

This commit is contained in:
Magne Sjaastad 2017-06-30 12:49:12 +02:00
parent d265f79242
commit 917ee860d2
2 changed files with 3 additions and 2 deletions

View File

@ -169,6 +169,7 @@ void RicCellRangeUi::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
if (changedField == &m_gridIndex)
{
setDefaultValues();
updateLegendText();
}

View File

@ -40,7 +40,7 @@ RicExportCarfinUi::RicExportCarfinUi()
CAF_PDM_InitFieldNoDefault(&m_cellRange, "CellRange", "CellRange", "", "", "");
m_cellRange = new RicCellRangeUi;
CAF_PDM_InitFieldNoDefault(&m_exportFileName, "ExportFileName", "Export FileName", "", "", "");
CAF_PDM_InitFieldNoDefault(&m_exportFileName, "ExportFileName", "Export Filename", "", "", "");
m_exportFileName.uiCapability()->setUiEditorTypeName(caf::PdmUiFilePathEditor::uiEditorTypeName());
CAF_PDM_InitFieldNoDefault(&m_caseToApply, "CaseToApply", "Source Case", "", "", "");
@ -145,8 +145,8 @@ void RicExportCarfinUi::fieldChangedByUi(const caf::PdmFieldHandle* changedField
//--------------------------------------------------------------------------------------------------
void RicExportCarfinUi::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
{
uiOrdering.add(&m_exportFileName);
uiOrdering.add(&m_caseToApply);
uiOrdering.add(&m_exportFileName);
caf::PdmUiGroup* sourceGridBox = uiOrdering.addNewGroup("Source Grid Box");
m_cellRange->uiOrdering(uiConfigName, *sourceGridBox);