Method: FXMapperWindow#inform7_export_cb

Defined in:
lib/IFMapper/FXMapperWindow.rb

#inform7_export_cb(sender, sel, msg) ⇒ Object

Export current map as an Inform source file



453
454
455
456
457
458
459
460
461
462
463
# File 'lib/IFMapper/FXMapperWindow.rb', line 453

def inform7_export_cb(sender, sel, msg)
  map = current_map
  return unless map

  require 'IFMapper/FXMapFileDialog'
  d = FXMapFileDialog.new(self, MSG_SAVE_MAP_AS_INFORM7,
                          [
                            FMT_INFORM7,
                          ])
  map.export_inform7( d.filename ) if d.filename != ''
end