git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug in jpeg2000 decoding
[swftools.git]
/
wx
/
viewers
/
raw.py
diff --git
a/wx/viewers/raw.py
b/wx/viewers/raw.py
index
a7d71ce
..
7e92457
100644
(file)
--- a/
wx/viewers/raw.py
+++ b/
wx/viewers/raw.py
@@
-24,11
+24,12
@@
from gui.fields import Choose
from gui.fields import Choose
-order = 0
+order = 4
type = "core"
name = u"No Viewer"
desc = (u'The SWF will be in "raw" format, with each page a seperate frame. '
type = "core"
name = u"No Viewer"
desc = (u'The SWF will be in "raw" format, with each page a seperate frame. '
- u"Use this if you want to add a viewer yourself afterwards.")
+ u"Use this if you want to add a viewer yourself afterwards or "
+ u"if you will use the `One Page Per File`.")
swf_options = [
Choose("flashversion", u"Flash version:",
swf_options = [
Choose("flashversion", u"Flash version:",
@@
-43,6
+44,7
@@
viewer_options = []
from gui.plugin import Plugin
class Raw(Plugin):
from gui.plugin import Plugin
class Raw(Plugin):
+ one_page_per_file = True
def __init__(self, swf, filename):
for opt in swf_options:
swf.setparameter(opt.name, str(opt.value))
def __init__(self, swf, filename):
for opt in swf_options:
swf.setparameter(opt.name, str(opt.value))
@@
-50,7
+52,7
@@
class Raw(Plugin):
def init(swf, filename):
return Raw(swf, filename)
def init(swf, filename):
return Raw(swf, filename)
-from wx.lib.embeddedimage import PyEmbeddedImage
+from lib.embeddedimage import PyEmbeddedImage
preview = PyEmbeddedImage(
"iVBORw0KGgoAAAANSUhEUgAAAGYAAABmCAIAAAC2vXM1AAAAAXNSR0IArs4c6QAADGNJREFU"
"eNrtXX1MFEcU36/74LwDvByNnIqaFL9ORU2MEUNtE6AVIxWjFuN30ESNTWtiIhpBTVDSNk2j"
preview = PyEmbeddedImage(
"iVBORw0KGgoAAAANSUhEUgAAAGYAAABmCAIAAAC2vXM1AAAAAXNSR0IArs4c6QAADGNJREFU"
"eNrtXX1MFEcU36/74LwDvByNnIqaFL9ORU2MEUNtE6AVIxWjFuN30ESNTWtiIhpBTVDSNk2j"