2021-12-23 02:30:36 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2022-03-04 03:52:17 -06:00
|
|
|
// Copyright (C) 2022 Equinor ASA
|
2021-12-23 02:30:36 -06:00
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafCmdFeature.h"
|
|
|
|
#include "cafPdmField.h"
|
2022-03-25 05:39:12 -05:00
|
|
|
#include "cafPdmUiItem.h"
|
2021-12-23 02:30:36 -06:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2022-03-25 05:39:12 -05:00
|
|
|
class RimSummaryMultiPlotCollection;
|
|
|
|
class RimSummaryCase;
|
2024-07-29 08:38:17 -05:00
|
|
|
class RimSummaryEnsemble;
|
2021-12-23 02:30:36 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2022-03-25 05:39:12 -05:00
|
|
|
class RicNewSummaryMultiPlotFeature : public caf::CmdFeature
|
2021-12-23 02:30:36 -06:00
|
|
|
{
|
2022-03-25 05:39:12 -05:00
|
|
|
CAF_CMD_HEADER_INIT;
|
2021-12-23 02:30:36 -06:00
|
|
|
|
|
|
|
protected:
|
2023-06-26 07:28:46 -05:00
|
|
|
bool isCommandEnabled() const override;
|
2021-12-23 02:30:36 -06:00
|
|
|
void onActionTriggered( bool isChecked ) override;
|
|
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
2022-03-04 03:52:17 -06:00
|
|
|
|
|
|
|
private:
|
2023-06-26 07:28:46 -05:00
|
|
|
static RimSummaryMultiPlotCollection* selectedCollection( std::vector<caf::PdmUiItem*>& items );
|
2022-03-04 03:52:17 -06:00
|
|
|
|
2024-07-29 08:38:17 -05:00
|
|
|
static bool selectedCases( std::vector<RimSummaryCase*>* selectedIndividualSummaryCases,
|
|
|
|
std::vector<RimSummaryEnsemble*>* selectedEnsembles );
|
2021-12-23 02:30:36 -06:00
|
|
|
};
|