mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
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:
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user