def setup_hex_view(parent, dispatcher):
    print "[+] Setup hex view"
    hex_view = get_child_control(parent, 'hex_view')
    hex_view.ascii_view = get_child_control(parent, 'ascii_view')
    hex_view.addr_view = get_child_control(parent, 'addr_view')
    dispatcher.add_sender(hex_view)

    imp = hex_view_imp_t()
    dispatcher.add(imp)

    fwd = hex_view_fwd_t(imp)
    dispatcher.add_receiver(fwd)

    setup_hex_view_scroll(parent, dispatcher)

    return hex_view
Beispiel #2
0
def setup_hex_view(parent, dispatcher):
    print "[+] Setup hex view"
    hex_view = get_child_control(parent, 'hex_view')
    hex_view.ascii_view = get_child_control(parent, 'ascii_view')
    hex_view.addr_view = get_child_control(parent, 'addr_view')
    dispatcher.add_sender(hex_view)

    imp = hex_view_imp_t()
    dispatcher.add(imp)

    fwd = hex_view_fwd_t(imp)
    dispatcher.add_receiver(fwd)

    setup_hex_view_scroll(parent, dispatcher)

    return hex_view
def setup_hex_view_scroll(parent, dispatcher):
    scroll = get_child_control(parent, "hex_view_scroll")
    dispatcher.add_sender(scroll)

    imp = hex_view_scroll_imp_t()
    dispatcher.add(imp)

    fwd = hex_view_scroll_fwd_t(imp)
    dispatcher.add_receiver(fwd)

    scroll.ready()

    return scroll
def setup_hex_view_scroll(parent, dispatcher):
    scroll = get_child_control(parent, 'hex_view_scroll')
    dispatcher.add_sender(scroll)

    imp = hex_view_scroll_imp_t()
    dispatcher.add(imp)

    fwd = hex_view_scroll_fwd_t(imp)
    dispatcher.add_receiver(fwd)

    scroll.ready()

    return scroll
Beispiel #5
0
def setup_field_view(parent, dispatcher):
    print "[+] Setup field view"
    field_view = get_child_control(parent, 'field_view')
    dispatcher.add_sender(field_view)

    field_view_imp = field_view_imp_t()
    dispatcher.add(field_view_imp)

    field_view_fwd = field_view_fwd_t(field_view_imp)
    dispatcher.add(field_view_fwd)

    setup_field_menu(field_view, dispatcher)

    return field_view
def setup_field_view(parent, dispatcher):
    print "[+] Setup field view"
    field_view = get_child_control(parent, 'field_view')
    dispatcher.add_sender(field_view)

    field_view_imp = field_view_imp_t()
    dispatcher.add(field_view_imp)

    field_view_fwd = field_view_fwd_t(field_view_imp)
    dispatcher.add(field_view_fwd)

    setup_field_menu(field_view, dispatcher)

    return field_view