From edc43f0d189f366da21b9dc6a39b243e2ab305ac Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sun, 21 Dec 2014 13:23:34 +0100 Subject: [PATCH] setting for updateing the test bounds --- .../flash/configuration/Configuration.java | 4 + .../TextImportResizeTextBoundsMode.java | 26 +++++++ .../flash/tags/DefineEditTextTag.java | 28 +++++-- .../decompiler/flash/tags/DefineText2Tag.java | 7 ++ .../decompiler/flash/tags/DefineTextTag.java | 7 ++ .../decompiler/flash/tags/base/TextTag.java | 76 +++++++++++++++++++ .../tags/dynamictext/DynamicTextModel.java | 7 +- .../flash/tags/dynamictext/Paragraph.java | 7 +- .../tags/dynamictext/SameStyleTextRecord.java | 5 +- .../flash/tags/dynamictext/Word.java | 7 +- .../flash/gui/AdvancedSettingsDialog.java | 34 ++++++++- .../decompiler/flash/gui/ErrorLogFrame.java | 2 +- .../locales/AdvancedSettingsDialog.properties | 6 ++ .../AdvancedSettingsDialog_hu.properties | 6 ++ 14 files changed, 198 insertions(+), 24 deletions(-) create mode 100644 libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImportResizeTextBoundsMode.java diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java index 9477141f7..56bc751f0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java @@ -18,6 +18,7 @@ package com.jpexs.decompiler.flash.configuration; import com.jpexs.decompiler.flash.ApplicationInfo; import com.jpexs.decompiler.flash.helpers.CodeFormatting; +import com.jpexs.decompiler.flash.importers.TextImportResizeTextBoundsMode; import com.jpexs.helpers.Helper; import java.io.BufferedOutputStream; import java.io.File; @@ -305,6 +306,9 @@ public class Configuration { @ConfigurationCategory("export") public static final ConfigurationItem textExportSingleFileRecordSeparator = null; + @ConfigurationCategory("import") + public static final ConfigurationItem textImportResizeTextBoundsMode = null; + @ConfigurationDefaultBoolean(true) @ConfigurationName("warning.experimental.as12edit") @ConfigurationCategory("script") diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImportResizeTextBoundsMode.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImportResizeTextBoundsMode.java new file mode 100644 index 000000000..1a636f0d0 --- /dev/null +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/TextImportResizeTextBoundsMode.java @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2014 JPEXS, All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3.0 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. + */ +package com.jpexs.decompiler.flash.importers; + +/** + * + * @author JPEXS + */ +public enum TextImportResizeTextBoundsMode { + + NO_RESIZE, GROW_ONLY, GROW_AND_SHRINK +} diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java index 5c8882dbc..f6fac9c0b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java @@ -19,6 +19,7 @@ package com.jpexs.decompiler.flash.tags; import com.jpexs.decompiler.flash.SWF; import com.jpexs.decompiler.flash.SWFInputStream; import com.jpexs.decompiler.flash.SWFOutputStream; +import com.jpexs.decompiler.flash.exporters.commonshape.ExportRectangle; import com.jpexs.decompiler.flash.exporters.commonshape.Matrix; import com.jpexs.decompiler.flash.exporters.commonshape.SVGExporter; import com.jpexs.decompiler.flash.tags.base.BoundedTag; @@ -794,14 +795,15 @@ public class DefineEditTextTag extends TextTag { } private String render(boolean canvas, SerializableImage image, Matrix transformation, ColorTransform colorTransform) { - if (image == null) { - return ""; //TODO: handle Html Canvas conversion - } if (border) { // border is always black, fill color is always white? RGB borderColor = new RGBA(Color.black); RGB fillColor = new RGBA(Color.white); - drawBorder(swf, image, borderColor, fillColor, getRect(new HashSet()), getTextMatrix(), transformation, colorTransform); + if (!canvas) { + drawBorder(swf, image, borderColor, fillColor, getRect(new HashSet()), getTextMatrix(), transformation, colorTransform); + } else { + // TODO: draw border + } } if (hasText) { DynamicTextModel textModel = new DynamicTextModel(); @@ -858,7 +860,7 @@ public class DefineEditTextTag extends TextTag { prevChar = c; } - textModel.calculateTexWidths(); + textModel.calculateTextWidths(); List> lines; if (multiline && wordWrap) { lines = new ArrayList<>(); @@ -913,7 +915,7 @@ public class DefineEditTextTag extends TextTag { } } - textModel.calculateTexWidths(); + textModel.calculateTextWidths(); List allTextRecords = new ArrayList<>(); int yOffset = 0; @@ -970,9 +972,14 @@ public class DefineEditTextTag extends TextTag { } } - staticTextToImage(swf, allTextRecords, 2, image, getTextMatrix(), transformation, colorTransform); + if (canvas) { + return staticTextToHtmlCanvas(1, swf, allTextRecords, 2, getBounds(), getTextMatrix(), colorTransform); + } else { + staticTextToImage(swf, allTextRecords, 2, image, getTextMatrix(), transformation, colorTransform); + } } - return ""; //TODO: Return HTML Canvas converted + + return ""; } @Override @@ -980,6 +987,11 @@ public class DefineEditTextTag extends TextTag { //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } + @Override + public ExportRectangle calculateTextBounds() { + return null; + } + private FontTag getFontTag() { FontTag font = null; for (Tag tag : swf.tags) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineText2Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineText2Tag.java index 4d88869c0..5c6daccb8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineText2Tag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineText2Tag.java @@ -20,6 +20,7 @@ import com.jpexs.decompiler.flash.SWF; import com.jpexs.decompiler.flash.SWFInputStream; import com.jpexs.decompiler.flash.SWFOutputStream; import com.jpexs.decompiler.flash.configuration.Configuration; +import com.jpexs.decompiler.flash.exporters.commonshape.ExportRectangle; import com.jpexs.decompiler.flash.exporters.commonshape.Matrix; import com.jpexs.decompiler.flash.exporters.commonshape.SVGExporter; import com.jpexs.decompiler.flash.tags.base.BoundedTag; @@ -431,6 +432,7 @@ public class DefineText2Tag extends TextTag { throw ex; } + updateTextBounds(textBounds); return true; } @@ -556,6 +558,11 @@ public class DefineText2Tag extends TextTag { staticTextToSVG(swf, textRecords, 2, exporter, getRect(new HashSet()), getTextMatrix(), colorTransform, zoom); } + @Override + public ExportRectangle calculateTextBounds() { + return calculateTextBounds(swf, textRecords, getTextMatrix()); + } + @Override public int getNumFrames() { return 1; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineTextTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineTextTag.java index 07e82ff58..13466414c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineTextTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineTextTag.java @@ -21,6 +21,7 @@ import com.jpexs.decompiler.flash.SWF; import com.jpexs.decompiler.flash.SWFInputStream; import com.jpexs.decompiler.flash.SWFOutputStream; import com.jpexs.decompiler.flash.configuration.Configuration; +import com.jpexs.decompiler.flash.exporters.commonshape.ExportRectangle; import com.jpexs.decompiler.flash.exporters.commonshape.Matrix; import com.jpexs.decompiler.flash.exporters.commonshape.SVGExporter; import com.jpexs.decompiler.flash.tags.base.BoundedTag; @@ -440,6 +441,7 @@ public class DefineTextTag extends TextTag { throw ex; } + updateTextBounds(textBounds); return true; } @@ -575,6 +577,11 @@ public class DefineTextTag extends TextTag { staticTextToSVG(swf, textRecords, 1, exporter, getRect(new HashSet()), getTextMatrix(), colorTransform, zoom); } + @Override + public ExportRectangle calculateTextBounds() { + return calculateTextBounds(swf, textRecords, getTextMatrix()); + } + @Override public int getNumFrames() { return 1; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/TextTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/TextTag.java index 9ec50d00c..89e352dad 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/TextTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/TextTag.java @@ -17,13 +17,16 @@ package com.jpexs.decompiler.flash.tags.base; import com.jpexs.decompiler.flash.SWF; +import com.jpexs.decompiler.flash.configuration.Configuration; import com.jpexs.decompiler.flash.exporters.FontExporter; +import com.jpexs.decompiler.flash.exporters.commonshape.ExportRectangle; import com.jpexs.decompiler.flash.exporters.commonshape.Matrix; import com.jpexs.decompiler.flash.exporters.commonshape.SVGExporter; import com.jpexs.decompiler.flash.exporters.modes.FontExportMode; import com.jpexs.decompiler.flash.exporters.shape.BitmapExporter; import com.jpexs.decompiler.flash.exporters.shape.CanvasShapeExporter; import com.jpexs.decompiler.flash.exporters.shape.SVGShapeExporter; +import com.jpexs.decompiler.flash.importers.TextImportResizeTextBoundsMode; import com.jpexs.decompiler.flash.tags.Tag; import com.jpexs.decompiler.flash.tags.text.TextParseException; import com.jpexs.decompiler.flash.timeline.DepthState; @@ -90,6 +93,8 @@ public abstract class TextTag extends CharacterTag implements DrawableTag { public abstract void setBounds(RECT r); + public abstract ExportRectangle calculateTextBounds(); + private static void updateRect(RECT ret, int x, int y) { if (x < ret.Xmin) { ret.Xmin = x; @@ -317,6 +322,77 @@ public abstract class TextTag extends CharacterTag implements DrawableTag { } } + public static ExportRectangle calculateTextBounds(SWF swf, List textRecords, MATRIX textMatrix) { + FontTag font = null; + int textHeight = 12; + int x = 0; + int y = 0; + List glyphs = new ArrayList<>(); + ExportRectangle result = null; + for (TEXTRECORD rec : textRecords) { + if (rec.styleFlagsHasFont) { + font = (FontTag) swf.characters.get(rec.fontId); + glyphs = font == null ? null : font.getGlyphShapeTable(); + textHeight = rec.textHeight; + } + if (rec.styleFlagsHasXOffset) { + x = rec.xOffset; + } + if (rec.styleFlagsHasYOffset) { + y = rec.yOffset; + } + + double rat = textHeight / 1024.0 / (font == null ? 1 : font.getDivider()); + + for (GLYPHENTRY entry : rec.glyphEntries) { + Matrix mat = new Matrix(); + mat = mat.concatenate(new Matrix(textMatrix)); + Matrix matTr = Matrix.getTranslateInstance(x, y); + mat = mat.concatenate(matTr); + mat = mat.concatenate(Matrix.getScaleInstance(rat)); + if (entry.glyphIndex != -1 && glyphs != null) { + // shapeNum: 1 + SHAPE shape = glyphs.get(entry.glyphIndex); + RECT glyphBounds = shape.getBounds(); + ExportRectangle rect = mat.transform(new ExportRectangle(glyphBounds)); + if (result == null) { + result = rect; + } else { + result.xMin = Math.min(result.xMin, rect.xMin); + result.yMin = Math.min(result.yMin, rect.yMin); + result.xMax = Math.max(result.xMax, rect.xMax); + result.yMax = Math.max(result.yMax, rect.yMax); + } + x += entry.glyphAdvance; + } + } + } + + return result; + } + + public void updateTextBounds(RECT textBounds) { + TextImportResizeTextBoundsMode resizeMode = Configuration.textImportResizeTextBoundsMode.get(); + if (resizeMode.equals(TextImportResizeTextBoundsMode.GROW_ONLY) || resizeMode.equals(TextImportResizeTextBoundsMode.GROW_AND_SHRINK)) { + ExportRectangle newBounds = calculateTextBounds(); + int xMin = (int) Math.floor(newBounds.xMin); + int yMin = (int) Math.floor(newBounds.yMin); + int xMax = (int) Math.ceil(newBounds.xMax); + int yMax = (int) Math.ceil(newBounds.yMax); + if (resizeMode.equals(TextImportResizeTextBoundsMode.GROW_ONLY)) { + textBounds.Xmin = Math.min(xMin, textBounds.Xmin); + textBounds.Ymin = Math.min(yMin, textBounds.Ymin); + textBounds.Xmax = Math.max(xMax, textBounds.Xmax); + textBounds.Ymax = Math.max(yMax, textBounds.Ymax); + } else if (resizeMode.equals(TextImportResizeTextBoundsMode.GROW_AND_SHRINK)) { + textBounds.Xmin = xMin; + textBounds.Ymin = yMin; + textBounds.Xmax = xMax; + textBounds.Ymax = yMax; + } + } + } + public static String staticTextToHtmlCanvas(double unitDivisor, SWF swf, List textRecords, int numText, RECT bounds, MATRIX textMatrix, ColorTransform colorTransform) { int textColor = 0; String ret = ""; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/DynamicTextModel.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/DynamicTextModel.java index 32e214367..c0bb5a1c7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/DynamicTextModel.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/DynamicTextModel.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags.dynamictext; import com.jpexs.decompiler.flash.types.GLYPHENTRY; @@ -64,11 +65,11 @@ public class DynamicTextModel { } } - public int calculateTexWidths() { + public int calculateTextWidths() { int width = 0; for (Paragraph p : paragraphs) { - width += p.calculateTexWidths(); + width += p.calculateTextWidths(); } this.width = width; return width; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Paragraph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Paragraph.java index bdcb646a2..b29516968 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Paragraph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Paragraph.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags.dynamictext; import com.jpexs.decompiler.flash.types.GLYPHENTRY; @@ -58,11 +59,11 @@ public class Paragraph { } } - public int calculateTexWidths() { + public int calculateTextWidths() { int width = 0; for (Word w : words) { - width += w.calculateTexWidths(); + width += w.calculateTextWidths(); } this.width = width; return width; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/SameStyleTextRecord.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/SameStyleTextRecord.java index d89db2513..dac541586 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/SameStyleTextRecord.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/SameStyleTextRecord.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags.dynamictext; import java.util.ArrayList; @@ -33,7 +34,7 @@ public class SameStyleTextRecord { public List glyphEntries = new ArrayList<>(); - public int calculateTexWidths() { + public int calculateTextWidths() { int width = 0; for (GlyphCharacter gc : glyphEntries) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Word.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Word.java index 9e3ec3771..a20286ee4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Word.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/dynamictext/Word.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash.tags.dynamictext; import com.jpexs.decompiler.flash.types.GLYPHENTRY; @@ -51,11 +52,11 @@ public class Word { record = null; } - public int calculateTexWidths() { + public int calculateTextWidths() { int width = 0; for (SameStyleTextRecord r : records) { - width += r.calculateTexWidths(); + width += r.calculateTextWidths(); } this.width = width; return width; diff --git a/src/com/jpexs/decompiler/flash/gui/AdvancedSettingsDialog.java b/src/com/jpexs/decompiler/flash/gui/AdvancedSettingsDialog.java index a2fd50009..750804e53 100644 --- a/src/com/jpexs/decompiler/flash/gui/AdvancedSettingsDialog.java +++ b/src/com/jpexs/decompiler/flash/gui/AdvancedSettingsDialog.java @@ -33,6 +33,7 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Calendar; +import java.util.EnumSet; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; @@ -40,6 +41,7 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JButton; import javax.swing.JCheckBox; +import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; @@ -192,7 +194,6 @@ public class AdvancedSettingsDialog extends AppDialog implements ActionListener val = ""; } if (itemType == Calendar.class) { - tf.setText(new SimpleDateFormat().format(((Calendar) item.get()).getTime())); } else { tf.setText(val.toString()); @@ -200,12 +201,32 @@ public class AdvancedSettingsDialog extends AppDialog implements ActionListener tf.setToolTipText(description); tf.setMaximumSize(new Dimension(Integer.MAX_VALUE, tf.getPreferredSize().height)); c = tf; - } - if (itemType == Boolean.class) { + } else if (itemType == Boolean.class) { JCheckBox cb = new JCheckBox(); cb.setSelected((Boolean) item.get()); cb.setToolTipText(description); c = cb; + } else if (itemType.isEnum()) { + JComboBox cb = new JComboBox<>(); + @SuppressWarnings("unchecked") + EnumSet enumValues = EnumSet.allOf(itemType); + String stringValue = null; + for (Object enumValue : enumValues) { + String enumValueStr = enumValue.toString(); + if (stringValue == null) { + stringValue = enumValueStr; + } + cb.addItem(enumValueStr); + } + if (item.get() != null) { + stringValue = item.get().toString(); + } + cb.setToolTipText(description); + cb.setSelectedItem(stringValue); + cb.setMaximumSize(new Dimension(Integer.MAX_VALUE, cb.getPreferredSize().height)); + c = cb; + } else { + throw new UnsupportedOperationException("Configuration ttem type '" + itemType.getName() + "' is not supported"); } componentsMap.put(name, c); l.setLabelFor(c); @@ -223,7 +244,7 @@ public class AdvancedSettingsDialog extends AppDialog implements ActionListener tabs.put(cat, new JScrollPane(configPanel)); } - String catOrder[] = new String[]{"ui", "display", "decompilation", "script", "format", "export", "limit", "update", "debug", "other"}; + String catOrder[] = new String[]{"ui", "display", "decompilation", "script", "format", "export", "import", "limit", "update", "debug", "other"}; for (String cat : catOrder) { if (!tabs.containsKey(cat)) { @@ -291,6 +312,11 @@ public class AdvancedSettingsDialog extends AppDialog implements ActionListener } value = cal; } + + if (itemType.isEnum()) { + String stringValue = (String) ((JComboBox) c).getSelectedItem(); + value = Enum.valueOf(itemType, stringValue); + } try { if (itemType == Integer.class) { diff --git a/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java b/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java index d37d9439c..c2ae53922 100644 --- a/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java +++ b/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java @@ -60,7 +60,7 @@ public class ErrorLogFrame extends AppFrame { private static ErrorLogFrame instance; private final JPanel logView = new JPanel(); - private JPanel logViewInner = new JPanel(); + private final JPanel logViewInner = new JPanel(); private final Handler handler; private final ImageIcon expandIcon; private final ImageIcon collapseIcon; diff --git a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties index c059c6b06..ec9ec97b0 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog.properties @@ -299,3 +299,9 @@ config.description.overrideTextExportFileName = You can customite the filename o config.name.showOldTextDuringTextEditing = Show old text during text editing config.description.showOldTextDuringTextEditing = Shows the original text of the text tag with gray color in the preview area. + +config.group.name.import = Import +config.group.description.import = Configuration of imports + +config.name.textImportResizeTextBoundsMode = Text bounds resize mode +config.description.textImportResizeTextBoundsMode = Text bounds resize mode after text editing. diff --git a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_hu.properties b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_hu.properties index f53c91e8c..db9dda4fb 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_hu.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/AdvancedSettingsDialog_hu.properties @@ -299,3 +299,9 @@ config.description.overrideTextExportFileName = Szem\u00e9lyre szabhatod a nev\u config.name.showOldTextDuringTextEditing = R\u00e9gi sz\u00f6veg mutat\u00e1sa sz\u00f6veg szerkeszt\u00e9sekor config.description.showOldTextDuringTextEditing = Mutatja az eredeti sz\u00f6veget sz\u00fcrke sz\u00ednnel az el\u0151n\u00e9zeti ablakban szerkeszt\u00e9s k\u00f6zben. + +config.group.name.import = Import\u00e1l\u00e1s +config.group.description.import = Import\u00e1l\u00e1s be\u00e1ll\u00edt\u00e1sai + +config.name.textImportResizeTextBoundsMode = Sz\u00f6veg hat\u00e1r \u00e1tm\u00e9retez\u00e9se +config.description.textImportResizeTextBoundsMode = Sz\u00f6veg hat\u00e1r \u00e1tm\u00e9retez\u00e9se sz\u00f6veg m\u00f3dos\u00edt\u00e1sa ut\u00e1n.