/[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 1496 by iliev, Mon Nov 19 22:22:22 2007 UTC revision 1540 by iliev, Mon Dec 3 23:22:02 2007 UTC
# Line 163  class GeneralPane extends JPanel { Line 163  class GeneralPane extends JPanel {
163          private final JCheckBox checkShowLSConsoleWhenRunScript =          private final JCheckBox checkShowLSConsoleWhenRunScript =
164                  new JCheckBox(i18n.getLabel("GeneralPane.checkShowLSConsoleWhenRunScript"));                  new JCheckBox(i18n.getLabel("GeneralPane.checkShowLSConsoleWhenRunScript"));
165                    
166            private final JCheckBox checkShowVolumesInDecibels =
167                    new JCheckBox(i18n.getLabel("GeneralPane.checkShowVolumesInDecibels"));
168            
169          private final JSGeneralProps.MaxVolumePane maxVolPane = new JSGeneralProps.MaxVolumePane();          private final JSGeneralProps.MaxVolumePane maxVolPane = new JSGeneralProps.MaxVolumePane();
170                    
171          private final JSGeneralProps.JSamplerHomePane jSamplerHomePane =          private final JSGeneralProps.JSamplerHomePane jSamplerHomePane =
# Line 192  class GeneralPane extends JPanel { Line 195  class GeneralPane extends JPanel {
195                                    
196                  add(Box.createRigidArea(new Dimension(0, 6)));                  add(Box.createRigidArea(new Dimension(0, 6)));
197                                    
198                    b = preferences().getBoolProperty(VOL_MEASUREMENT_UNIT_DECIBEL);
199                    checkShowVolumesInDecibels.setSelected(b);
200                    
201                    add(checkShowVolumesInDecibels);
202                    
203                    add(Box.createRigidArea(new Dimension(0, 6)));
204                    
205                  add(maxVolPane);                  add(maxVolPane);
206                                    
207                  add(Box.createRigidArea(new Dimension(0, 6)));                  add(Box.createRigidArea(new Dimension(0, 6)));
# Line 218  class GeneralPane extends JPanel { Line 228  class GeneralPane extends JPanel {
228                  b = checkShowLSConsoleWhenRunScript.isSelected();                  b = checkShowLSConsoleWhenRunScript.isSelected();
229                  preferences().setBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT, b);                  preferences().setBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT, b);
230                                    
231                    b = checkShowVolumesInDecibels.isSelected();
232                    preferences().setBoolProperty(VOL_MEASUREMENT_UNIT_DECIBEL, b);
233                    
234                  int size = recentScriptsPane.getRecentScriptsSize();                  int size = recentScriptsPane.getRecentScriptsSize();
235                  preferences().setIntProperty(RECENT_LSCP_SCRIPTS_SIZE, size);                  preferences().setIntProperty(RECENT_LSCP_SCRIPTS_SIZE, size);
236                  ((MainFrame)CC.getMainFrame()).updateRecentScriptsMenu();                  ((MainFrame)CC.getMainFrame()).updateRecentScriptsMenu();

Legend:
Removed from v.1496  
changed lines
  Added in v.1540

  ViewVC Help
Powered by ViewVC