2018-09-18 11:53:19 +02:00
|
|
|
|
#ifndef USERCONFIGURATION_H
|
|
|
|
|
|
#define USERCONFIGURATION_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QSettings>
|
2018-09-18 20:24:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
2018-09-18 11:53:19 +02:00
|
|
|
|
/** Class for most of the program configuration
|
|
|
|
|
|
*
|
|
|
|
|
|
* The settings represented by this class are stored in a settings file
|
|
|
|
|
|
* that is user specific. Depending on OS setup it might be shared with
|
|
|
|
|
|
* other machines in the network because for instance on windows it is
|
|
|
|
|
|
* part of the roaming profile.
|
|
|
|
|
|
*/
|
|
|
|
|
|
class UserConfiguration
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
static UserConfiguration* instance();
|
|
|
|
|
|
|
|
|
|
|
|
UserConfiguration();
|
|
|
|
|
|
|
|
|
|
|
|
QFont codeFont() const;
|
2018-09-18 20:24:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
2018-09-18 11:53:19 +02:00
|
|
|
|
private:
|
|
|
|
|
|
QSettings m_settings;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // USERCONFIGURATION_H
|