From e4e7c0fa710c905fb056aae0e423bfe5b444c4e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Mon, 17 Aug 2015 14:35:30 +0200 Subject: [PATCH] Removed obsolete source file --- .../Commands/RicEclipseViewDelete.cpp | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 ApplicationCode/Commands/RicEclipseViewDelete.cpp diff --git a/ApplicationCode/Commands/RicEclipseViewDelete.cpp b/ApplicationCode/Commands/RicEclipseViewDelete.cpp deleted file mode 100644 index e4c36e7f21..0000000000 --- a/ApplicationCode/Commands/RicEclipseViewDelete.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 "RicEclipseViewDelete.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"); -}