From e2b768f19432bdb0ff69e765686a5e18a528fa13 Mon Sep 17 00:00:00 2001 From: servertude Date: Sat, 8 Mar 2008 07:41:40 +0000 Subject: [PATCH] add help urls --- extra/jheidi/helpMenuEvents.ajl | 45 +++++++++++++++++++++++++++++++ extra/jheidi/mainWindowEvents.ajl | 16 +++++------ extra/jheidi/showMainWindow.ajl | 3 ++- 3 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 extra/jheidi/helpMenuEvents.ajl diff --git a/extra/jheidi/helpMenuEvents.ajl b/extra/jheidi/helpMenuEvents.ajl new file mode 100644 index 00000000..32af58ef --- /dev/null +++ b/extra/jheidi/helpMenuEvents.ajl @@ -0,0 +1,45 @@ + +String who = arg("source"); + +WindowContext context = argObj("windowContext"); + +log.debug("Event received: " + who); + +if ("Heidi SQL Website".equals(who)) +{ + BareBonesBrowserLaunch.openURL("http://www.heidisql.com"); +} +else if ( "Downloads".equals(who) ) +{ + BareBonesBrowserLaunch.openURL("http://www.heidisql.com/download.php"); +} +else if ( "Support Forums".equals(who) ) +{ + BareBonesBrowserLaunch.openURL("http://www.heidisql.com/forum/"); +} +else if ( "Bug Tracker".equals(who) ) +{ + BareBonesBrowserLaunch.openURL("http://sourceforge.net/tracker/?group_id=164593&atid=832347"); +} +else if ( "Feature Tracker".equals(who) ) +{ + BareBonesBrowserLaunch.openURL("http://sourceforge.net/tracker/?group_id=164593&atid=832350"); +} +else if ("About".equals(who)) +{ + ((Frame)context.get("/")).popupMessage("jHeidi Alpha - Developer Preview."); +} +else { + ((Frame)context.get("/")).popupMessage("Feature Unimplemented!"); +} + + + + + + + + + + + diff --git a/extra/jheidi/mainWindowEvents.ajl b/extra/jheidi/mainWindowEvents.ajl index 892fcffe..7f055cd4 100644 --- a/extra/jheidi/mainWindowEvents.ajl +++ b/extra/jheidi/mainWindowEvents.ajl @@ -1,9 +1,9 @@ - -String who = arg("source"); + +String who = arg("source"); WindowContext context = argObj("windowContext"); -log.debug("Event received: " + who); +log.debug("Event received: " + who); if ("Close".equals(who) ) { @@ -105,15 +105,11 @@ else if ("Drop Database".equals(who)) } } } -else if ("Heidi SQL Website".equals(who)) +else if ( "Exit".equals(who) ) { - BareBonesBrowserLaunch.openURL("http://www.heidisql.com"); -} -else if ( "Exit".equals(who) ) -{ - System.exit(0); + System.exit(0); } else { ((Frame)context.get("/")).popupMessage("Feature Unimplemented!"); -} +} diff --git a/extra/jheidi/showMainWindow.ajl b/extra/jheidi/showMainWindow.ajl index 70553373..afd6d955 100644 --- a/extra/jheidi/showMainWindow.ajl +++ b/extra/jheidi/showMainWindow.ajl @@ -20,7 +20,8 @@ app.menu("&Import").item("Import CSV File", "Load SQL File", "Insert Files into Blob Fields"); app.menu("E&xport").item("Export Tables as SQL","separator", "Copy as CSV Data", "Copy as HTML Data", "Copy as XML Data","Export Data..."); app.menu("&Window").item("Connection 1"); - app.menu("&Help").item("SQL Help", "separator", "Heidi SQL Website", "Download Page", "Support Forum", "Bug Tracker", "Feature Tracker", + Menu help = app.menu("&Help"); + help.events("helpMenuEvents").item("SQL Help", "separator", "Heidi SQL Website", "Downloads", "Support Forums", "Bug Tracker", "Feature Tracker", "separator", "About"); app.toolbar("mainToolbar").events("mainToolbarEvents")