Пример #1
0
    def __init__(self, bytes_per_row=16):
        ByteGridTable.__init__(self)

        self._debug = False
        self.bytes_per_row = bytes_per_row
        self._cols = self.bytes_per_row
        self._rows = 0
        self.editor = None
        self.start_offset = 0
Пример #2
0
    def __init__(self, linked_base, bytes_per_row=16):
        ByteGridTable.__init__(self, linked_base)

        self._debug = False
        self.bytes_per_row = bytes_per_row
        self._cols = self.bytes_per_row
        self._rows = 0
        self.start_offset = 0
        self.recalc_segment_info()
Пример #3
0
 def __init__(self, linked_base):
     ByteGridTable.__init__(self, linked_base)
     self.lines = None
     self._rows = 0
     self.index_to_row = []
     self.start_addr = 0
     self.end_addr = 0
     self.chunk_size = 256
     self.set_display_format(linked_base)
Пример #4
0
 def __init__(self):
     ByteGridTable.__init__(self)
     self.lines = None
     self._rows = 0
     self.index_to_row = []
     self.start_addr = 0
     self.end_addr = 0
     self.chunk_size = 256
     self.disassembler = None
     self.trace_info = TraceInfo()
Пример #5
0
 def set_grid_cell_attr(self, grid, col, attr):
     ByteGridTable.set_grid_cell_attr(self, grid, col, attr)
     if col > 0:
         attr.SetReadOnly(False)
     else:
         attr.SetReadOnly(True)
Пример #6
0
 def set_display_format(self, linked_base):
     ByteGridTable.set_display_format(self, linked_base)
     prefs = linked_base.task.preferences
     for i, w in enumerate(prefs.disassembly_column_widths):
         if w > 0:
             self.__class__.column_pixel_sizes[i] = w