コード例 #1
0
ファイル: GeneratorTableModel.py プロジェクト: yarda/urh
    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
ファイル: ProtocolTableModel.py プロジェクト: rsumner31/urh12
    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)