mirror of
https://github.com/robmcmullen/atrcopy.git
synced 2025-02-06 02:29:50 +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):
|
||||
name = "Atari 8-bit Executable"
|
||||
extensions = [".xex"]
|
||||
export_data_name = "Atari 8-bit Executable"
|
||||
export_extensions = [".xex"]
|
||||
|
||||
|
||||
class XexSegment(ObjSegment):
|
||||
|
@ -11,22 +11,13 @@ selected_bit_mask = 0x80
|
||||
|
||||
|
||||
class SegmentSaver(object):
|
||||
name = "Raw Data"
|
||||
extensions = [".dat"]
|
||||
export_data_name = "Raw Data"
|
||||
export_extensions = [".dat"]
|
||||
|
||||
@classmethod
|
||||
def encode_data(cls, segment):
|
||||
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):
|
||||
"""Wrapper for numpy data so that manipulations can use normal numpy syntax
|
||||
|
Loading…
x
Reference in New Issue
Block a user