comparison src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 1:0bded24f746e

Compiles, still untested.
author David Barts <n5jrn@me.com>
date Thu, 16 Jul 2020 21:51:08 -0700
parents e0efe7848130
children 5fa5d15b4a7b
comparison
equal deleted inserted replaced
0:e0efe7848130 1:0bded24f746e
1 /* 1 /*
2 * OS-dependent code, Mac version. 2 * OS-dependent code, Mac version.
3 */ 3 */
4 package name.blackcap.exifwasher 4 package name.blackcap.imageprep
5 5
6 import com.apple.eawt.AboutHandler 6 import com.apple.eawt.AboutHandler
7 import com.apple.eawt.PreferencesHandler 7 import com.apple.eawt.PreferencesHandler
8 import com.apple.eawt.QuitStrategy 8 import com.apple.eawt.QuitStrategy
9 9
10 fun setMacMenus() { 10 fun setMacMenus() {
11 com.apple.eawt.Application.getApplication().run { 11 com.apple.eawt.Application.getApplication().run {
12 setAboutHandler(AboutHandler { showAboutDialog() }) 12 setAboutHandler(AboutHandler { showAboutDialog() })
13 setPreferencesHandler(
14 PreferencesHandler { Application.settingsDialog.setVisible(true) })
15 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) 13 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS)
16 } 14 }
17 } 15 }