From 12c132d4b3e83b59f449f9c21d7af98b176feb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Wed, 18 Oct 2023 08:53:25 +0200 Subject: [PATCH] Added #1717 AS1/2/3 Option to hide P-code panel --- CHANGELOG.md | 2 ++ .../flash/configuration/Configuration.java | 8 ++++++++ .../decompiler/flash/gui/abc/ABCPanel.java | 13 +++++++++---- .../flash/gui/action/ActionPanel.java | 17 ++++++++--------- .../locales/AdvancedSettingsDialog.properties | 8 +++++++- .../AdvancedSettingsDialog_cs.properties | 8 +++++++- 6 files changed, 41 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6062f912b..7d57304d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. - [#1130], [#1220] Remembering last used screen (monitor), opening dialogs on same screen as the main window, do not restore window size to larger value that actual screen size +- [#1717] AS1/2/3 Option to hide P-code panel ### Fixed - [#1306], [#1768] Maximizing window on other than main monitor @@ -3191,6 +3192,7 @@ Major version of SWF to XML export changed to 2. [alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7 [#1130]: https://www.free-decompiler.com/flash/issues/1130 [#1220]: https://www.free-decompiler.com/flash/issues/1220 +[#1717]: https://www.free-decompiler.com/flash/issues/1717 [#1306]: https://www.free-decompiler.com/flash/issues/1306 [#1768]: https://www.free-decompiler.com/flash/issues/1768 [#2099]: https://www.free-decompiler.com/flash/issues/2099 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 977d15664..17f387619 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 @@ -960,6 +960,14 @@ public final class Configuration { @ConfigurationInternal public static ConfigurationItem lastMainWindowScreenHeight = null; + @ConfigurationDefaultBoolean(true) + @ConfigurationCategory("ui") + public static ConfigurationItem displayAs12PCodePanel = null; + + @ConfigurationDefaultBoolean(true) + @ConfigurationCategory("ui") + public static ConfigurationItem displayAs3PCodePanel = null; + private enum OSId { WINDOWS, OSX, UNIX } diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java index c73f42a3d..8d3172463 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java @@ -1080,9 +1080,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener