diff --git a/ApplicationCode/Commands/CMakeLists_files.cmake b/ApplicationCode/Commands/CMakeLists_files.cmake index b62c919d69..bfb3bff059 100644 --- a/ApplicationCode/Commands/CMakeLists_files.cmake +++ b/ApplicationCode/Commands/CMakeLists_files.cmake @@ -21,7 +21,6 @@ ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertExec.h ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewExec.h -${CEE_CURRENT_LIST_DIR}RicEclipseViewDeleteFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipseViewNewFeature.h ${CEE_CURRENT_LIST_DIR}RicEclipseViewPasteFeature.h #${CEE_CURRENT_LIST_DIR}RicGridModelsCreateCaseGroupFromFiles.h @@ -65,7 +64,6 @@ ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertExec.cpp ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewExec.cpp -${CEE_CURRENT_LIST_DIR}RicEclipseViewDeleteFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipseViewNewFeature.cpp ${CEE_CURRENT_LIST_DIR}RicEclipseViewPasteFeature.cpp #${CEE_CURRENT_LIST_DIR}RicGridModelsCreateCaseGroupFromFiles.cpp diff --git a/ApplicationCode/Commands/RicEclipseViewDeleteFeature.cpp b/ApplicationCode/Commands/RicEclipseViewDeleteFeature.cpp deleted file mode 100644 index 79143cdce5..0000000000 --- a/ApplicationCode/Commands/RicEclipseViewDeleteFeature.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 "RicEclipseViewDeleteFeature.h" - -#include "RimEclipseView.h" - -#include "cafSelectionManager.h" - -#include - -CAF_CMD_SOURCE_INIT(RicEclipseViewDeleteFeature, "RicEclipseViewDelete"); - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -bool RicEclipseViewDeleteFeature::isCommandEnabled() -{ - std::vector selection; - caf::SelectionManager::instance()->objectsByType(&selection); - - if (selection.size() > 0) - { - return true; - } - else - { - return false; - } -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RicEclipseViewDeleteFeature::onActionTriggered(bool isChecked) -{ - // MODTODO -} - -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -void RicEclipseViewDeleteFeature::setupActionLook(QAction* actionToSetup) -{ - actionToSetup->setText("Delete"); -} diff --git a/ApplicationCode/Commands/RicEclipseViewDeleteFeature.h b/ApplicationCode/Commands/RicEclipseViewDeleteFeature.h deleted file mode 100644 index 668f9a16b8..0000000000 --- a/ApplicationCode/Commands/RicEclipseViewDeleteFeature.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 RicEclipseViewDeleteFeature : public caf::CmdFeature -{ - CAF_CMD_HEADER_INIT; - -protected: - // Overrides - virtual bool isCommandEnabled(); - virtual void onActionTriggered( bool isChecked ); - virtual void setupActionLook( QAction* actionToSetup ); -}; - -