Files
ResInsight/ApplicationLibCode/Commands/RicImportSummaryCasesFeature.h
T

61 lines
2.4 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2016- Statoil ASA
//
// 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 "RiaEnsembleNameTools.h"
2024-10-21 14:40:25 +02:00
#include "Summary/RiaSummaryDefines.h"
2023-04-20 10:16:43 +02:00
#include "RicRecursiveFileSearchDialog.h"
#include "cafCmdFeature.h"
#include <QString>
#include <vector>
2018-03-16 09:02:28 +01:00
class RicSummaryCaseRestartDialogResult;
class RimSummaryCase;
2018-03-19 11:02:22 +01:00
//==================================================================================================
///
//==================================================================================================
class RicImportSummaryCasesFeature : public caf::CmdFeature
{
CAF_CMD_HEADER_INIT;
public:
RicImportSummaryCasesFeature() {}
2023-04-20 10:16:43 +02:00
static std::pair<bool, std::vector<RimSummaryCase*>> createAndAddSummaryCasesFromFiles( const QStringList& fileName,
bool doCreateDefaultPlot );
2019-11-03 12:19:24 +01:00
static void addSummaryCases( const std::vector<RimSummaryCase*>& cases );
2023-04-20 10:16:43 +02:00
static RicRecursiveFileSearchDialogResult runRecursiveSummaryCaseFileSearchDialog( const QString& dialogTitle,
const QString& pathCacheName );
2023-04-20 10:16:43 +02:00
static RicRecursiveFileSearchDialogResult runRecursiveSummaryCaseFileSearchDialogWithGrouping( const QString& dialogTitle,
const QString& pathCacheName );
protected:
void onActionTriggered( bool isChecked ) override;
void setupActionLook( QAction* actionToSetup ) override;
private:
static QString m_pathFilter;
static QString m_fileNameFilter;
};