diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java index b29ceeacf..180db5f41 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ApplicationInfo.java @@ -110,6 +110,11 @@ public class ApplicationInfo { * Project page */ public static final String PROJECT_PAGE = "https://github.com/" + GIT_HUB_PROJECT; + + /** + * Project Wiki + */ + public static final String WIKI_PAGE = PROJECT_PAGE + "/wiki"; /** * URL for checking new updates diff --git a/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java b/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java index a1ca1952f..1bf03bb3f 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java +++ b/src/com/jpexs/decompiler/flash/gui/MainFrameMenu.java @@ -804,6 +804,20 @@ public abstract class MainFrameMenu implements MenuBuilder { ViewMessages.showMessageDialog(Main.getDefaultMessagesComponent(), translate("message.homepage").replace("%url%", homePageURL)); } } + + protected void wikiActionPerformed(ActionEvent evt) { + if (Main.isWorking()) { + return; + } + if (mainFrame.getPanel().checkEdited()) { + return; + } + + String wikiURL = ApplicationInfo.WIKI_PAGE; + if (!View.navigateUrl(wikiURL)) { + ViewMessages.showMessageDialog(Main.getDefaultMessagesComponent(), translate("message.wiki").replace("%url%", wikiURL)); + } + } protected void aboutActionPerformed(ActionEvent evt) { if (Main.isWorking()) { @@ -1144,6 +1158,7 @@ public abstract class MainFrameMenu implements MenuBuilder { setMenuEnabled("/help/checkUpdates", !isWorking); //setMenuEnabled("/help/helpUs", !isWorking); setMenuEnabled("/help/homePage", !isWorking); + setMenuEnabled("/help/wiki", !isWorking); setMenuEnabled("_/about", !isWorking); setMenuEnabled("/help/about", !isWorking); @@ -1455,6 +1470,7 @@ public abstract class MainFrameMenu implements MenuBuilder { addMenuItem("/help", translate("menu.help"), null, null, 0, null, false, null, false); //addMenuItem("/help/helpUs", translate("menu.help.helpus"), "donate32", this::helpUsActionPerformed, PRIORITY_TOP, null, true, null, false); addMenuItem("/help/homePage", translate("menu.help.homepage"), "homepage16", this::homePageActionPerformed, PRIORITY_MEDIUM, null, true, null, false); + addMenuItem("/help/wiki", translate("menu.help.wiki"), "wiki16", this::wikiActionPerformed, PRIORITY_MEDIUM, null, true, null, false); addSeparator("/help"); addMenuItem("/help/checkUpdates", translate("menu.help.checkupdates"), "update16", this::checkUpdatesActionPerformed, PRIORITY_MEDIUM, null, true, null, false); addMenuItem("/help/about", translate("menu.help.about"), "about32", this::aboutActionPerformed, PRIORITY_TOP, null, true, null, false); diff --git a/src/com/jpexs/decompiler/flash/gui/graphics/wiki16.png b/src/com/jpexs/decompiler/flash/gui/graphics/wiki16.png new file mode 100644 index 000000000..e48ff95e3 Binary files /dev/null and b/src/com/jpexs/decompiler/flash/gui/graphics/wiki16.png differ diff --git a/src/com/jpexs/decompiler/flash/gui/graphics/wiki32.png b/src/com/jpexs/decompiler/flash/gui/graphics/wiki32.png new file mode 100644 index 000000000..45c9edfe2 Binary files /dev/null and b/src/com/jpexs/decompiler/flash/gui/graphics/wiki32.png differ diff --git a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties index 392705ef2..bd84db20f 100644 --- a/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties +++ b/src/com/jpexs/decompiler/flash/gui/locales/MainFrame.properties @@ -1014,4 +1014,7 @@ menu.file.view.easy = Simple editor #after 21.1.3 menu.tools.solEditor = Sol editor -node.cookies = cookies \ No newline at end of file +node.cookies = cookies + +menu.help.wiki = Visit FFDec Wiki +message.wiki = Visit FFDec Wiki at: \r\n%url% \ No newline at end of file