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 896 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 875 def initialize_widget(window) @window = window end
keypress(key)
click to toggle source
# File metasm/gui/dasm_main.rb, line 882 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 889 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 879 def paint end