summaryrefslogtreecommitdiff
path: root/src/dialogs.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2011-12-04 19:28:54 -0600
committerColin Noga <Tempus@chronometry.ca>2011-12-04 19:28:54 -0600
commit21cf889b5e45a5619a09e46db246abd4abbec3a4 (patch)
tree746370d0878358a948477ff92cc965f441fce5e9 /src/dialogs.py
parent06ac2e91738f2dfc3043bbe23b807a45ea69596a (diff)
downloadkoopatlas-21cf889b5e45a5619a09e46db246abd4abbec3a4.tar.gz
koopatlas-21cf889b5e45a5619a09e46db246abd4abbec3a4.zip
Added animation preset saving/loading, and icons
Diffstat (limited to 'src/dialogs.py')
-rw-r--r--src/dialogs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dialogs.py b/src/dialogs.py
index 0419f4f..54f5de8 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -82,10 +82,11 @@ class KPAnimationPresetChooser(QtGui.QDialog):
self.chooser = QtGui.QListWidget()
settings = KP.app.settings
+ import mapfile
if settings.contains('AnimationPresets'):
- self.presetList = settings.value('AnimationPresets').toPyObject()
- self.presets = settings.value('AnimationPresetData').toPyObject()
+ self.presetList = mapfile.load(str(settings.value('AnimationPresets').toPyObject()))
+ self.presets = mapfile.load(str(settings.value('AnimationPresetData').toPyObject()))
else:
self.presetList = ["Circle", "Wiggle", "Drifting Cloud"]
@@ -100,9 +101,8 @@ class KPAnimationPresetChooser(QtGui.QDialog):
["Loop", "Sinusoidial", 200.0, "Y Position", 10.0, -10.0],
["Reversible Loop", "Linear", 500.0, "Opacity", 80.0, 40.0]] ]
-
- settings.setValue('AnimationPresets', self.presetList)
- settings.setValue('AnimationPresetData', self.presets)
+ settings.setValue('AnimationPresets', mapfile.dump(self.presetList))
+ settings.setValue('AnimationPresetData', mapfile.dump(self.presets))
self.chooser.addItems(self.presetList)