Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 29:e90d290a9a8d
Remove dependence on Nashorn.
author | David Barts <n5jrn@me.com> |
---|---|
date | Mon, 13 Jun 2022 09:21:24 -0700 |
parents | 5fa5d15b4a7b |
children | a495f9ea498b |
rev | line source |
---|---|
0 | 1 /* |
2 * OS-dependent code, Mac version. | |
3 */ | |
1 | 4 package name.blackcap.imageprep |
0 | 5 |
6 import com.apple.eawt.AboutHandler | |
7 import com.apple.eawt.PreferencesHandler | |
8 import com.apple.eawt.QuitStrategy | |
9 | |
10 fun setMacMenus() { | |
11 com.apple.eawt.Application.getApplication().run { | |
12 setAboutHandler(AboutHandler { showAboutDialog() }) | |
19
5fa5d15b4a7b
Attempt to make it a std. app. Builds, sorta runs, needs more work.
David Barts <n5jrn@me.com>
parents:
1
diff
changeset
|
13 setPreferencesHandler( |
5fa5d15b4a7b
Attempt to make it a std. app. Builds, sorta runs, needs more work.
David Barts <n5jrn@me.com>
parents:
1
diff
changeset
|
14 PreferencesHandler { Application.settingsDialog.setVisible(true) }) |
0 | 15 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) |
16 } | |
17 } |