Add open plot editor to menus

- Add to summary plot node in project tree
- Add to empty space in plot window (mdi area)
This commit is contained in:
Jørgen Herje authored and jonjenssen committed 2023-02-22 16:17:24 +01:00
1 parent a6ee41aaee
commit 88ebf857ff
5 files changed
+69

No files matched your search

@@ -36,6 +36,7 @@
#include "RimSummaryCaseCollection.h"
#include "RimSummaryCaseMainCollection.h"
#include "RimSummaryMultiPlot.h"
#include "RimSummaryMultiPlotCollection.h"
#include "RimSummaryPlot.h"
#include "RiuPlotMainWindow.h"
@@ -61,6 +62,10 @@ bool RicOpenSummaryPlotEditorFeature::isCommandEnabled()
std::vector<RimSummaryCaseCollection*> selectedGroups = caf::selectedObjectsByType<RimSummaryCaseCollection*>();
if ( selectedGroups.size() > 0 ) return true;
std::vector<RimSummaryMultiPlotCollection*> selectedPlotCollections =
caf::selectedObjectsByType<RimSummaryMultiPlotCollection*>();
if ( selectedPlotCollections.size() > 0 ) return true;
caf::PdmObject* selObj = dynamic_cast<caf::PdmObject*>( caf::SelectionManager::instance()->selectedItem() );
if ( !selObj ) return false;