ResInsight/ApplicationCode/Commands/RicImportObservedFmuDataInMenuFeature.cpp

64 lines
2.5 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"
#include "RiaApplication.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>
#include <QFileDialog>
2019-08-20 08:09:13 -05:00
CAF_CMD_SOURCE_INIT(RicImportObservedFmuDataInMenuFeature, "RicImportObservedFmuDataInMenuFeature");
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
2019-08-20 08:09:13 -05:00
RicImportObservedFmuDataInMenuFeature::RicImportObservedFmuDataInMenuFeature() {}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
2019-08-20 08:09:13 -05:00
bool RicImportObservedFmuDataInMenuFeature::isCommandEnabled()
{
2019-08-20 08:09:13 -05:00
return true;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
2019-08-20 08:09:13 -05:00
void RicImportObservedFmuDataInMenuFeature::onActionTriggered(bool isChecked)
{
RicImportObservedFmuDataFeature::selectObservedDataPathInDialog();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
2019-08-20 08:09:13 -05:00
void RicImportObservedFmuDataInMenuFeature::setupActionLook(QAction* actionToSetup)
{
actionToSetup->setIcon(QIcon(":/ObservedDataFile16x16.png"));
actionToSetup->setText("Import Observed FMU Data");
}