Mercurial > cgi-bin > hgweb.cgi > ImagePrep
annotate src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 23:92afaa27f40a
Mac app support.
author | David Barts <n5jrn@me.com> |
---|---|
date | Tue, 24 Nov 2020 16:45:37 -0800 |
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 } |