mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor : Remove Multi Case Import dialog and features
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
set (SOURCE_GROUP_HEADER_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicAddEclipseInputPropertyFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicComputeStatisticsFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicCreateGridCaseGroupFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicCreateGridCaseGroupFromFilesFeature.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicEclipseCaseNewGroupExec.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicEclipseCaseNewGroupFeature.h
|
||||
@@ -24,7 +23,6 @@ ${CMAKE_CURRENT_LIST_DIR}/RicEclipseHideFaultFeature.h
|
||||
set (SOURCE_GROUP_SOURCE_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicAddEclipseInputPropertyFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicComputeStatisticsFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicCreateGridCaseGroupFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicCreateGridCaseGroupFromFilesFeature.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicEclipseCaseNewGroupExec.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RicEclipseCaseNewGroupFeature.cpp
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2015- Statoil ASA
|
||||
// Copyright (C) 2015- Ceetron Solutions AS
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RicCreateGridCaseGroupFeature.h"
|
||||
|
||||
#include "RiaImportEclipseCaseTools.h"
|
||||
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RiuMultiCaseImportDialog.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
CAF_CMD_SOURCE_INIT( RicCreateGridCaseGroupFeature, "RicCreateGridCaseGroupFeature" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RicCreateGridCaseGroupFeature::isCommandEnabled()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicCreateGridCaseGroupFeature::onActionTriggered( bool isChecked )
|
||||
{
|
||||
RiuMultiCaseImportDialog dialog;
|
||||
int action = dialog.exec();
|
||||
if ( action == QDialog::Accepted )
|
||||
{
|
||||
QStringList gridFileNames = dialog.eclipseCaseFileNames();
|
||||
RiaImportEclipseCaseTools::addEclipseCases( gridFileNames );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicCreateGridCaseGroupFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setIcon( QIcon( ":/CreateGridCaseGroup16x16.png" ) );
|
||||
actionToSetup->setText( "&Create Grid Case Group from Files" );
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2015- Statoil ASA
|
||||
// Copyright (C) 2015- Ceetron Solutions AS
|
||||
//
|
||||
// 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 <vector>
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RicCreateGridCaseGroupFeature : public caf::CmdFeature
|
||||
{
|
||||
CAF_CMD_HEADER_INIT;
|
||||
|
||||
protected:
|
||||
// Overrides
|
||||
bool isCommandEnabled() override;
|
||||
void onActionTriggered( bool isChecked ) override;
|
||||
void setupActionLook( QAction* actionToSetup ) override;
|
||||
};
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "RicRecursiveFileSearchDialog.h"
|
||||
|
||||
#include "RimEclipseCaseCollection.h"
|
||||
#include "RiuMultiCaseImportDialog.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
@@ -52,7 +51,7 @@ void RicCreateGridCaseGroupFromFilesFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
RicRecursiveFileSearchDialogResult result =
|
||||
RicRecursiveFileSearchDialog::runRecursiveSearchDialog( nullptr,
|
||||
"Create Grid Case Group from Files",
|
||||
"Create Grid Case Group",
|
||||
defaultDir,
|
||||
m_pathFilter,
|
||||
m_fileNameFilter,
|
||||
@@ -77,5 +76,5 @@ void RicCreateGridCaseGroupFromFilesFeature::onActionTriggered( bool isChecked )
|
||||
void RicCreateGridCaseGroupFromFilesFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setIcon( QIcon( ":/CreateGridCaseGroup16x16.png" ) );
|
||||
actionToSetup->setText( "&Create Grid Case Group from Files Recursively" );
|
||||
actionToSetup->setText( "&Create Grid Case Group" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user