 updatePlayButtons()
 redrawLoop()
 
-application.saveDialog.show()
+#application.saveDialog.show()

  importData: (data)->
    try
      console.log "importing #{data}"
      @cells = importField parseFieldData data
      console.log "Imported #{@cells.count} cells"
    catch e
      alert "Faield to import data: #{e}"

    visibleCells.put translatedCell, state
  return exportField visibleCells

showExportDialog = (sdata) ->
  E('export').value = sdata
  E('export-dialog').style.display = ''
  E('export').focus()
  E('export').select()
  
doExportVisible = ->
  n = application.getGroup().n
  m = application.getGroup().m
  data = stringifyFieldData encodeVisible()
  showExportDialog "#{n}$#{m}$#{data}"
  
doShowImport = ->
  E('import-dialog').style.display = ''
