Add edit button to grid calculation expressions

Implement add calculation from grid cell result
This commit is contained in:
Magne Sjaastad
2023-06-05 09:07:14 +02:00
committed by GitHub
parent 17f09878d2
commit bcc00adea1
12 changed files with 388 additions and 13 deletions

View File

@@ -54,19 +54,23 @@ public:
static int allTimeStepsValue();
void handleDroppedMimeData( const QMimeData* data, Qt::DropAction action, caf::PdmFieldHandle* destinationField ) override;
void setEclipseResultAddress( const RimEclipseResultAddress& address );
void setEclipseResultAddress( const RimEclipseResultAddress& resultAddress );
private:
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
void defineObjectEditorAttribute( QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
RigCaseCellResultsData* currentGridCellResults() const;
QStringList getResultNamesForResultType( RiaDefines::ResultCatType resultCatType, const RigCaseCellResultsData* results );
RigCaseCellResultsData* currentGridCellResults() const;
QStringList getResultNamesForResultType( RiaDefines::ResultCatType resultCatType, const RigCaseCellResultsData* results );
void setEclipseResultAddress( RimEclipseCase* eclipseCase, caf::AppEnum<RiaDefines::ResultCatType> resultType, const QString& resultName );
private:
caf::PdmPtrField<RimEclipseCase*> m_eclipseCase;
caf::PdmField<caf::AppEnum<RiaDefines::ResultCatType>> m_resultType;
caf::PdmField<QString> m_resultVariable;
caf::PdmField<int> m_timeStep;
caf::PdmField<bool> m_button;
};