mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#955 Toolbar Button State : Update plot toolbars when eclipse case is imported
This commit is contained in:
parent
19125396a1
commit
9eb16f22cd
@ -45,8 +45,9 @@
|
||||
#include "RimSummaryCurveFilter.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
|
||||
#include "RiuPlotMainWindow.h"
|
||||
#include "RiuMainWindow.h"
|
||||
#include "RiuPlotMainWindow.h"
|
||||
#include "RiuPlotMainWindowTools.h"
|
||||
|
||||
#include "cafUtils.h"
|
||||
#include "cafProgressInfo.h"
|
||||
@ -135,6 +136,8 @@ bool RiaImportEclipseCaseTools::openEclipseCasesFromFile(const QStringList& file
|
||||
RiaLogging::error(errorMessage);
|
||||
}
|
||||
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -58,5 +58,14 @@ void RiuPlotMainWindowTools::selectAsCurrentItem(const caf::PdmObject* object, b
|
||||
if (mpw) mpw->selectAsCurrentItem(object, allowActiveViewChange);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuPlotMainWindowTools::refreshToolbars()
|
||||
{
|
||||
RiuPlotMainWindow* mpw = RiaApplication::instance()->mainPlotWindow();
|
||||
|
||||
if (mpw) mpw->updateSummaryPlotToolBar();
|
||||
}
|
||||
|
||||
|
||||
|
@ -33,5 +33,6 @@ public:
|
||||
static void setActiveViewer(QWidget* subWindow) ;
|
||||
static void setExpanded(const caf::PdmUiItem* uiItem, bool expanded = true);
|
||||
static void selectAsCurrentItem(const caf::PdmObject* object, bool allowActiveViewChange = true);
|
||||
static void refreshToolbars();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user