21 bool enableProgressReporting(
bool requestDefault =
false)
const;
22 void setEnableProgressReporting(
bool value);
24 bool enablePerfLog(
bool requestDefault =
false)
const;
25 void setEnablePerfLog(
bool value);
27 qreal transformMaskOffBoundsReadArea()
const;
29 int updatePatchHeight()
const;
30 void setUpdatePatchHeight(
int value);
31 int updatePatchWidth()
const;
32 void setUpdatePatchWidth(
int value);
34 qreal maxCollectAlpha()
const;
35 qreal maxMergeAlpha()
const;
36 qreal maxMergeCollectAlpha()
const;
37 qreal schedulerBalancingRatio()
const;
38 void setSchedulerBalancingRatio(qreal
value);
40 int maxSwapSize(
bool requestDefault =
false)
const;
41 void setMaxSwapSize(
int value);
43 int swapSlabSize()
const;
44 void setSwapSlabSize(
int value);
46 int swapWindowSize()
const;
47 void setSwapWindowSize(
int value);
49 int tilesHardLimit()
const;
50 int tilesSoftLimit()
const;
51 int poolLimit()
const;
53 qreal memoryHardLimitPercent(
bool requestDefault =
false)
const;
54 qreal memorySoftLimitPercent(
bool requestDefault =
false)
const;
55 qreal memoryPoolLimitPercent(
bool requestDefault =
false)
const;
56 void setMemoryHardLimitPercent(qreal
value);
57 void setMemorySoftLimitPercent(qreal
value);
58 void setMemoryPoolLimitPercent(qreal
value);
60 static int totalRAM();
66 QString swapDir(
bool requestDefault =
false);
67 void setSwapDir(
const QString &swapDir);
69 int numberOfOnionSkins()
const;
70 void setNumberOfOnionSkins(
int value);
72 int onionSkinTintFactor()
const;
73 void setOnionSkinTintFactor(
int value);
75 int onionSkinOpacity(
int offset,
bool requestDefault =
false)
const;
76 void setOnionSkinOpacity(
int offset,
int value);
78 bool onionSkinState(
int offset)
const;
79 void setOnionSkinState(
int offset,
bool value);
81 QColor onionSkinTintColorBackward()
const;
82 void setOnionSkinTintColorBackward(
const QColor &
value);
84 QColor onionSkinTintColorForward()
const;
85 void setOnionSkinTintColorForward(
const QColor &
value);
87 bool autoKeyEnabled(
bool requestDefault =
false)
const;
88 void setAutoKeyEnabled(
bool value);
90 bool autoKeyModeDuplicate(
bool requestDefault =
false)
const;
91 void setAutoKeyModeDuplicate(
bool value);
93 bool showAdditionalOnionSkinsSettings(
bool requestDefault =
false)
const;
94 void setShowAdditionalOnionSkinsSettings(
bool value);
96 int defaultFrameColorLabel()
const;
97 void setDefaultFrameColorLabel(
int label);
102 bool useLodForColorizeMask(
bool requestDefault =
false)
const;
103 void setUseLodForColorizeMask(
bool value);
105 int maxNumberOfThreads(
bool defaultValue =
false)
const;
106 void setMaxNumberOfThreads(
int value);
108 int frameRenderingClones(
bool defaultValue =
false)
const;
109 void setFrameRenderingClones(
int value);
111 int frameRenderingTimeout(
bool defaultValue =
false)
const;
112 void setFrameRenderingTimeout(
int value);
114 int fpsLimit(
bool defaultValue =
false)
const;
115 void setFpsLimit(
int value);
117 bool detectFpsLimit(
bool defaultValue =
false)
const;
118 void setDetectFpsLimit(
bool value);
120 bool useOnDiskAnimationCacheSwapping(
bool defaultValue =
false)
const;
121 void setUseOnDiskAnimationCacheSwapping(
bool value);
123 QString animationCacheDir(
bool defaultValue =
false)
const;
124 void setAnimationCacheDir(
const QString &
value);
126 bool useAnimationCacheFrameSizeLimit(
bool defaultValue =
false)
const;
127 void setUseAnimationCacheFrameSizeLimit(
bool value);
129 int animationCacheFrameSizeLimit(
bool defaultValue =
false)
const;
130 void setAnimationCacheFrameSizeLimit(
int value);
132 bool useAnimationCacheRegionOfInterest(
bool defaultValue =
false)
const;
133 void setUseAnimationCacheRegionOfInterest(
bool value);
135 qreal animationCacheRegionOfInterestMargin(
bool defaultValue =
false)
const;
136 void setAnimationCacheRegionOfInterestMargin(qreal
value);
138 qreal selectionOutlineOpacity(
bool defaultValue =
false)
const;
139 void setSelectionOutlineOpacity(qreal
value);
141 QColor selectionOverlayMaskColor(
bool defaultValue =
false)
const;
142 void setSelectionOverlayMaskColor(
const QColor &color);
144 int maxBrushSize(
bool defaultValue =
false)
const;
145 void setMaxBrushSize(
int value);
147 int maxMaskingBrushSize()
const;
149 bool renameMergedLayers(
bool defaultValue =
false)
const;
150 void setRenameMergedLayers(
bool value);
151 bool renameDuplicatedLayers(
bool defaultValue =
false)
const;
152 void setRenameDuplicatedLayers(
bool value);
156 m_config.writeEntry(name,
value);
161 m_config.writeEntry(name,
value);
165 T
readEntry(
const QString& name,
const T& defaultValue=T()) {
166 return m_config.readEntry(name, defaultValue);
171 return m_config.readEntry(name, defaultValue);
178 QString exportConfigurationXML(
const QString &exportConfigId,
bool defaultValue =
false)
const;
179 bool hasExportConfiguration(
const QString& exportConfigID);
183 static void resetConfig();
187 QString safelyGetWritableTempLocation(
const QString &suffix,
const QString &configKey,
bool requestDefault)
const;