Skip to content

Commit

Permalink
#394 Add User guide menu under Help
Browse files Browse the repository at this point in the history
  • Loading branch information
prmr committed Dec 1, 2020
1 parent 965eea9 commit afad70e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Binary file added icons/16x16/jet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions src/ca/mcgill/cs/jetuml/JetUML.properties
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,15 @@ view.reset_zoom.accelerator.mac=META+0
view.reset_zoom.accelerator=CTRL+0
help.text=Help
help.mnemonic=H
help.about.text=About
help.about.icon=16x16/help-about.png
help.about.text=About JetUML
help.about.icon=16x16/jet.png
help.about.mnemonic=A
help.tips.text=Tips
help.tips.text=Tip of the Day
help.tips.icon=16x16/help-hint.png
help.tips.mnemonic=T
help.guide.text=User Guide
help.guide.icon=16x16/help-about.png
help.guide.mnemonic=G
welcome.title=Welcome
welcome.create.text=Create New Diagram
welcome.open.text=Open Recent File
6 changes: 4 additions & 2 deletions src/ca/mcgill/cs/jetuml/gui/EditorFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public class EditorFrame extends BorderPane
private static final String KEY_LAST_EXPORT_DIR = "lastExportDir";
private static final String KEY_LAST_SAVEAS_DIR = "lastSaveAsDir";
private static final String KEY_LAST_IMAGE_FORMAT = "lastImageFormat";
private static final String USER_MANUAL_URL = "https://www.jetuml.org/docs/user-guide.html";

private static final String[] IMAGE_FORMATS = validFormats("png", "jpg", "gif", "bmp");

Expand Down Expand Up @@ -247,8 +248,9 @@ private void createHelpMenu(MenuBar pMenuBar)
{
MenuFactory factory = new MenuFactory(RESOURCES);
pMenuBar.getMenus().add(factory.createMenu("help", false,
factory.createMenuItem("help.tips", false, pEvent -> new TipDialog(aMainStage).show()),
factory.createMenuItem("help.about", false, pEvent -> new AboutDialog(aMainStage).show())));
factory.createMenuItem("help.tips", false, event -> new TipDialog(aMainStage).show()),
factory.createMenuItem("help.guide", false, event -> JetUML.openBrowser(USER_MANUAL_URL)),
factory.createMenuItem("help.about", false, event -> new AboutDialog(aMainStage).show())));
}

/*
Expand Down

0 comments on commit afad70e

Please sign in to comment.