Renamed RicWellPathsImportFileFeature to RicImportWellPaths

This commit is contained in:
Gaute Lindkvist 2019-10-09 09:27:26 +02:00
parent 2961782be1
commit 32817d2cc6
4 changed files with 15 additions and 15 deletions

View File

@ -17,7 +17,7 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RicfImportWellPaths.h"
#include "WellPathCommands/RicWellPathsImportFileFeature.h"
#include "WellPathCommands/RicImportWellPaths.h"
#include "RimFileWellPath.h"
@ -57,7 +57,7 @@ RicfCommandResponse RicfImportWellPaths::execute()
if ( wellPathFolder.exists() )
{
QStringList nameFilters;
nameFilters << RicWellPathsImportFileFeature::wellPathNameFilters();
nameFilters << RicImportWellPaths::wellPathNameFilters();
QStringList relativePaths = wellPathFolder.entryList( nameFilters, QDir::Files | QDir::NoDotAndDotDot );
for ( QString relativePath : relativePaths )
{
@ -84,8 +84,8 @@ RicfCommandResponse RicfImportWellPaths::execute()
RicfCommandResponse response;
if ( !wellPathFiles.empty() )
{
std::vector<RimFileWellPath*> importedWellPaths = RicWellPathsImportFileFeature::importWellPaths( wellPathFiles,
&warningMessages );
std::vector<RimFileWellPath*> importedWellPaths = RicImportWellPaths::importWellPaths( wellPathFiles,
&warningMessages );
if ( !importedWellPaths.empty() )
{
RicfImportWellPathsResult* wellPathsResult = new RicfImportWellPathsResult;

View File

@ -13,7 +13,7 @@ ${CMAKE_CURRENT_LIST_DIR}/RicWellPathsUnitSystemSettingsUi.h
${CMAKE_CURRENT_LIST_DIR}/RicWellPathPickEventHandler.h
${CMAKE_CURRENT_LIST_DIR}/RicCreateWellTargetsPickEventHandler.h
${CMAKE_CURRENT_LIST_DIR}/RicIntersectionPickEventHandler.h
${CMAKE_CURRENT_LIST_DIR}/RicWellPathFormationsImportFileFeature.h
${CMAKE_CURRENT_LIST_DIR}/RicImportWellPaths.h
${CMAKE_CURRENT_LIST_DIR}/RicPolylineTargetsPickEventHandler.h
${CMAKE_CURRENT_LIST_DIR}/RicNewPolylineTargetFeature.h
${CMAKE_CURRENT_LIST_DIR}/RicDeletePolylineTargetFeature.h
@ -27,7 +27,7 @@ ${CMAKE_CURRENT_LIST_DIR}/PointTangentManipulator/RicPolylineTarget3dEditor.h
set (SOURCE_GROUP_SOURCE_FILES
${CMAKE_CURRENT_LIST_DIR}/RicWellPathDeleteFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicWellPathsImportFileFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicImportWellPaths.cpp
${CMAKE_CURRENT_LIST_DIR}/RicNewEditableWellPathFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicShowWellPlanFeature.cpp
${CMAKE_CURRENT_LIST_DIR}/RicNewWellPathListTargetFeature.cpp

View File

@ -17,7 +17,7 @@
//
/////////////////////////////////////////////////////////////////////////////////
#include "RicWellPathsImportFileFeature.h"
#include "RicImportWellPaths.h"
#include "RiaApplication.h"
#include "RiaGuiApplication.h"
@ -34,13 +34,13 @@
#include <QFileDialog>
#include <QMessageBox>
CAF_CMD_SOURCE_INIT( RicWellPathsImportFileFeature, "RicWellPathsImportFileFeature" );
CAF_CMD_SOURCE_INIT( RicImportWellPaths, "RicWellPathsImportFileFeature" );
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RimFileWellPath*> RicWellPathsImportFileFeature::importWellPaths( const QStringList& wellPathFilePaths,
QStringList* errorMessages )
std::vector<RimFileWellPath*> RicImportWellPaths::importWellPaths( const QStringList& wellPathFilePaths,
QStringList* errorMessages )
{
RiaApplication* app = RiaApplication::instance();
@ -71,7 +71,7 @@ std::vector<RimFileWellPath*> RicWellPathsImportFileFeature::importWellPaths( co
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QStringList RicWellPathsImportFileFeature::wellPathNameFilters()
QStringList RicImportWellPaths::wellPathNameFilters()
{
QStringList nameFilters;
nameFilters << "*.json"
@ -85,7 +85,7 @@ QStringList RicWellPathsImportFileFeature::wellPathNameFilters()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicWellPathsImportFileFeature::isCommandEnabled()
bool RicImportWellPaths::isCommandEnabled()
{
return true;
}
@ -93,7 +93,7 @@ bool RicWellPathsImportFileFeature::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathsImportFileFeature::onActionTriggered( bool isChecked )
void RicImportWellPaths::onActionTriggered( bool isChecked )
{
// Open dialog box to select well path files
RiaApplication* app = RiaApplication::instance();
@ -128,7 +128,7 @@ void RicWellPathsImportFileFeature::onActionTriggered( bool isChecked )
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicWellPathsImportFileFeature::setupActionLook( QAction* actionToSetup )
void RicImportWellPaths::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "Import &Well Paths from File" );
actionToSetup->setIcon( QIcon( ":/Well.png" ) );

View File

@ -28,7 +28,7 @@ class RimFileWellPath;
//==================================================================================================
///
//==================================================================================================
class RicWellPathsImportFileFeature : public caf::CmdFeature
class RicImportWellPaths : public caf::CmdFeature
{
CAF_CMD_HEADER_INIT;