#798 ffdec doesn't show what it's exporting

This commit is contained in:
honfika@gmail.com
2015-02-11 22:25:53 +01:00
parent f2922421cb
commit 914bb09355
17 changed files with 956 additions and 648 deletions

View File

@@ -358,10 +358,30 @@ public class Main {
swf.swfList = result;
swf.addEventListener(new EventListener() {
@Override
public void handleExportingEvent(String type, int index, int count, Object data) {
// todo honfika: localize
String text = "Exporting ";
if (type != null && type.length() > 0) {
text += type + " ";
}
startWork(text + index + "/" + count + " " + data);
}
@Override
public void handleExportedEvent(String type, int index, int count, Object data) {
// todo honfika: localize
String text = "Exported ";
if (type != null && type.length() > 0) {
text += type + " ";
}
startWork(text + index + "/" + count + " " + data);
}
@Override
public void handleEvent(String event, Object data) {
if (event.equals("exporting")) {
startWork((String) data);
if (event.equals("exporting") || event.equals("exported")) {
throw new Error("Event is not supported by this handler.");
}
if (event.equals("getVariables")) {
startWork(AppStrings.translate("work.gettingvariables") + "..." + (String) data);