258 tb.setEnabled(True) |
258 tb.setEnabled(True) |
259 |
259 |
260 @classmethod |
260 @classmethod |
261 def getPreferences(cls, key): |
261 def getPreferences(cls, key): |
262 """ |
262 """ |
263 Public method to retrieve the various settings. |
263 Class method to retrieve the various settings. |
264 |
264 |
265 @param key the key of the value to get |
265 @param key the key of the value to get |
266 @return the requested setting |
266 @return the requested setting |
267 """ |
267 """ |
268 if key in ["StopLogOnCopy", "PullUpdate", "PreferUnbundle", |
268 if key in ["StopLogOnCopy", "PullUpdate", "PreferUnbundle", |
297 "Mercurial/" + key, cls.MercurialDefaults[key]) |
297 "Mercurial/" + key, cls.MercurialDefaults[key]) |
298 |
298 |
299 @classmethod |
299 @classmethod |
300 def setPreferences(cls, key, value): |
300 def setPreferences(cls, key, value): |
301 """ |
301 """ |
302 Public method to store the various settings. |
302 Class method to store the various settings. |
303 |
303 |
304 @param key the key of the setting to be set |
304 @param key the key of the setting to be set |
305 @param value the value to be set |
305 @param value the value to be set |
306 """ |
306 """ |
307 Preferences.Prefs.settings.setValue("Mercurial/" + key, value) |
307 Preferences.Prefs.settings.setValue("Mercurial/" + key, value) |