///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2011- Statoil ASA // Copyright (C) 2013- Ceetron Solutions AS // Copyright (C) 2011-2012 Ceetron AS // // 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "RiaApplication.h" #include "cafAppEnum.h" #include "cafPdmChildField.h" #include "cafPdmField.h" #include "cafPdmObject.h" // Include to make Pdm work for cvf::Color #include "cafPdmFieldCvfColor.h" class RifReaderSettings; class RiaPreferences : public caf::PdmObject { CAF_PDM_HEADER_INIT; public: RiaPreferences(void); virtual ~RiaPreferences(void); QStringList tabNames(); public: // Pdm Fields caf::PdmField > navigationPolicy; caf::PdmField scriptDirectories; caf::PdmField scriptEditorExecutable; caf::PdmField octaveExecutable; caf::PdmField octaveShowHeaderInfoWhenExecutingScripts; caf::PdmField ssihubAddress; caf::PdmField defaultScaleFactorZ; caf::PdmField defaultGridLines; caf::PdmField defaultGridLineColors; caf::PdmField defaultFaultGridLineColors; caf::PdmField defaultViewerBackgroundColor; caf::PdmField defaultWellLabelColor; caf::PdmField showLasCurveWithoutTvdWarning; caf::PdmField fontSizeInScene; caf::PdmField useShaders; caf::PdmField showHud; caf::PdmField appendClassNameToUiText; caf::PdmField lastUsedProjectFileName; caf::PdmField autocomputeDepthRelatedProperties; caf::PdmField loadAndShowSoil; caf::PdmChildField readerSettings; // Summary caf::PdmField autoCreatePlotsOnImport; caf::PdmField defaultCurveFilter; protected: virtual void defineEditorAttribute(const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute); virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering); virtual QList calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly); private: QStringList m_tabNames; };