mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
Add ebook links
This commit is contained in:
@@ -67,7 +67,13 @@ public class ActionBarPlugin implements IPlugIn {
|
||||
"Join Patreon",
|
||||
IconLoader.Patreon,
|
||||
HelpMenuPlugin.PATREON_URL
|
||||
)
|
||||
),
|
||||
new SupportOption(
|
||||
"Get the official DIYLC eBook",
|
||||
"Join Patreon",
|
||||
IconLoader.Manual,
|
||||
HelpMenuPlugin.BOOK_URL
|
||||
)
|
||||
};
|
||||
|
||||
private IPlugInPort plugInPort;
|
||||
|
||||
@@ -64,6 +64,7 @@ public class HelpMenuPlugin implements IPlugIn {
|
||||
public static String BUG_URL = "https://github.com/bancika/diy-layout-creator/issues";
|
||||
public static String DONATE_URL = "http://diy-fever.com/donate";
|
||||
public static String PATREON_URL = "http://diy-fever.com/patreon";
|
||||
public static String BOOK_URL = "http://www.diy-fever.com/diylc-book-coupon";
|
||||
|
||||
private IPlugInPort plugInPort;
|
||||
private AboutDialog aboutDialog;
|
||||
@@ -71,7 +72,8 @@ public class HelpMenuPlugin implements IPlugIn {
|
||||
|
||||
public HelpMenuPlugin(ISwingUI swingUI) {
|
||||
this.swingUI = swingUI;
|
||||
swingUI.injectMenuAction(new NavigateURLAction("User Manual", IconLoader.Manual.getIcon(), MANUAL_URL), HELP_TITLE);
|
||||
swingUI.injectMenuAction(new NavigateURLAction("Get the Book", IconLoader.Manual.getIcon(), BOOK_URL), HELP_TITLE);
|
||||
swingUI.injectMenuAction(new NavigateURLAction("Wiki Pages", IconLoader.DocumentInfo.getIcon(), MANUAL_URL), HELP_TITLE);
|
||||
swingUI.injectMenuAction(new NavigateURLAction("FAQ", IconLoader.Faq.getIcon(), FAQ_URL), HELP_TITLE);
|
||||
swingUI.injectMenuAction(new NavigateURLAction("Component API", IconLoader.CoffeebeanEdit.getIcon(), COMPONENT_URL),
|
||||
HELP_TITLE);
|
||||
|
||||
@@ -73,7 +73,7 @@ public enum IconLoader {
|
||||
ComponentPreferences("component_preferences.png"), ComponentReplace("component_replace.png"), Barcode("barcode.png"),
|
||||
DocumentGerber("document_gerber.png"), DocumentX2("document_x2.png"), Export("export.png"), Multimeter("multimeter.png"),
|
||||
Patreon("patreon.png"), Brain("brain.png"), Tables("tables.png"), Silkscreen("silkscreen.png"),
|
||||
Project("project.png");
|
||||
Project("project.png"), DocumentInfo("document_info.png");
|
||||
|
||||
protected String name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user