2012-05-18 02:45:23 -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
|
2012-05-18 02:45:23 -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
|
|
|
|
|
2013-03-22 10:24:42 -05:00
|
|
|
#include "RiaApplication.h"
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2013-05-06 03:55:00 -05:00
|
|
|
#include "cafAppEnum.h"
|
2015-07-31 11:58:23 -05:00
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
2013-05-06 03:55:00 -05:00
|
|
|
|
2014-07-24 03:11:43 -05:00
|
|
|
// Include to make Pdm work for cvf::Color
|
|
|
|
#include "cafPdmFieldCvfColor.h"
|
|
|
|
|
2014-07-30 02:13:47 -05:00
|
|
|
class RifReaderSettings;
|
2013-05-06 03:55:00 -05:00
|
|
|
|
2013-03-22 09:50:44 -05:00
|
|
|
class RiaPreferences : public caf::PdmObject
|
2012-05-18 02:45:23 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2013-03-22 09:50:44 -05:00
|
|
|
RiaPreferences(void);
|
|
|
|
virtual ~RiaPreferences(void);
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2016-08-09 06:09:08 -05:00
|
|
|
QStringList tabNames();
|
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
public: // Pdm Fields
|
2013-03-22 09:50:44 -05:00
|
|
|
caf::PdmField<caf::AppEnum< RiaApplication::RINavigationPolicy > > navigationPolicy;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2013-04-24 00:35:31 -05:00
|
|
|
caf::PdmField<QString> scriptDirectories;
|
2012-05-18 02:45:23 -05:00
|
|
|
caf::PdmField<QString> scriptEditorExecutable;
|
2014-07-22 05:10:51 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
caf::PdmField<QString> octaveExecutable;
|
2014-07-22 05:10:51 -05:00
|
|
|
caf::PdmField<bool> octaveShowHeaderInfoWhenExecutingScripts;
|
|
|
|
|
2013-05-29 05:59:08 -05:00
|
|
|
caf::PdmField<QString> ssihubAddress;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
2012-10-12 08:05:42 -05:00
|
|
|
caf::PdmField<int> defaultScaleFactorZ;
|
|
|
|
caf::PdmField<bool> defaultGridLines;
|
2013-04-12 06:15:41 -05:00
|
|
|
caf::PdmField<cvf::Color3f> defaultGridLineColors;
|
|
|
|
caf::PdmField<cvf::Color3f> defaultFaultGridLineColors;
|
2013-04-15 06:13:41 -05:00
|
|
|
caf::PdmField<cvf::Color3f> defaultViewerBackgroundColor;
|
2013-10-01 04:13:23 -05:00
|
|
|
caf::PdmField<cvf::Color3f> defaultWellLabelColor;
|
2015-10-30 05:42:11 -05:00
|
|
|
caf::PdmField<bool> showLasCurveWithoutTvdWarning;
|
2016-08-09 06:09:08 -05:00
|
|
|
caf::PdmField<QString> fontSizeInScene;
|
2012-10-12 08:05:42 -05:00
|
|
|
|
2012-05-18 02:45:23 -05:00
|
|
|
caf::PdmField<bool> useShaders;
|
|
|
|
caf::PdmField<bool> showHud;
|
2015-09-18 12:24:02 -05:00
|
|
|
caf::PdmField<bool> appendClassNameToUiText;
|
2012-05-18 02:45:23 -05:00
|
|
|
|
|
|
|
caf::PdmField<QString> lastUsedProjectFileName;
|
2012-06-26 09:10:41 -05:00
|
|
|
|
2012-10-24 03:52:44 -05:00
|
|
|
caf::PdmField<bool> autocomputeDepthRelatedProperties;
|
2014-10-24 04:38:47 -05:00
|
|
|
caf::PdmField<bool> loadAndShowSoil;
|
2012-08-31 12:12:47 -05:00
|
|
|
|
2015-07-31 11:58:23 -05:00
|
|
|
caf::PdmChildField<RifReaderSettings*> readerSettings;
|
2012-08-31 12:12:47 -05:00
|
|
|
|
2016-10-24 06:54:35 -05:00
|
|
|
// Summary
|
|
|
|
|
|
|
|
caf::PdmField<bool> autoCreatePlotsOnImport;
|
|
|
|
caf::PdmField<QString> defaultCurveFilter;
|
|
|
|
|
|
|
|
|
2012-06-26 09:10:41 -05:00
|
|
|
protected:
|
2016-08-09 06:09:08 -05:00
|
|
|
virtual void defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute);
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly);
|
2012-10-12 08:05:42 -05:00
|
|
|
|
2016-08-09 06:09:08 -05:00
|
|
|
private:
|
|
|
|
QStringList m_tabNames;
|
2012-05-18 02:45:23 -05:00
|
|
|
};
|