From eb27f803262b0c67f7b43e5e5e802fc112f1b78e Mon Sep 17 00:00:00 2001 From: Bryan Lunt Date: Mon, 2 Jun 2014 14:52:52 -0700 Subject: [PATCH] Added ability to write out contaminations. --- .../pathology/contact_tracer/gui/CTMainFrame.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/sandiegozoo/pathology/contact_tracer/gui/CTMainFrame.java b/src/main/java/org/sandiegozoo/pathology/contact_tracer/gui/CTMainFrame.java index 8287af9..4951a15 100644 --- a/src/main/java/org/sandiegozoo/pathology/contact_tracer/gui/CTMainFrame.java +++ b/src/main/java/org/sandiegozoo/pathology/contact_tracer/gui/CTMainFrame.java @@ -65,6 +65,7 @@ public void actionPerformed(ActionEvent arg0) { myApp.exposure_output_file = ((FileSelectorPanel)subject.getNamed("output_file")).getSelectedFile(); + myApp.contamination_output_file = ((FileSelectorPanel)subject.getNamed("contamination_output_file")).getSelectedFile(); File timeline_file = ((FileSelectorPanel)subject.getNamed("timeline_file")).getSelectedFile(); if(timeline_file != null){ @@ -105,6 +106,8 @@ public void actionPerformed(ActionEvent arg0) { myApp.exposure_output_file = ((FileSelectorPanel)subject.getNamed("output_file")).getSelectedFile(); + myApp.contamination_output_file = ((FileSelectorPanel)subject.getNamed("contamination_output_file")).getSelectedFile(); + File timeline_file = ((FileSelectorPanel)subject.getNamed("timeline_file")).getSelectedFile(); if(timeline_file != null){ @@ -189,6 +192,11 @@ private void createAdvancedPanel(){ output_file_panel.setMode(FileSelectorPanel.SAVE_FILE); advancedPanel.addNamed("output_file", output_file_panel); + FileSelectorPanel output_contamination_panel = new FileSelectorPanel("Contaminations Output File (will include inputed contaminations.)"); + output_contamination_panel.setMode(FileSelectorPanel.SAVE_FILE); + advancedPanel.addNamed("contamination_output_file",output_contamination_panel); + + advancedPanel.add(new JSeparator(JSeparator.HORIZONTAL)); advancedPanel.add(new JLabel("Inputs:")); @@ -215,11 +223,17 @@ private void createAdvancedPanel(){ private void createBasicPanel(){ basicPanel = new NamedComponentPanel(); basicPanel.setLayout(new BoxLayout(basicPanel, BoxLayout.Y_AXIS)); + basicPanel.add(new JLabel("Outputs:")); FileSelectorPanel output_file_panel = new FileSelectorPanel("Exposures Output File"); output_file_panel.setMode(FileSelectorPanel.SAVE_FILE); basicPanel.addNamed("output_file", output_file_panel); + FileSelectorPanel output_contamination_panel = new FileSelectorPanel("Contaminations Output File (will include inputed contaminations.)"); + output_contamination_panel.setMode(FileSelectorPanel.SAVE_FILE); + basicPanel.addNamed("contamination_output_file",output_contamination_panel); + + basicPanel.add(new JSeparator(JSeparator.HORIZONTAL)); basicPanel.add(new JLabel("Inputs:"));