this widget is loaded in an empty DasmWindow to handle shortcuts (open file, etc)
# 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
# File metasm/gui/dasm_main.rb, line 857 def initialize_widget(window) @window = window end
# File metasm/gui/dasm_main.rb, line 864 def keypress(key) case key when v; $VERBOSE = !$VERBOSE when d; $DEBUG = !$DEBUG end end
# File metasm/gui/dasm_main.rb, line 871 def keypress_ctrl(key) case key when o; @window.promptopen when r; @window.promptruby end end
# File metasm/gui/dasm_main.rb, line 861 def paint end