1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
44 |
|
|
45 |
import org.jsampler.CC; |
import org.jsampler.CC; |
46 |
import org.jsampler.LSConsoleModel; |
import org.jsampler.LSConsoleModel; |
|
import org.jsampler.Prefs; |
|
47 |
|
|
48 |
import org.jsampler.view.std.JSAdvancedGeneralPropsDlg; |
import org.jsampler.view.std.JSAdvancedGeneralPropsDlg; |
49 |
import org.jsampler.view.std.JSConnectionPropsPane; |
import org.jsampler.view.std.JSConnectionPropsPane; |
282 |
private final JCheckBox checkShowInstrumentsDb = |
private final JCheckBox checkShowInstrumentsDb = |
283 |
new JCheckBox(i18n.getLabel("ViewPane.checkShowInstrumentsDb")); |
new JCheckBox(i18n.getLabel("ViewPane.checkShowInstrumentsDb")); |
284 |
|
|
285 |
|
private final JCheckBox checkUseNativeFileChoosers = |
286 |
|
new JCheckBox(i18n.getLabel("ViewPane.checkUseNativeFileChoosers")); |
287 |
|
|
288 |
private final JSViewProps.MidiDevicesPane midiDevsPane = new JSViewProps.MidiDevicesPane(); |
private final JSViewProps.MidiDevicesPane midiDevsPane = new JSViewProps.MidiDevicesPane(); |
289 |
private final JSViewProps.AudioDevicesPane audioDevsPane = new JSViewProps.AudioDevicesPane(); |
private final JSViewProps.AudioDevicesPane audioDevsPane = new JSViewProps.AudioDevicesPane(); |
290 |
|
|
314 |
checkShowInstrumentsDb.setAlignmentX(JPanel.LEFT_ALIGNMENT); |
checkShowInstrumentsDb.setAlignmentX(JPanel.LEFT_ALIGNMENT); |
315 |
add(checkShowInstrumentsDb); |
add(checkShowInstrumentsDb); |
316 |
add(Box.createRigidArea(new Dimension(0, 6))); |
add(Box.createRigidArea(new Dimension(0, 6))); |
317 |
|
|
318 |
|
b = preferences().getBoolProperty("nativeFileChoosers"); |
319 |
|
checkUseNativeFileChoosers.setSelected(b); |
320 |
|
checkUseNativeFileChoosers.setAlignmentX(JPanel.LEFT_ALIGNMENT); |
321 |
|
add(checkUseNativeFileChoosers); |
322 |
|
add(Box.createRigidArea(new Dimension(0, 6))); |
323 |
|
|
324 |
add(midiDevsPane); |
add(midiDevsPane); |
325 |
add(audioDevsPane); |
add(audioDevsPane); |
337 |
s = "rightSidePane.showInstrumentsDb"; |
s = "rightSidePane.showInstrumentsDb"; |
338 |
preferences().setBoolProperty(s, checkShowInstrumentsDb.isSelected()); |
preferences().setBoolProperty(s, checkShowInstrumentsDb.isSelected()); |
339 |
|
|
340 |
|
s = "nativeFileChoosers"; |
341 |
|
preferences().setBoolProperty(s, checkUseNativeFileChoosers.isSelected()); |
342 |
|
|
343 |
midiDevsPane.apply(); |
midiDevsPane.apply(); |
344 |
audioDevsPane.apply(); |
audioDevsPane.apply(); |
345 |
confirmationMessagesPane.apply(); |
confirmationMessagesPane.apply(); |