#2331 Introduce new intermediate class RimGridView

This commit is contained in:
Jacob Støren
2018-01-15 14:52:22 +01:00
parent 1bbd3ade7b
commit b092565a61
48 changed files with 1387 additions and 508 deletions

View File

@@ -39,7 +39,7 @@ CAF_CMD_SOURCE_INIT(RicSetMasterViewFeature, "RicSetMasterViewFeature");
//--------------------------------------------------------------------------------------------------
bool RicSetMasterViewFeature::isCommandEnabled()
{
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
RimGridView* activeView = RiaApplication::instance()->activeGridView();
if (!activeView) return false;
RimProject* proj = RiaApplication::instance()->project();
@@ -62,7 +62,7 @@ bool RicSetMasterViewFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
void RicSetMasterViewFeature::onActionTriggered(bool isChecked)
{
Rim3dView* activeView = RiaApplication::instance()->activeReservoirView();
RimGridView* activeView = RiaApplication::instance()->activeGridView();
if (!activeView) return;
RimProject* proj = RiaApplication::instance()->project();
@@ -70,7 +70,7 @@ void RicSetMasterViewFeature::onActionTriggered(bool isChecked)
viewLinker->applyRangeFilterCollectionByUserChoice();
Rim3dView* previousMasterView = viewLinker->masterView();
RimGridView* previousMasterView = viewLinker->masterView();
viewLinker->setMasterView(activeView);
viewLinker->updateDependentViews();