Renamed ExportDialog to ProgressDialog
This commit is contained in:
@@ -780,7 +780,7 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
JMenuObject o = (JMenuObject)e.getSource();
|
JMenuObject o = (JMenuObject)e.getSource();
|
||||||
Chapter chap = (Chapter)o.getObject();
|
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);
|
ExportThread t = new ExportThread(chap, ed);
|
||||||
Thread nt = new Thread(t);
|
Thread nt = new Thread(t);
|
||||||
@@ -1616,10 +1616,10 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class ExportThread implements Runnable {
|
class ExportThread implements Runnable {
|
||||||
ExportDialog exportDialog;
|
ProgressDialog exportDialog;
|
||||||
Chapter chapter;
|
Chapter chapter;
|
||||||
|
|
||||||
public ExportThread(Chapter c, ExportDialog e) {
|
public ExportThread(Chapter c, ProgressDialog e) {
|
||||||
super();
|
super();
|
||||||
exportDialog = e;
|
exportDialog = e;
|
||||||
chapter = c;
|
chapter = c;
|
||||||
@@ -1644,7 +1644,7 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
|
|
||||||
for (Enumeration o = book.children(); o.hasMoreElements();) {
|
for (Enumeration o = book.children(); o.hasMoreElements();) {
|
||||||
Chapter c = (Chapter)o.nextElement();
|
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);
|
ExportThread t = new ExportThread(c, ed);
|
||||||
Thread nt = new Thread(t);
|
Thread nt = new Thread(t);
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public class Chapter extends DefaultMutableTreeNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void exportChapter(ExportDialog exportDialog) throws
|
public void exportChapter(ProgressDialog exportDialog) throws
|
||||||
FileNotFoundException, IOException, InputFormatException, NotSupportedException,
|
FileNotFoundException, IOException, InputFormatException, NotSupportedException,
|
||||||
EncoderException, UnsupportedTagException, InvalidDataException {
|
EncoderException, UnsupportedTagException, InvalidDataException {
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -8,7 +8,7 @@ import java.awt.event.*;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import it.sauronsoftware.jave.*;
|
import it.sauronsoftware.jave.*;
|
||||||
|
|
||||||
public class ExportDialog extends JDialog implements EncoderProgressListener {
|
public class ProgressDialog extends JDialog implements EncoderProgressListener {
|
||||||
JLabel message;
|
JLabel message;
|
||||||
JLabel icon;
|
JLabel icon;
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ public class ExportDialog extends JDialog implements EncoderProgressListener {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public ExportDialog(String m) {
|
public ProgressDialog(String m) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
|
setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
|
||||||
Reference in New Issue
Block a user