/[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 1356 by iliev, Thu Aug 30 22:44:29 2007 UTC revision 1357 by iliev, Sat Sep 22 17:27:06 2007 UTC
# Line 49  import org.jsampler.view.std.JSConnectio Line 49  import org.jsampler.view.std.JSConnectio
49  import org.jsampler.view.std.JSDefaultsPropsPane;  import org.jsampler.view.std.JSDefaultsPropsPane;
50  import org.jsampler.view.std.JSGeneralProps;  import org.jsampler.view.std.JSGeneralProps;
51  import org.jsampler.view.std.JSLSConsolePropsPane;  import org.jsampler.view.std.JSLSConsolePropsPane;
52    import org.jsampler.view.std.JSViewProps;
53    
54  import static org.jsampler.view.fantasia.FantasiaI18n.i18n;  import static org.jsampler.view.fantasia.FantasiaI18n.i18n;
55  import static org.jsampler.view.fantasia.FantasiaPrefs.*;  import static org.jsampler.view.fantasia.FantasiaPrefs.*;
# Line 60  import static org.jsampler.view.fantasia Line 61  import static org.jsampler.view.fantasia
61   */   */
62  public class PrefsDlg extends EnhancedDialog {  public class PrefsDlg extends EnhancedDialog {
63          private final GeneralPane genPane = new GeneralPane();          private final GeneralPane genPane = new GeneralPane();
64            private final ViewPane viewPane = new ViewPane();
65          private final ConsolePane consolePane = new ConsolePane();          private final ConsolePane consolePane = new ConsolePane();
66          private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane();          private final JSConnectionPropsPane connectionPane = new JSConnectionPropsPane();
67          private final JSDefaultsPropsPane defaultsPane;          private final JSDefaultsPropsPane defaultsPane;
# Line 77  public class PrefsDlg extends EnhancedDi Line 79  public class PrefsDlg extends EnhancedDi
79                                    
80                  JTabbedPane tp = new JTabbedPane();                  JTabbedPane tp = new JTabbedPane();
81                  tp.addTab(i18n.getLabel("PrefsDlg.tabGeneral"), genPane);                  tp.addTab(i18n.getLabel("PrefsDlg.tabGeneral"), genPane);
82                    tp.addTab(i18n.getLabel("PrefsDlg.tabView"), viewPane);
83                  tp.addTab(i18n.getLabel("PrefsDlg.tabConsole"), consolePane);                  tp.addTab(i18n.getLabel("PrefsDlg.tabConsole"), consolePane);
84                                    
85                  JPanel p = new JPanel();                  JPanel p = new JPanel();
# Line 141  public class PrefsDlg extends EnhancedDi Line 144  public class PrefsDlg extends EnhancedDi
144          private void          private void
145          onApply() {          onApply() {
146                  genPane.apply();                  genPane.apply();
147                    viewPane.apply();
148                  consolePane.apply();                  consolePane.apply();
149                  connectionPane.apply();                  connectionPane.apply();
150                  defaultsPane.apply();                  defaultsPane.apply();
# Line 159  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 JSGeneralProps.MaxVolumePane maxVolPane = new JSGeneralProps.MaxVolumePane();
167            
168          private final JSGeneralProps.JSamplerHomePane jSamplerHomePane =          private final JSGeneralProps.JSamplerHomePane jSamplerHomePane =
169                  new JSGeneralProps.JSamplerHomePane();                  new JSGeneralProps.JSamplerHomePane();
170                    
# Line 186  class GeneralPane extends JPanel { Line 192  class GeneralPane extends JPanel {
192                                    
193                  add(Box.createRigidArea(new Dimension(0, 6)));                  add(Box.createRigidArea(new Dimension(0, 6)));
194                                    
195                    add(maxVolPane);
196                    
197                    add(Box.createRigidArea(new Dimension(0, 6)));
198                    
199                  add(jSamplerHomePane);                  add(jSamplerHomePane);
200                                    
201                  add(Box.createRigidArea(new Dimension(0, 6)));                  add(Box.createRigidArea(new Dimension(0, 6)));
# Line 200  class GeneralPane extends JPanel { Line 210  class GeneralPane extends JPanel {
210                    
211          protected void          protected void
212          apply() {          apply() {
213                    maxVolPane.apply();
214                    
215                  boolean b = !checkTurnOffAnimationEffects.isSelected();                  boolean b = !checkTurnOffAnimationEffects.isSelected();
216                  preferences().setBoolProperty(ANIMATED, b);                  preferences().setBoolProperty(ANIMATED, b);
217                                    
# Line 224  class GeneralPane extends JPanel { Line 236  class GeneralPane extends JPanel {
236          }          }
237  }  }
238    
239    class ViewPane extends JPanel {
240            private final JSViewProps.MidiDevicesPane midiDevsPane = new JSViewProps.MidiDevicesPane();
241            private final JSViewProps.AudioDevicesPane audioDevsPane = new JSViewProps.AudioDevicesPane();
242            
243            ViewPane() {
244                    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
245                    add(midiDevsPane);
246                    add(audioDevsPane);
247            }
248            
249            protected void
250            apply() {
251                    midiDevsPane.apply();
252                    audioDevsPane.apply();
253            }
254    }
255    
256  class ConsolePane extends JSLSConsolePropsPane {  class ConsolePane extends JSLSConsolePropsPane {
257          protected void          protected void
258          clearConsoleHistory() {          clearConsoleHistory() {

Legend:
Removed from v.1356  
changed lines
  Added in v.1357

  ViewVC Help
Powered by ViewVC