mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-10 12:30:35 +00:00
Removed wxpython specific get_file_dialog_wildcard out of atrcopy & added more descriptive class attribute names for segment saver info
This commit is contained in:
parent
74bbc5c67f
commit
6a924a5970
@ -131,8 +131,8 @@ class MydosDirent(AtariDosDirent):
|
|||||||
|
|
||||||
|
|
||||||
class XexSegmentSaver(SegmentSaver):
|
class XexSegmentSaver(SegmentSaver):
|
||||||
name = "Atari 8-bit Executable"
|
export_data_name = "Atari 8-bit Executable"
|
||||||
extensions = [".xex"]
|
export_extensions = [".xex"]
|
||||||
|
|
||||||
|
|
||||||
class XexSegment(ObjSegment):
|
class XexSegment(ObjSegment):
|
||||||
|
@ -11,22 +11,13 @@ selected_bit_mask = 0x80
|
|||||||
|
|
||||||
|
|
||||||
class SegmentSaver(object):
|
class SegmentSaver(object):
|
||||||
name = "Raw Data"
|
export_data_name = "Raw Data"
|
||||||
extensions = [".dat"]
|
export_extensions = [".dat"]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def encode_data(cls, segment):
|
def encode_data(cls, segment):
|
||||||
return segment.tostring()
|
return segment.tostring()
|
||||||
|
|
||||||
@classmethod
|
|
||||||
def get_file_dialog_wildcard(cls):
|
|
||||||
# Using only the first extension
|
|
||||||
wildcards = []
|
|
||||||
if cls.extensions:
|
|
||||||
ext = cls.extensions[0]
|
|
||||||
wildcards.append("%s (*%s)|*%s" % (cls.name, ext, ext))
|
|
||||||
return "|".join(wildcards)
|
|
||||||
|
|
||||||
|
|
||||||
class OrderWrapper(object):
|
class OrderWrapper(object):
|
||||||
"""Wrapper for numpy data so that manipulations can use normal numpy syntax
|
"""Wrapper for numpy data so that manipulations can use normal numpy syntax
|
||||||
|
Loading…
x
Reference in New Issue
Block a user