Files
ResInsight/ApplicationCode/Commands/RicNewViewFeature.h
T

54 lines
1.8 KiB
C++
Raw Normal View History

2015-08-18 10:36:23 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions AS
//
2015-08-18 10:36:23 +02:00
// 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.
//
2015-08-18 10:36:23 +02:00
// 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>
2015-08-18 10:36:23 +02:00
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "cafCmdFeature.h"
class RimEclipseCase;
class RimEclipseView;
class RimGeoMechCase;
class RimGeoMechView;
2018-01-09 10:11:28 +01:00
class Rim3dView;
2015-08-18 10:36:23 +02:00
//==================================================================================================
///
2015-08-18 10:36:23 +02:00
//==================================================================================================
class RicNewViewFeature : public caf::CmdFeature
{
CAF_CMD_HEADER_INIT;
public:
static void addReservoirView( RimEclipseCase* eclipseCase, RimGeoMechCase* geomCase );
2015-08-18 10:36:23 +02:00
protected:
// Overrides
bool isCommandEnabled() override;
void onActionTriggered( bool isChecked ) override;
void setupActionLook( QAction* actionToSetup ) override;
2015-08-18 10:36:23 +02:00
private:
static Rim3dView* createReservoirView( RimEclipseCase* eclipseCase, RimGeoMechCase* geomCase );
2015-08-18 10:36:23 +02:00
static RimEclipseCase* selectedEclipseCase();
static RimGeoMechCase* selectedGeoMechCase();
static RimEclipseView* selectedEclipseView();
static RimGeoMechView* selectedGeoMechView();
2015-08-18 10:36:23 +02:00
};