mirror of
				https://github.com/OPM/ResInsight.git
				synced 2025-02-25 18:55:39 -06:00 
			
		
		
		
	Removed obsolete command features
This commit is contained in:
		@@ -6,7 +6,6 @@ endif()
 | 
			
		||||
 | 
			
		||||
set (SOURCE_GROUP_HEADER_FILES
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseClose.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseCopy.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseExecuteScript.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroup.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroupExec.h
 | 
			
		||||
@@ -22,7 +21,6 @@ ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsert.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertExec.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNew.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewExec.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewCopy.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewDelete.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewNew.h
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewPaste.h
 | 
			
		||||
@@ -52,7 +50,6 @@ ${CEE_CURRENT_LIST_DIR}RicDeleteItemFeature.h
 | 
			
		||||
 | 
			
		||||
set (SOURCE_GROUP_SOURCE_FILES
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseClose.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseCopy.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseExecuteScript.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroup.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroupExec.cpp
 | 
			
		||||
@@ -68,7 +65,6 @@ ${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsert.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterInsertExec.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNew.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterNewExec.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewCopy.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewDelete.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewNew.cpp
 | 
			
		||||
${CEE_CURRENT_LIST_DIR}RicEclipseViewPaste.cpp
 | 
			
		||||
 
 | 
			
		||||
@@ -50,6 +50,8 @@ bool RicEclipseCaseClose::isCommandEnabled()
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
void RicEclipseCaseClose::onActionTriggered(bool isChecked)
 | 
			
		||||
{
 | 
			
		||||
    // TODO
 | 
			
		||||
    assert(false);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
 
 | 
			
		||||
@@ -1,63 +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 "RicEclipseCaseCopy.h"
 | 
			
		||||
 | 
			
		||||
#include "RimCase.h"
 | 
			
		||||
 | 
			
		||||
#include "cafSelectionManager.h"
 | 
			
		||||
 | 
			
		||||
#include <QAction>
 | 
			
		||||
 | 
			
		||||
CAF_CMD_SOURCE_INIT(RicEclipseCaseCopy, "RicEclipseCaseCopy");
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
/// 
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
bool RicEclipseCaseCopy::isCommandEnabled()
 | 
			
		||||
{
 | 
			
		||||
    std::vector<RimCase*> selection;
 | 
			
		||||
    caf::SelectionManager::instance()->objectsByType(&selection);
 | 
			
		||||
 | 
			
		||||
    if (selection.size() > 0)
 | 
			
		||||
    {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
/// 
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
void RicEclipseCaseCopy::onActionTriggered(bool isChecked)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
/// 
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
void RicEclipseCaseCopy::setupActionLook(QAction* actionToSetup)
 | 
			
		||||
{
 | 
			
		||||
    actionToSetup->setText("Copy");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -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 <http://www.gnu.org/licenses/gpl.html> 
 | 
			
		||||
//  for more details.
 | 
			
		||||
//
 | 
			
		||||
/////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "cafCmdFeature.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//==================================================================================================
 | 
			
		||||
/// 
 | 
			
		||||
//==================================================================================================
 | 
			
		||||
class RicEclipseCaseCopy : public caf::CmdFeature
 | 
			
		||||
{
 | 
			
		||||
    CAF_CMD_HEADER_INIT;
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    // Overrides
 | 
			
		||||
    virtual bool isCommandEnabled();
 | 
			
		||||
    virtual void onActionTriggered( bool isChecked );
 | 
			
		||||
    virtual void setupActionLook( QAction* actionToSetup );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -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 "RicEclipseViewCopy.h"
 | 
			
		||||
 | 
			
		||||
#include "RimEclipseView.h"
 | 
			
		||||
 | 
			
		||||
#include "cafSelectionManager.h"
 | 
			
		||||
 | 
			
		||||
#include <QAction>
 | 
			
		||||
 | 
			
		||||
CAF_CMD_SOURCE_INIT(RicEclipseViewCopy, "RicEclipseViewCopy");
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
/// 
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
bool RicEclipseViewCopy::isCommandEnabled()
 | 
			
		||||
{
 | 
			
		||||
    std::vector<RimEclipseView*> selection;
 | 
			
		||||
    caf::SelectionManager::instance()->objectsByType(&selection);
 | 
			
		||||
 | 
			
		||||
    if (selection.size() > 0)
 | 
			
		||||
    {
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        return false;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
/// 
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
void RicEclipseViewCopy::onActionTriggered(bool isChecked)
 | 
			
		||||
{
 | 
			
		||||
    // MODTODO
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
/// 
 | 
			
		||||
//--------------------------------------------------------------------------------------------------
 | 
			
		||||
void RicEclipseViewCopy::setupActionLook(QAction* actionToSetup)
 | 
			
		||||
{
 | 
			
		||||
    actionToSetup->setText("Copy View");
 | 
			
		||||
}
 | 
			
		||||
@@ -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 <http://www.gnu.org/licenses/gpl.html> 
 | 
			
		||||
//  for more details.
 | 
			
		||||
//
 | 
			
		||||
/////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#include "cafCmdFeature.h"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//==================================================================================================
 | 
			
		||||
/// 
 | 
			
		||||
//==================================================================================================
 | 
			
		||||
class RicEclipseViewCopy : public caf::CmdFeature
 | 
			
		||||
{
 | 
			
		||||
    CAF_CMD_HEADER_INIT;
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
    // Overrides
 | 
			
		||||
    virtual bool isCommandEnabled();
 | 
			
		||||
    virtual void onActionTriggered( bool isChecked );
 | 
			
		||||
    virtual void setupActionLook( QAction* actionToSetup );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user