Fraxinus  16.5.0-fx-rc4
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::Settings Class Reference

Customized interface for setting values in QSettings. More...

#include <cxSettings.h>

Inheritance diagram for cx::Settings:

Signals

void valueChangedFor (QString key)
 

Public Member Functions

void setValueIfNotDefault (const QString &key, const QVariant &value, const QVariant &defaultValue)
 
void setValue (const QString &key, const QVariant &value)
 
QVariant value (const QString &key, const QVariant &defaultValue=QVariant()) const
 
bool contains (const QString &key) const
 
QString fileName () const
 
void sync ()
 
void resetFile (QString filename)
 internal use only: reset internal settings file. More...
 
 Settings ()
 
virtual ~Settings ()
 
template<class T >
void fillDefault (QString name, T value)
 

Detailed Description

Customized interface for setting values in QSettings.

Date
Apr 6, 2011
Author
Janne Beate Bakeng, SINTEF

Definition at line 58 of file cxSettings.h.

Constructor & Destructor Documentation

cx::Settings::Settings ( )

Definition at line 47 of file cxSettings.cpp.

cx::Settings::~Settings ( )
virtual

Definition at line 51 of file cxSettings.cpp.

Member Function Documentation

bool cx::Settings::contains ( const QString &  key) const

Definition at line 92 of file cxSettings.cpp.

QString cx::Settings::fileName ( ) const

Definition at line 97 of file cxSettings.cpp.

template<class T >
void cx::Settings::fillDefault ( QString  name,
value 
)
inline

Initialize a setting if undefined.

Definition at line 81 of file cxSettings.h.

void cx::Settings::resetFile ( QString  filename)

internal use only: reset internal settings file.

Definition at line 55 of file cxSettings.cpp.

void cx::Settings::setValue ( const QString &  key,
const QVariant &  value 
)

Definition at line 79 of file cxSettings.cpp.

void cx::Settings::setValueIfNotDefault ( const QString &  key,
const QVariant &  value,
const QVariant &  defaultValue 
)

Definition at line 72 of file cxSettings.cpp.

void cx::Settings::sync ( )

Definition at line 102 of file cxSettings.cpp.

QVariant cx::Settings::value ( const QString &  key,
const QVariant &  defaultValue = QVariant() 
) const

Definition at line 87 of file cxSettings.cpp.

void cx::Settings::valueChangedFor ( QString  key)
signal

The documentation for this class was generated from the following files: