diff --git a/ApplicationCode/Commands/CMakeLists_files.cmake b/ApplicationCode/Commands/CMakeLists_files.cmake index 03a6515bbd..90bf1ff7c6 100644 --- a/ApplicationCode/Commands/CMakeLists_files.cmake +++ b/ApplicationCode/Commands/CMakeLists_files.cmake @@ -8,7 +8,6 @@ set (SOURCE_GROUP_HEADER_FILES ${CEE_CURRENT_LIST_DIR}RicCloseCaseFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroupFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroupExec.h -${CEE_CURRENT_LIST_DIR}RicEclipseCasePasteFeature.h ${CEE_CURRENT_LIST_DIR}RicGeoMechPropertyFilterFeatureImpl.h ${CEE_CURRENT_LIST_DIR}RicGeoMechPropertyFilterInsertFeature.h ${CEE_CURRENT_LIST_DIR}RicGeoMechPropertyFilterInsertExec.h @@ -20,7 +19,6 @@ ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertExec.h ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewExec.h ${CEE_CURRENT_LIST_DIR}RicNewViewFeature.h -${CEE_CURRENT_LIST_DIR}RicEclipseViewPasteFeature.h ${CEE_CURRENT_LIST_DIR}RicPropertyFilterNewExec.h ${CEE_CURRENT_LIST_DIR}RicRangeFilterExecImpl.h ${CEE_CURRENT_LIST_DIR}RicRangeFilterInsertExec.h @@ -60,7 +58,6 @@ set (SOURCE_GROUP_SOURCE_FILES ${CEE_CURRENT_LIST_DIR}RicCloseCaseFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroupFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroupExec.cpp -${CEE_CURRENT_LIST_DIR}RicEclipseCasePasteFeature.cpp ${CEE_CURRENT_LIST_DIR}RicGeoMechPropertyFilterFeatureImpl.cpp ${CEE_CURRENT_LIST_DIR}RicGeoMechPropertyFilterInsertFeature.cpp ${CEE_CURRENT_LIST_DIR}RicGeoMechPropertyFilterInsertExec.cpp @@ -72,7 +69,6 @@ ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertExec.cpp ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewExec.cpp ${CEE_CURRENT_LIST_DIR}RicNewViewFeature.cpp -${CEE_CURRENT_LIST_DIR}RicEclipseViewPasteFeature.cpp ${CEE_CURRENT_LIST_DIR}RicRangeFilterExecImpl.cpp ${CEE_CURRENT_LIST_DIR}RicRangeFilterInsertExec.cpp ${CEE_CURRENT_LIST_DIR}RicRangeFilterInsertFeature.cpp diff --git a/ApplicationCode/Commands/RicEclipseCasePasteFeature.cpp b/ApplicationCode/Commands/RicEclipseCasePasteFeature.cpp deleted file mode 100644 index 6918f3f188..0000000000 --- a/ApplicationCode/Commands/RicEclipseCasePasteFeature.cpp +++ /dev/null @@ -1,61 +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 -// for more details. -// -///////////////////////////////////////////////////////////////////////////////// - -#include "RicEclipseCasePasteFeature.h" - -#include "RimCase.h" - -#include "cafSelectionManager.h" - -#include - -CAF_CMD_SOURCE_INIT(RicEclipseCasePasteFeature, "RicEclipseCasePasteFeature"); - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -bool RicEclipseCasePasteFeature::isCommandEnabled() -{ - std::vector selection; - caf::SelectionManager::instance()->objectsByType(&selection); - - if (selection.size() > 0) - { - return true; - } - else - { - return false; - } -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RicEclipseCasePasteFeature::onActionTriggered(bool isChecked) -{ -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RicEclipseCasePasteFeature::setupActionLook(QAction* actionToSetup) -{ - actionToSetup->setText("Paste"); -} diff --git a/ApplicationCode/Commands/RicEclipseCasePasteFeature.h b/ApplicationCode/Commands/RicEclipseCasePasteFeature.h deleted file mode 100644 index 7ab091da65..0000000000 --- a/ApplicationCode/Commands/RicEclipseCasePasteFeature.h +++ /dev/null @@ -1,39 +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 -// for more details. -// -///////////////////////////////////////////////////////////////////////////////// - -#pragma once - -#include "cafCmdFeature.h" - - -//================================================================================================== -/// -//================================================================================================== -class RicEclipseCasePasteFeature : public caf::CmdFeature -{ - CAF_CMD_HEADER_INIT; - -protected: - // Overrides - virtual bool isCommandEnabled(); - virtual void onActionTriggered( bool isChecked ); - virtual void setupActionLook( QAction* actionToSetup ); -}; - - diff --git a/ApplicationCode/Commands/RicEclipseViewPasteFeature.cpp b/ApplicationCode/Commands/RicEclipseViewPasteFeature.cpp deleted file mode 100644 index 74feb8e267..0000000000 --- a/ApplicationCode/Commands/RicEclipseViewPasteFeature.cpp +++ /dev/null @@ -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 -// for more details. -// -///////////////////////////////////////////////////////////////////////////////// - -#include "RicEclipseViewPasteFeature.h" - -#include "RimEclipseView.h" - -#include "cafSelectionManager.h" - -#include - -CAF_CMD_SOURCE_INIT(RicEclipseViewPasteFeature, "RicEclipseViewPasteFeature"); - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -bool RicEclipseViewPasteFeature::isCommandEnabled() -{ - std::vector selection; - caf::SelectionManager::instance()->objectsByType(&selection); - - if (selection.size() > 0) - { - return true; - } - else - { - return false; - } -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RicEclipseViewPasteFeature::onActionTriggered(bool isChecked) -{ - // MODTODO -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RicEclipseViewPasteFeature::setupActionLook(QAction* actionToSetup) -{ - actionToSetup->setText("Paste"); -} diff --git a/ApplicationCode/Commands/RicEclipseViewPasteFeature.h b/ApplicationCode/Commands/RicEclipseViewPasteFeature.h deleted file mode 100644 index 9271e79835..0000000000 --- a/ApplicationCode/Commands/RicEclipseViewPasteFeature.h +++ /dev/null @@ -1,39 +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 -// for more details. -// -///////////////////////////////////////////////////////////////////////////////// - -#pragma once - -#include "cafCmdFeature.h" - - -//================================================================================================== -/// -//================================================================================================== -class RicEclipseViewPasteFeature : public caf::CmdFeature -{ - CAF_CMD_HEADER_INIT; - -protected: - // Overrides - virtual bool isCommandEnabled(); - virtual void onActionTriggered( bool isChecked ); - virtual void setupActionLook( QAction* actionToSetup ); -}; - -