annotate src/name/blackcap/exifwasher/Osdep.kt.mac.osdep @ 31:3b0546fa0d74

Add documentation in alternative formats to HTML.
author David Barts <davidb@stashtea.com>
date Sat, 18 Apr 2020 09:08:23 -0700
parents 0a106e9b91b4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
1 /*
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
2 * OS-dependent code, Mac version.
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
3 */
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
4 package name.blackcap.exifwasher
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
5
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
6 import com.apple.eawt.AboutHandler
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
7 import com.apple.eawt.PreferencesHandler
9
0a106e9b91b4 Fix table layout; fix "select all for deletion" feature.
David Barts <n5jrn@me.com>
parents: 6
diff changeset
8 import com.apple.eawt.QuitStrategy
4
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
9
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
10 fun setMacMenus() {
6
aafc9c127c7b Fix many bugs; get settings (apparently) working.
David Barts <n5jrn@me.com>
parents: 4
diff changeset
11 com.apple.eawt.Application.getApplication().run {
4
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
12 setAboutHandler(AboutHandler { showAboutDialog() })
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
13 setPreferencesHandler(
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
14 PreferencesHandler { Application.settingsDialog.setVisible(true) })
9
0a106e9b91b4 Fix table layout; fix "select all for deletion" feature.
David Barts <n5jrn@me.com>
parents: 6
diff changeset
15 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS)
4
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
16 }
ba5dc14652da Commit correct Osdep files.
David Barts <n5jrn@me.com>
parents:
diff changeset
17 }