2013-10-24 02:50:16 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-23 08:04:57 -05:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2013-10-24 02:50:16 -05: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.
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2017-01-05 00:53:14 -06:00
|
|
|
#include <QList>
|
2014-07-24 03:11:43 -05:00
|
|
|
#include <QString>
|
2013-10-24 02:50:16 -05:00
|
|
|
|
2016-06-29 08:45:20 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2017-08-24 23:51:56 -05:00
|
|
|
class QDateTime;
|
|
|
|
|
2017-01-05 00:53:14 -06:00
|
|
|
namespace caf {
|
|
|
|
class PdmOptionItemInfo;
|
|
|
|
}
|
|
|
|
|
2017-08-24 23:51:56 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2013-10-24 02:50:16 -05:00
|
|
|
class RimTools
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static QString getCacheRootDirectoryPathFromProject();
|
2016-06-29 08:45:20 -05:00
|
|
|
|
|
|
|
static QString relocateFile(const QString& fileName, const QString& newProjectPath, const QString& oldProjectPath, bool* foundFile, std::vector<QString>* searchedPaths);
|
2017-01-05 00:53:14 -06:00
|
|
|
|
|
|
|
static void wellPathOptionItems(QList<caf::PdmOptionItemInfo>* options);
|
|
|
|
static void caseOptionItems(QList<caf::PdmOptionItemInfo>* options);
|
2017-08-24 23:51:56 -05:00
|
|
|
|
|
|
|
static QString createTimeFormatStringFromDates(const std::vector<QDateTime>& dates);
|
2017-10-03 04:39:07 -05:00
|
|
|
|
|
|
|
static QString dateFormatString();
|
2013-10-24 02:50:16 -05:00
|
|
|
};
|