ScaleForm GFx opening from open/save dialog

GFx classes refactoring
This commit is contained in:
Jindra Petk
2013-09-26 15:42:53 +02:00
parent 823d3ff04c
commit 2e0f3ea3ac
16 changed files with 169 additions and 61 deletions

View File

@@ -67,7 +67,7 @@ import com.jpexs.decompiler.flash.tags.DefineVideoStreamTag;
import com.jpexs.decompiler.flash.tags.DoActionTag;
import com.jpexs.decompiler.flash.tags.EndTag;
import com.jpexs.decompiler.flash.tags.ExportAssetsTag;
import com.jpexs.decompiler.flash.tags.GFxDefineCompactedFont;
import com.jpexs.decompiler.flash.tags.gfx.DefineCompactedFont;
import com.jpexs.decompiler.flash.tags.JPEGTablesTag;
import com.jpexs.decompiler.flash.tags.PlaceObject2Tag;
import com.jpexs.decompiler.flash.tags.SetBackgroundColorTag;
@@ -1764,7 +1764,7 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel
|| (t instanceof DefineFont2Tag)
|| (t instanceof DefineFont3Tag)
|| (t instanceof DefineFont4Tag)
|| (t instanceof GFxDefineCompactedFont)) {
|| (t instanceof DefineCompactedFont)) {
return "font";
}
if ((t instanceof DefineTextTag)
@@ -2949,8 +2949,8 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel
}
private static Tag classicTag(Tag t) {
if (t instanceof GFxDefineCompactedFont) {
return ((GFxDefineCompactedFont) t).toClassicFont();
if (t instanceof DefineCompactedFont) {
return ((DefineCompactedFont) t).toClassicFont();
}
return t;
}