Method: Parallel_import#select_import_file

Defined in:
lib/class/PARALLEL/Parallel_import.rb

#select_import_fileObject



26
27
28
29
30
31
32
33
34
35
36
# File 'lib/class/PARALLEL/Parallel_import.rb', line 26

def select_import_file
  @filepath = Qt::FileDialog.getOpenFileName(self, tr('Select a file'), '/', tr('Bin file (*.bin)'))
  unless @filepath.nil?
    $file = File.open("#{@filepath}", 'w')
    @parallel_import_gui.btn_import.setEnabled(true)
  end
rescue Exception => msg
    logger = Logger.new($logFilePath)
    logger.error msg
    Qt::MessageBox.new(Qt::MessageBox::Critical, 'Critical error', 'Error occured while openning the export file. Consult the logs for more details').exec
end