Mercurial > cgi-bin > hgweb.cgi > JpegWasher
comparison src/name/blackcap/exifwasher/Menus.kt @ 50:fb407182ba76
Add help menu item, UNTESTED.
author | David Barts <davidb@stashtea.com> |
---|---|
date | Thu, 07 May 2020 08:29:58 -0700 |
parents | ee580450d45a |
children | 39895d44a287 |
comparison
equal
deleted
inserted
replaced
48:35fb8de77c7d | 50:fb407182ba76 |
---|---|
35 }) | 35 }) |
36 makeShortcut(KeyEvent.VK_Q) | 36 makeShortcut(KeyEvent.VK_Q) |
37 }) | 37 }) |
38 } | 38 } |
39 }) | 39 }) |
40 if (OS.type != OS.MAC) { | 40 add(JMenu("Help").apply { |
41 add(JMenu("Help").apply { | 41 if (OS.type != OS.MAC) { |
42 add(JMenuItem("About ${Application.MYNAME}…").apply { | 42 add(JMenuItem("About ${Application.MYNAME}…").apply { |
43 addActionListener(ActionListener { showAboutDialog() }) | 43 addActionListener(ActionListener { showAboutDialog() }) |
44 }) | 44 }) |
45 } | |
46 add(JMenuItem("${Application.MYNAME} Help…").apply { | |
47 addActionListener(ActionListener { Application.helpDialog.setVisible(true) }) | |
45 }) | 48 }) |
46 } | 49 } |
47 } | 50 } |
48 | 51 |
49 fun getMenu(name: String): JMenu? { | 52 fun getMenu(name: String): JMenu? { |