18 #ifndef PREFERENCEMANAGER_H
19 #define PREFERENCEMANAGER_H
22 #include "basemanager.h"
23 #include "pencildef.h"
55 ONION_PREV_FRAMES_NUM,
56 ONION_NEXT_FRAMES_NUM,
74 virtual bool init()
override;
79 void set(SETTING option, QString value );
80 void set(SETTING option,
int value );
81 void set(SETTING option,
bool value );
83 void turnOn(SETTING option );
84 void turnOff(SETTING option );
85 bool isOn(SETTING option );
87 void setOnionPrevFramesCount(
int n );
88 int getOnionPrevFramesCount();
89 void setOnionNextFramesCount(
int n );
90 int getOnionNextFramesCount();
92 QString getString(SETTING option);
93 int getInt(SETTING option);
96 void optionChanged( SETTING e );
100 QHash< int, QString > mStringSet;
101 QHash< int, int > mIntegerSet;
102 QHash< int, bool > mBooleanSet;
105 #endif // PREFERENCEMANAGER_H