You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
840 B
34 lines
840 B
#ifndef INCLUDE_SETTINGS_H |
|
#define INCLUDE_SETTINGS_H |
|
|
|
#include <QString> |
|
#include "preferences.h" |
|
#include "preset.h" |
|
|
|
class MainSettings { |
|
public: |
|
MainSettings(); |
|
~MainSettings(); |
|
|
|
void load(); |
|
void save() const; |
|
|
|
void resetToDefaults(); |
|
|
|
Preset* newPreset(const QString& group, const QString& description); |
|
void deletePreset(const Preset* preset); |
|
int getPresetCount() const { return m_presets.count(); } |
|
const Preset* getPreset(int index) const { return m_presets[index]; } |
|
|
|
Preset* getWorkingPreset() { return &m_workingPreset; } |
|
int getSourceIndex() const { return m_preferences.getSourceIndex(); } |
|
void setSourceIndex(int value) { m_preferences.setSourceIndex(value); } |
|
|
|
protected: |
|
Preferences m_preferences; |
|
Preset m_workingPreset; |
|
typedef QList<Preset*> Presets; |
|
Presets m_presets; |
|
}; |
|
|
|
#endif // INCLUDE_SETTINGS_H
|
|
|