Renamed ExportDialog to ProgressDialog

This commit is contained in:
2018-10-01 20:05:24 +01:00
parent cc48d49b5c
commit b362217d75
3 changed files with 7 additions and 7 deletions
@@ -780,7 +780,7 @@ public class AudiobookRecorder extends JFrame {
JMenuObject o = (JMenuObject)e.getSource();
Chapter chap = (Chapter)o.getObject();
ExportDialog ed = new ExportDialog("Exporting " + chap.getName());
ProgressDialog ed = new ProgressDialog("Exporting " + chap.getName());
ExportThread t = new ExportThread(chap, ed);
Thread nt = new Thread(t);
@@ -1616,10 +1616,10 @@ public class AudiobookRecorder extends JFrame {
}
class ExportThread implements Runnable {
ExportDialog exportDialog;
ProgressDialog exportDialog;
Chapter chapter;
public ExportThread(Chapter c, ExportDialog e) {
public ExportThread(Chapter c, ProgressDialog e) {
super();
exportDialog = e;
chapter = c;
@@ -1644,7 +1644,7 @@ public class AudiobookRecorder extends JFrame {
for (Enumeration o = book.children(); o.hasMoreElements();) {
Chapter c = (Chapter)o.nextElement();
ExportDialog ed = new ExportDialog("Exporting " + c.getName());
ProgressDialog ed = new ProgressDialog("Exporting " + c.getName());
ExportThread t = new ExportThread(c, ed);
Thread nt = new Thread(t);
@@ -81,7 +81,7 @@ public class Chapter extends DefaultMutableTreeNode {
}
@SuppressWarnings("unchecked")
public void exportChapter(ExportDialog exportDialog) throws
public void exportChapter(ProgressDialog exportDialog) throws
FileNotFoundException, IOException, InputFormatException, NotSupportedException,
EncoderException, UnsupportedTagException, InvalidDataException {
@@ -8,7 +8,7 @@ import java.awt.event.*;
import java.util.*;
import it.sauronsoftware.jave.*;
public class ExportDialog extends JDialog implements EncoderProgressListener {
public class ProgressDialog extends JDialog implements EncoderProgressListener {
JLabel message;
JLabel icon;
@@ -18,7 +18,7 @@ public class ExportDialog extends JDialog implements EncoderProgressListener {
public ExportDialog(String m) {
public ProgressDialog(String m) {
super();
setModalityType(Dialog.ModalityType.APPLICATION_MODAL);