Renamed some command classes

This commit is contained in:
Pål Hagen 2015-08-11 13:55:31 +02:00
parent 61b43c426a
commit 0e50a0bac5
5 changed files with 21 additions and 21 deletions

View File

@ -11,8 +11,8 @@ ${CEE_CURRENT_LIST_DIR}RicEclipseCaseExecuteScript.h
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroup.h
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewView.h
${CEE_CURRENT_LIST_DIR}RicEclipseCasePaste.h
${CEE_CURRENT_LIST_DIR}RicEclipseCellResultSave.h
${CEE_CURRENT_LIST_DIR}RicEclipseCellResultSaveExec.h
${CEE_CURRENT_LIST_DIR}RicSaveEclipseResultAsInputProperty.h
${CEE_CURRENT_LIST_DIR}RicSaveEclipseResultAsInputPropertyExec.h
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilter.h
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterDelete.h
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterDeleteExec.h
@ -45,8 +45,8 @@ ${CEE_CURRENT_LIST_DIR}RicEclipseCaseExecuteScript.cpp
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewGroup.cpp
${CEE_CURRENT_LIST_DIR}RicEclipseCaseNewView.cpp
${CEE_CURRENT_LIST_DIR}RicEclipseCasePaste.cpp
${CEE_CURRENT_LIST_DIR}RicEclipseCellResultSave.cpp
${CEE_CURRENT_LIST_DIR}RicEclipseCellResultSaveExec.cpp
${CEE_CURRENT_LIST_DIR}RicSaveEclipseResultAsInputProperty.cpp
${CEE_CURRENT_LIST_DIR}RicSaveEclipseResultAsInputPropertyExec.cpp
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilter.cpp
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterDelete.cpp
${CEE_CURRENT_LIST_DIR}RicEclipsePropertyFilterDeleteExec.cpp

View File

@ -17,9 +17,9 @@
//
/////////////////////////////////////////////////////////////////////////////////
#include "RicEclipseCellResultSave.h"
#include "RicSaveEclipseResultAsInputProperty.h"
#include "RicEclipseCellResultSaveExec.h"
#include "RicSaveEclipseResultAsInputPropertyExec.h"
#include "RimEclipseCellColors.h"
#include "RimView.h"
@ -29,12 +29,12 @@
#include <QAction>
CAF_CMD_SOURCE_INIT(RicEclipseCellResultSave, "RicEclipseCellResultSave");
CAF_CMD_SOURCE_INIT(RicSaveEclipseResultAsInputProperty, "RicEclipseCellResultSave");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicEclipseCellResultSave::isCommandEnabled()
bool RicSaveEclipseResultAsInputProperty::isCommandEnabled()
{
std::vector<RimEclipseCellColors*> selection;
caf::SelectionManager::instance()->objectsByType(&selection);
@ -45,13 +45,13 @@ bool RicEclipseCellResultSave::isCommandEnabled()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicEclipseCellResultSave::onActionTriggered(bool isChecked)
void RicSaveEclipseResultAsInputProperty::onActionTriggered(bool isChecked)
{
std::vector<RimEclipseCellColors*> selection;
caf::SelectionManager::instance()->objectsByType(&selection);
if (selection.size() == 1)
{
RicEclipseCellResultSaveExec* cellResultSaveExec = new RicEclipseCellResultSaveExec(selection[0]);
RicSaveEclipseResultAsInputPropertyExec* cellResultSaveExec = new RicSaveEclipseResultAsInputPropertyExec(selection[0]);
caf::CmdExecCommandManager::instance()->processExecuteCommand(cellResultSaveExec);
}
}
@ -59,7 +59,7 @@ void RicEclipseCellResultSave::onActionTriggered(bool isChecked)
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicEclipseCellResultSave::setupActionLook(QAction* actionToSetup)
void RicSaveEclipseResultAsInputProperty::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setText("Save Property To File");
}

View File

@ -25,7 +25,7 @@
//==================================================================================================
///
//==================================================================================================
class RicEclipseCellResultSave : public caf::CmdFeature
class RicSaveEclipseResultAsInputProperty : public caf::CmdFeature
{
CAF_CMD_HEADER_INIT;

View File

@ -17,7 +17,7 @@
//
/////////////////////////////////////////////////////////////////////////////////
#include "RicEclipseCellResultSaveExec.h"
#include "RicSaveEclipseResultAsInputPropertyExec.h"
#include "RimEclipseCellColors.h"
#include "RimBinaryExportSettings.h"
@ -41,7 +41,7 @@
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicEclipseCellResultSaveExec::RicEclipseCellResultSaveExec(RimEclipseCellColors* cellColors)
RicSaveEclipseResultAsInputPropertyExec::RicSaveEclipseResultAsInputPropertyExec(RimEclipseCellColors* cellColors)
: CmdExecuteCommand(NULL)
{
CVF_ASSERT(cellColors);
@ -51,14 +51,14 @@ RicEclipseCellResultSaveExec::RicEclipseCellResultSaveExec(RimEclipseCellColors*
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicEclipseCellResultSaveExec::~RicEclipseCellResultSaveExec()
RicSaveEclipseResultAsInputPropertyExec::~RicSaveEclipseResultAsInputPropertyExec()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RicEclipseCellResultSaveExec::name()
QString RicSaveEclipseResultAsInputPropertyExec::name()
{
return "Save Property To File";
}
@ -66,7 +66,7 @@ QString RicEclipseCellResultSaveExec::name()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicEclipseCellResultSaveExec::redo()
void RicSaveEclipseResultAsInputPropertyExec::redo()
{
CVF_ASSERT(m_cellColors);
@ -113,7 +113,7 @@ void RicEclipseCellResultSaveExec::redo()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicEclipseCellResultSaveExec::undo()
void RicSaveEclipseResultAsInputPropertyExec::undo()
{
// TODO
CVF_ASSERT(0);

View File

@ -27,11 +27,11 @@ class RimEclipseCellColors;
//==================================================================================================
///
//==================================================================================================
class RicEclipseCellResultSaveExec : public caf::CmdExecuteCommand
class RicSaveEclipseResultAsInputPropertyExec : public caf::CmdExecuteCommand
{
public:
RicEclipseCellResultSaveExec(RimEclipseCellColors* cellColors);
virtual ~RicEclipseCellResultSaveExec();
RicSaveEclipseResultAsInputPropertyExec(RimEclipseCellColors* cellColors);
virtual ~RicSaveEclipseResultAsInputPropertyExec();
virtual QString name();
virtual void redo();