190 |
private final JCheckBox checkShowLSConsoleWhenRunScript = |
private final JCheckBox checkShowLSConsoleWhenRunScript = |
191 |
new JCheckBox(i18n.getLabel("GeneralPane.checkShowLSConsoleWhenRunScript")); |
new JCheckBox(i18n.getLabel("GeneralPane.checkShowLSConsoleWhenRunScript")); |
192 |
|
|
193 |
|
private final JCheckBox checkShowVolumesInDecibels = |
194 |
|
new JCheckBox(i18n.getLabel("GeneralPane.checkShowVolumesInDecibels")); |
195 |
|
|
196 |
|
private final JSGeneralProps.MaxVolumePane maxVolPane = new JSGeneralProps.MaxVolumePane(); |
197 |
|
|
198 |
private final JSGeneralProps.JSamplerHomePane jSamplerHomePane = |
private final JSGeneralProps.JSamplerHomePane jSamplerHomePane = |
199 |
new JSGeneralProps.JSamplerHomePane(); |
new JSGeneralProps.JSamplerHomePane(); |
200 |
|
|
229 |
|
|
230 |
add(checkShowLSConsoleWhenRunScript); |
add(checkShowLSConsoleWhenRunScript); |
231 |
|
|
232 |
|
b = preferences().getBoolProperty(VOL_MEASUREMENT_UNIT_DECIBEL); |
233 |
|
checkShowVolumesInDecibels.setSelected(b); |
234 |
|
|
235 |
|
add(checkShowVolumesInDecibels); |
236 |
|
|
237 |
|
add(Box.createRigidArea(new Dimension(0, 6))); |
238 |
|
|
239 |
|
add(maxVolPane); |
240 |
|
|
241 |
add(Box.createRigidArea(new Dimension(0, 6))); |
add(Box.createRigidArea(new Dimension(0, 6))); |
242 |
|
|
243 |
add(jSamplerHomePane); |
add(jSamplerHomePane); |
252 |
|
|
253 |
protected void |
protected void |
254 |
apply() { |
apply() { |
255 |
|
maxVolPane.apply(); |
256 |
|
|
257 |
ClassicPrefs.setSaveWindowProperties(checkWindowSizeAndLocation.isSelected()); |
ClassicPrefs.setSaveWindowProperties(checkWindowSizeAndLocation.isSelected()); |
258 |
ClassicPrefs.setSaveLeftPaneState(checkLeftPaneState.isSelected()); |
ClassicPrefs.setSaveLeftPaneState(checkLeftPaneState.isSelected()); |
259 |
|
|
260 |
boolean b = checkShowLSConsoleWhenRunScript.isSelected(); |
boolean b = checkShowLSConsoleWhenRunScript.isSelected(); |
261 |
preferences().setBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT, b); |
preferences().setBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT, b); |
262 |
|
|
263 |
|
b = checkShowVolumesInDecibels.isSelected(); |
264 |
|
preferences().setBoolProperty(VOL_MEASUREMENT_UNIT_DECIBEL, b); |
265 |
|
|
266 |
int size = recentScriptsPane.getRecentScriptsSize(); |
int size = recentScriptsPane.getRecentScriptsSize(); |
267 |
preferences().setIntProperty(RECENT_LSCP_SCRIPTS_SIZE, size); |
preferences().setIntProperty(RECENT_LSCP_SCRIPTS_SIZE, size); |
268 |
((MainFrame)CC.getMainFrame()).updateRecentScriptsMenu(); |
((MainFrame)CC.getMainFrame()).updateRecentScriptsMenu(); |