translations: add menu item for launching translation tool
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@658 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
b20a0f7e77
commit
237b28ebe7
3 changed files with 35 additions and 0 deletions
|
@ -647,6 +647,14 @@ public class MainWindow extends JFrame
|
|||
JMenu helpMenu = new JMenu(strings.getString("menu.help"));
|
||||
menuBar.add(helpMenu);
|
||||
|
||||
menuItem = new JMenuItem(strings.getString("menu.help.launch-translation-tool"));
|
||||
menuItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent evt)
|
||||
{
|
||||
onLaunchTranslationToolClicked();
|
||||
}});
|
||||
helpMenu.add(menuItem);
|
||||
|
||||
menuItem = new JMenuItem(strings.getString("menu.help.about"));
|
||||
menuItem.addActionListener(wrapActionListener(
|
||||
new ActionListener() {
|
||||
|
@ -1470,6 +1478,15 @@ public class MainWindow extends JFrame
|
|||
}
|
||||
}
|
||||
|
||||
private void onLaunchTranslationToolClicked()
|
||||
{
|
||||
if (maybeSaveCity()) {
|
||||
dispose();
|
||||
TranslationTool tt = new TranslationTool();
|
||||
tt.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void onAboutClicked()
|
||||
{
|
||||
String version = getClass().getPackage().getImplementationVersion();
|
||||
|
|
Reference in a new issue