Updates to FX GUI

This commit is contained in:
Jamie Mac 2022-04-22 11:37:15 +01:00
parent 0578b35408
commit 3090bdab67
3 changed files with 52 additions and 21 deletions

View File

@ -0,0 +1,50 @@
package Acquisition.layoutFX;
import Acquisition.FolderInputSystem;
import javafx.scene.control.Label;
import javafx.scene.control.ProgressBar;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TextArea;
import pamViewFX.fxNodes.PamBorderPane;
/**
* Pane with controls to fix wave file headers.
* @author Jamie Macaulay
*
*/
public class CheckWavHeadersPane extends PamBorderPane {
/**
* The text area.
*/
private TextArea textArea;
/**
* The nma eo fhte label
*/
private Label folderName;
/**
* Progress bar showing progress of file write
*/
private ProgressBar progressBar;
public CheckWavHeadersPane(FolderInputSystem folderInputSystem) {
this.setCenter(new Label("Hello fix wav pane"));
folderName = new Label(" ");
textArea = new TextArea();
textArea.setEditable(false);
ScrollPane scrollPane = new ScrollPane(textArea);
scrollPane.setPrefSize(322, 300);
this.setCenter(scrollPane);
progressBar = new ProgressBar();
this.setBottom(progressBar);
}
}

View File

@ -1,19 +0,0 @@
package Acquisition.layoutFX;
import Acquisition.FolderInputSystem;
import javafx.scene.control.Label;
import pamViewFX.fxNodes.PamBorderPane;
/**
* Pane with controls to fix wave file headers.
* @author Jamie Macaulay
*
*/
public class FixWavPane extends PamBorderPane {
public FixWavPane(FolderInputSystem folderInputSystem) {
this.setCenter(new Label("Hello fix wav pane"));
}
}

View File

@ -143,7 +143,7 @@ public class FolderInputPane extends DAQSettingsPane<FolderInputParameters>{
/**
* Pane to fix the headers of wave files.
*/
private FixWavPane fixWavPane;
private CheckWavHeadersPane fixWavPane;
/**
* Toggle button for merging contigious files
@ -244,7 +244,7 @@ public class FolderInputPane extends DAQSettingsPane<FolderInputParameters>{
fileDateStrip.prefWidthProperty().bind(pamVBox.widthProperty());
fixWavPane = new FixWavPane(folderInputSystem);
fixWavPane = new CheckWavHeadersPane(folderInputSystem);
Label utilsLabel=new Label("Sound file utilities");
PamGuiManagerFX.titleFont2style(utilsLabel);