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

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

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

revision 1313 by iliev, Thu Aug 30 22:44:29 2007 UTC revision 1567 by iliev, Thu Dec 6 19:37:41 2007 UTC
# Line 190  class GeneralPane extends JPanel { Line 190  class GeneralPane extends JPanel {
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                    
# Line 224  class GeneralPane extends JPanel { Line 229  class GeneralPane extends JPanel {
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);
# Line 238  class GeneralPane extends JPanel { Line 252  class GeneralPane extends JPanel {
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();

Legend:
Removed from v.1313  
changed lines
  Added in v.1567

  ViewVC Help
Powered by ViewVC