From: <an...@us...> - 2007-07-26 14:17:03
|
Revision: 664 http://magicmap.svn.sourceforge.net/magicmap/?rev=664&view=rev Author: anweiss Date: 2007-07-26 07:17:01 -0700 (Thu, 26 Jul 2007) Log Message: ----------- added menus for bugs and forum under "help" Modified Paths: -------------- trunk/magicmapclient/res/screentext.properties trunk/magicmapclient/res/screentext_de_DE.properties trunk/magicmapclient/src/net/sf/magicmap/client/gui/MainFrame.java Modified: trunk/magicmapclient/res/screentext.properties =================================================================== --- trunk/magicmapclient/res/screentext.properties 2007-07-26 12:01:20 UTC (rev 663) +++ trunk/magicmapclient/res/screentext.properties 2007-07-26 14:17:01 UTC (rev 664) @@ -10,6 +10,8 @@ onlinehelp=Online help onlinehelptooltip=Help at MagicMap wiki homepage=Homepage +forum=Forum +submitBug=Submit bug... simpleview=Beginner normalview=Advanced expertview=Expert Modified: trunk/magicmapclient/res/screentext_de_DE.properties =================================================================== --- trunk/magicmapclient/res/screentext_de_DE.properties 2007-07-26 12:01:20 UTC (rev 663) +++ trunk/magicmapclient/res/screentext_de_DE.properties 2007-07-26 14:17:01 UTC (rev 664) @@ -10,6 +10,8 @@ onlinehelp=Online Hilfe onlinehelptooltip=Hilfe im MagicMap Wiki homepage=Homepage +forum=Forum +submitBug=Bug melden... simpleview=Anf\xE4nger normalview=Fortgeschritten expertview=Experte Modified: trunk/magicmapclient/src/net/sf/magicmap/client/gui/MainFrame.java =================================================================== --- trunk/magicmapclient/src/net/sf/magicmap/client/gui/MainFrame.java 2007-07-26 12:01:20 UTC (rev 663) +++ trunk/magicmapclient/src/net/sf/magicmap/client/gui/MainFrame.java 2007-07-26 14:17:01 UTC (rev 664) @@ -76,6 +76,8 @@ private AbstractAction aboutAction; private AbstractAction onlineHelp; private AbstractAction homepageAction; + private AbstractAction forumAction; + private AbstractAction bugAction; private MagicAction invisibleAction; private MagicAction simpleView; private MagicAction normalView; @@ -263,9 +265,12 @@ public JMenu buildHelpMenu(){ Browser.init(); JMenu menu = GUIBuilder.createMenu("help"); - menu.add(GUIBuilder.createMenuItem(this.onlineHelp)); menu.add(GUIBuilder.createMenuItem(this.homepageAction)); menu.addSeparator(); + menu.add(GUIBuilder.createMenuItem(this.onlineHelp)); + menu.add(GUIBuilder.createMenuItem(this.forumAction)); + menu.add(GUIBuilder.createMenuItem(this.bugAction)); + menu.addSeparator(); menu.add(GUIBuilder.createMenuItem(this.aboutAction)); return menu; } @@ -605,7 +610,45 @@ } } }; + this.forumAction = new MagicAction("forum") { + /** + * serial version id + */ + private static final long serialVersionUID = -2931521125912428814L; + + /* (non-Javadoc) + * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) + */ + @Override + public void actionPerformed(ActionEvent e){ + try { + Browser.displayURL("http://sourceforge.net/forum/?group_id=127844"); + } catch (IOException e1) { + //TODO: exception handling + } + } + }; + this.bugAction = new MagicAction("submitBug") { + + /** + * serial version id + */ + private static final long serialVersionUID = -2931521125912428814L; + + /* (non-Javadoc) + * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) + */ + @Override + public void actionPerformed(ActionEvent e){ + try { + Browser.displayURL("http://sourceforge.net/tracker/?atid=711047&group_id=127844&func=browse"); + } catch (IOException e1) { + //TODO: exception handling + } + } + }; + this.aboutAction = new MagicAction("about") { /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |