X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FHelpScreen.java;fp=tim%2Fprune%2Ffunction%2FHelpScreen.java;h=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hp=dc1e059f86e36445bb1bea0bdbdc2d2b6ac47884;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465;p=GpsPrune.git diff --git a/tim/prune/function/HelpScreen.java b/tim/prune/function/HelpScreen.java deleted file mode 100644 index dc1e059..0000000 --- a/tim/prune/function/HelpScreen.java +++ /dev/null @@ -1,47 +0,0 @@ -package tim.prune.function; - -import javax.swing.JOptionPane; - -import tim.prune.App; -import tim.prune.GenericFunction; -import tim.prune.I18nManager; -import tim.prune.function.browser.BrowserLauncher; - -/** - * Class to show a simple help screen - */ -public class HelpScreen extends GenericFunction -{ - /** - * Constructor - * @param inApp app object - */ - public HelpScreen(App inApp) - { - super(inApp); - } - - /** - * Get the name key - */ - public String getNameKey() { - return "function.help"; - } - - /** - * Show the help screen - */ - public void begin() - { - // show the dialog and offer to open home page - Object[] buttonTexts = {I18nManager.getText("button.showwebpage"), I18nManager.getText("button.cancel")}; - if (JOptionPane.showOptionDialog(_parentFrame, I18nManager.getText("dialog.help.help"), - I18nManager.getText("function.help"), JOptionPane.YES_NO_OPTION, - JOptionPane.INFORMATION_MESSAGE, null, buttonTexts, buttonTexts[1]) - == JOptionPane.YES_OPTION) - { - // User selected to launch home page - BrowserLauncher.launchBrowser("https://activityworkshop.net/software/gpsprune/index.html"); - } - } -}