#3384 Add RiaApplication::enableDebugFeatures method that checks environment for RESINSIGHT_DEBUG

* Disable System tab of preferences if this is not enabled.
This commit is contained in:
Gaute Lindkvist
2018-09-19 14:43:06 +02:00
parent 38d3b666e6
commit e4a5eb2769
4 changed files with 77 additions and 25 deletions

View File

@@ -47,6 +47,12 @@ public:
const RifReaderSettings* readerSettings() const;
// Debug settings
bool appendClassNameToUiText() const;
bool appendFieldKeywordToToolTipText() const;
bool showTestToolbar() const;
bool includeFractureDebugInfoFile() const;
public: // Pdm Fields
caf::PdmField<caf::AppEnum< RiaApplication::RINavigationPolicy > > navigationPolicy;
@@ -69,11 +75,7 @@ public: // Pdm Fields
caf::PdmField<bool> showLegendBackground;
caf::PdmField<bool> useShaders;
caf::PdmField<bool> showHud;
caf::PdmField<bool> appendClassNameToUiText;
caf::PdmField<bool> appendFieldKeywordToToolTipText;
caf::PdmField<bool> showTestToolbar;
caf::PdmField<bool> includeFractureDebugInfoFile;
caf::PdmField<bool> showHud;
caf::PdmField<QString> lastUsedProjectFileName;
@@ -91,6 +93,9 @@ protected:
private:
caf::PdmChildField<RifReaderSettings*> m_readerSettings;
caf::PdmField<bool> m_appendClassNameToUiText;
caf::PdmField<bool> m_appendFieldKeywordToToolTipText;
caf::PdmField<bool> m_showTestToolbar;
caf::PdmField<bool> m_includeFractureDebugInfoFile;
QStringList m_tabNames;
};