/[svn]/jsampler/trunk/src/org/jsampler/view/fantasia/PrefsDlg.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/view/fantasia/PrefsDlg.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1870 by iliev, Wed Dec 24 17:29:47 2008 UTC revision 1871 by iliev, Sun Mar 22 18:11:39 2009 UTC
# Line 1  Line 1 
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   *   *
# Line 44  import net.sf.juife.JuifeUtils; Line 44  import net.sf.juife.JuifeUtils;
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;
# Line 283  class ViewPane extends JPanel { Line 282  class ViewPane extends JPanel {
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                    
# Line 312  class ViewPane extends JPanel { Line 314  class ViewPane extends JPanel {
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);
# Line 329  class ViewPane extends JPanel { Line 337  class ViewPane extends JPanel {
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();

Legend:
Removed from v.1870  
changed lines
  Added in v.1871

  ViewVC Help
Powered by ViewVC