#2609 RimFileWellPath in separate file

This commit is contained in:
Jacob Støren
2018-06-25 13:47:18 +02:00
parent ce41eef365
commit 2ea84bdb63
7 changed files with 307 additions and 276 deletions

View File

@@ -171,42 +171,3 @@ private:
caf::PdmChildField<RimWellLogFile*> m_wellLogFile_OBSOLETE;
};
class RimFileWellPath : public RimWellPath
{
CAF_PDM_HEADER_INIT;
public:
RimFileWellPath();
~RimFileWellPath();
QString filepath() const;
void setFilepath(const QString& path);
bool readWellPathFile(QString * errorMessage, RifWellPathImporter* wellPathImporter);
int wellPathIndexInFile() const; // -1 means none.
void setWellPathIndexInFile(int index);
void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath) override;
private:
QString surveyType() { return m_surveyType; }
void setSurveyType(QString surveyType);
bool isStoredInCache();
QString getCacheFileName();
QString getCacheDirectoryPath();
virtual void setupBeforeSave() override;
caf::PdmField<QString> m_filepath;
caf::PdmField<int> m_wellPathIndexInFile; // -1 means none.
caf::PdmField<QString> id;
caf::PdmField<QString> sourceSystem;
caf::PdmField<QString> utmZone;
caf::PdmField<QString> updateDate;
caf::PdmField<QString> updateUser;
caf::PdmField<QString> m_surveyType;
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
};