class Metasm::Gui::NoDasmWidget

this widget is loaded in an empty DasmWindow to handle shortcuts (open file, etc)

Public Instance Methods

dragdropfile(f) click to toggle source
# File metasm/gui/dasm_main.rb, line 878
def dragdropfile(f)
        case f
        when /\.(c|h|cpp)$/; messagebox('load a binary first')
        else @window.loadfile(f)      # TODO prompt to start debugger instead of dasm
        end
end
initialize_widget(window) click to toggle source
# File metasm/gui/dasm_main.rb, line 857
def initialize_widget(window)
        @window = window
end
keypress(key) click to toggle source
# File metasm/gui/dasm_main.rb, line 864
def keypress(key)
        case key
        when ?v; $VERBOSE = !$VERBOSE
        when ?d; $DEBUG = !$DEBUG
        end
end
keypress_ctrl(key) click to toggle source
# File metasm/gui/dasm_main.rb, line 871
def keypress_ctrl(key)
        case key
        when ?o; @window.promptopen
        when ?r; @window.promptruby
        end
end
paint() click to toggle source
# File metasm/gui/dasm_main.rb, line 861
def paint
end