comparison src/name/blackcap/imageprep/Menus.kt @ 20:71029c9bf7cd

Commit overlooked files.
author David Barts <n5jrn@me.com>
date Sat, 21 Nov 2020 10:15:35 -0800
parents 5fa5d15b4a7b
children d3979a2155a8
comparison
equal deleted inserted replaced
19:5fa5d15b4a7b 20:71029c9bf7cd
83 } 83 }
84 84
85 private fun doOpen() { 85 private fun doOpen() {
86 val maxDim = MaxDimSpinner(Application.settingsDialog.maxDimension) 86 val maxDim = MaxDimSpinner(Application.settingsDialog.maxDimension)
87 val acc = JPanel().apply { 87 val acc = JPanel().apply {
88 layout = BoxLayout(this, BoxLayout.X_AXIS) 88 layout = BoxLayout(this, BoxLayout.Y_AXIS)
89 add(JLabel("Max. dimension:")) 89 add(JLabel("Max. dimension:"))
90 add(maxDim) 90 add(maxDim)
91 } 91 }
92 val chooser = JFileChooser().apply { 92 val chooser = JFileChooser().apply {
93 accessory = acc 93 accessory = acc
121 Toolkit.getDefaultToolkit().beep() 121 Toolkit.getDefaultToolkit().beep()
122 return 122 return
123 } 123 }
124 val outQual = OutQualSpinner(Application.settingsDialog.outputQuality) 124 val outQual = OutQualSpinner(Application.settingsDialog.outputQuality)
125 val acc = JPanel().apply { 125 val acc = JPanel().apply {
126 layout = BoxLayout(this, BoxLayout.X_AXIS) 126 layout = BoxLayout(this, BoxLayout.Y_AXIS)
127 add(JLabel("Quality:")) 127 add(JLabel("Quality:"))
128 add(outQual) 128 add(outQual)
129 } 129 }
130 val outName = splitext(w.file.name).first + Application.settingsDialog.outputSuffix + ".jpg" 130 val outName = splitext(w.file.name).first + Application.settingsDialog.outputSuffix + ".jpg"
131 val chooser = JFileChooser().apply { 131 val chooser = JFileChooser().apply {