From 3fc50351c09ad22c57a753f781774c34174ded91 Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Thu, 6 Jul 2006 19:41:12 +0000 Subject: removed obsolete GUI git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@66 07627401-56e2-0310-80f4-f8cd0041bdcd --- .../WLC2OSIS/WLC2OSIS/GUI/FileChoices.java | 71 ---------------------- .../hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java | 42 ------------- .../hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html | 9 --- 3 files changed, 122 deletions(-) delete mode 100644 modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java delete mode 100644 modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java delete mode 100644 modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html (limited to 'modules/hebrew-wlc') diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java deleted file mode 100644 index f84a505..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/FileChoices.java +++ /dev/null @@ -1,71 +0,0 @@ -package WLC2OSIS.GUI ; - -import WLC2OSIS.* ; -import Utilities.* ; - -import java.awt.* ; -import java.util.* ; -import java.io.* ; -import java.awt.event.* ; -import javax.swing.*; -import javax.swing.event.* ; -import javax.swing.border.*; -//============================================================================== -/** - * Gets the input and output files.

- */ -//============================================================================== - -public class FileChoices { - -WLC2OSIS A ; - -public FileChoices(WLC2OSIS A){ - this.A = A ; - } -public String getInputFilename(String DefaultInputFilename){ - FileChooser inchooser = new FileChooser() ; - inchooser.setSelectedFile(new File(DefaultInputFilename) ) ; - inchooser.setDialogTitle("Give the input file") ; - inchooser.setApproveButtonText("Set") ; - inchooser.setSize( new Dimension( 500, 400 ) ) ; - inchooser.setLocation(new Point(200, 200) ); - inchooser.revalidate() ; - int returnValue = inchooser.showOpenDialog(A.OverallContainer) ; - if(returnValue==JFileChooser.APPROVE_OPTION){ - String InputFilename = inchooser.getSelectedFile().getPath() ; - return InputFilename ; - } - else{ - System.out.println("WLC2OSIS:FileChoices: Didn't choose the input file.") ; - System.exit(0) ; - return null ;} - } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -public String getOutputDirectory(String DefaultOutputDirectory){ - FileChooser outchooser = new FileChooser() ; - outchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY) ; - File InitialDirectory = new File(DefaultOutputDirectory ) ; - outchooser.setSelectedFile(InitialDirectory) ; - outchooser.setDialogTitle("Set the output directory") ; - outchooser.setApproveButtonText("Set") ; - outchooser.setSize( new Dimension( 500, 400 ) ) ; - outchooser.setLocation(new Point(200, 200) ); - outchooser.revalidate() ; - int returnValue = outchooser.showOpenDialog(A.OverallContainer) ; - if(returnValue==JFileChooser.APPROVE_OPTION){ - String OutputDirectory = outchooser.getSelectedFile().getPath() ; - return OutputDirectory ; - } - else{ - System.out.println("WLC2OSIS: Didn't choose the output directory.") ; - System.exit(0) ; - return null ; - } - } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -} -//============================================================================== -//============================================================================== diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java deleted file mode 100644 index 93a7340..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/Messages.java +++ /dev/null @@ -1,42 +0,0 @@ -package WLC2OSIS.GUI ; - -import WLC2OSIS.* ; -import Utilities.* ; - -import java.awt.* ; -import java.util.* ; -import java.io.* ; -import java.awt.event.* ; -import javax.swing.*; -import javax.swing.event.* ; -import javax.swing.border.*; -//============================================================================== -/** - * Outputs messages to operator.

- */ -//============================================================================== - -public class Messages { - -WLC2OSIS A ; - -public Messages(WLC2OSIS A){ - this.A = A ; - } -public void initialMessage(){ - String IntroMessage = "WLC2OSIS: Conversion of WHI text files to OSIS.\n\n" - + "Important messages will be written to command window.\n" - + "Please be ready to write them down.\n\n" ; - JOptionPane.showMessageDialog(A.OverallContainer, IntroMessage) ; - } -public void doneMessage(){ - String DoneMessage = "The output file appears to have been written\n" - + "normally. Please examine the Java Console for possible errors.\n" - + "If any errors have occured please make a careful note of them.\n\n"; - JOptionPane.showMessageDialog(A.OverallContainer, DoneMessage) ; - } -//------------------------------------------------------------------------------ -//------------------------------------------------------------------------------ -} -//============================================================================== -//============================================================================== diff --git a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html b/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html deleted file mode 100644 index 317474e..0000000 --- a/modules/hebrew-wlc/WLC2OSIS/WLC2OSIS/GUI/package.html +++ /dev/null @@ -1,9 +0,0 @@ - - -Graphical user interface (GUI). -

-

(BHS2XML/GUI/package.html) -

-Crude graphical interfaces. - - -- cgit