ResInsight/ApplicationLibCode/Commands/RicImportObservedFmuDataInMenuFeature.cpp

63 lines
2.4 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
2019-08-20 08:09:13 -05:00
// Copyright (C) 2017 Statoil ASA
//
// 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.
//
/////////////////////////////////////////////////////////////////////////////////
2019-08-20 08:09:13 -05:00
#include "RicImportObservedFmuDataInMenuFeature.h"
2019-08-20 08:09:13 -05:00
#include "RicImportObservedFmuDataFeature.h"
#include "RimObservedDataCollection.h"
2019-08-20 08:09:13 -05:00
#include "RimOilField.h"
#include "RimProject.h"
2019-08-20 08:09:13 -05:00
#include "RimSummaryObservedDataFile.h"
#include <QAction>
2019-08-20 08:09:13 -05:00
CAF_CMD_SOURCE_INIT( RicImportObservedFmuDataInMenuFeature, "RicImportObservedFmuDataInMenuFeature" );
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RicImportObservedFmuDataInMenuFeature::RicImportObservedFmuDataInMenuFeature()
{
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
2019-08-20 08:09:13 -05:00
bool RicImportObservedFmuDataInMenuFeature::isCommandEnabled()
{
2019-08-20 08:09:13 -05:00
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicImportObservedFmuDataInMenuFeature::onActionTriggered( bool isChecked )
2019-08-20 08:09:13 -05:00
{
RicImportObservedFmuDataFeature::selectObservedDataPathInDialog();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RicImportObservedFmuDataInMenuFeature::setupActionLook( QAction* actionToSetup )
2019-08-20 08:09:13 -05:00
{
actionToSetup->setIcon( QIcon( ":/ObservedDataFile16x16.png" ) );
actionToSetup->setText( "Import Observed FMU Data" );
2019-08-20 08:09:13 -05:00
}