예제 #1
0
    def delete_range(self, msg_start: int, msg_end: int, index_start: int, index_end: int):
        if msg_start > msg_end:
            msg_start, msg_end = msg_end, msg_start
        if index_start > index_end:
            index_start, index_end = index_end, index_start

        remove_action = DeleteBitsAndPauses(self.protocol, msg_start, msg_end, index_start,
                                            index_end, self.proto_view, False)
        ########## Delete according pauses
        self.undo_stack.push(remove_action)
예제 #2
0
    def delete_range(self, msg_start: int, msg_end: int, index_start: int,
                     index_end: int):
        if msg_start > msg_end:
            msg_start, msg_end = msg_end, msg_start
        if index_start > index_end:
            index_start, index_end = index_end, index_start

        remove_action = DeleteBitsAndPauses(self.protocol, msg_start, msg_end,
                                            index_start, index_end,
                                            self.proto_view, False)
        ########## Zugehörige Pausen löschen
        self.undo_stack.push(remove_action)
예제 #3
0
    def delete_range(self, min_row: int, max_row: int, start: int, end: int):
        if not self.is_writeable:
            return

        del_action = DeleteBitsAndPauses(
            proto_analyzer=self.protocol,
            start_message=min_row,
            end_message=max_row,
            start=start,
            end=end,
            view=self.proto_view,
            decoded=True,
            subprotos=self.controller.protocol_list)
        self.undo_stack.push(del_action)
예제 #4
0
    def delete_range(self, min_row: int, max_row: int, start: int, end: int):
        if not self.is_writeable:
            return

        del_action = DeleteBitsAndPauses(
            self.protocol,
            min_row,
            max_row,
            start,
            end,
            self.proto_view,
            True,
            self.controller.get_block_numbers_for_groups(),
            subprotos=self.controller.protocol_list)
        self.undo_stack.push(del_action)