24 s_options.instance->fromPersistentSettings();
57 "Options",
"askForConfirmationBeforeQuitting",
true)
MessageLevelFlags
Message level.
Main application options.
bool useNativeDialogs
Use native load/save dialogs.
ecvOptions()
Default constructor.
static void Set(const ecvOptions &options)
Sets parameters.
void reset()
Resets parameters to default values.
bool normalsDisplayedByDefault
Whether to display the normals by default or not.
bool askForConfirmationBeforeQuitting
Ask for confirmation before quitting.
void fromPersistentSettings()
Loads from persistent DB.
static void ReleaseInstance()
Release unique instance (if any)
void toPersistentSettings() const
Saves to persistent DB.
CVLog::MessageLevelFlags logVerbosityLevel
Log/console verbosity level (reuses CVLog::MessageLevelFlags)
static ecvOptions & InstanceNonConst()
Returns the stored values of each parameter.
static void setValue(const QString §ion, const QString &key, const QVariant &value)
static QVariant getValue(const QString §ion, const QString &key, const QVariant &defaultValue=QVariant())
static ecvSingleton< ecvOptions > s_options
Unique instance of ecvOptions.
Generic singleton encapsulation structure.