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

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

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

revision 2287 by iliev, Mon Aug 3 14:54:18 2009 UTC revision 2288 by iliev, Wed Nov 23 21:19:44 2011 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-2011 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 70  import org.jsampler.view.std.JSFxSendsDl Line 70  import org.jsampler.view.std.JSFxSendsDl
70  import org.jsampler.view.std.JSFxSendsPane;  import org.jsampler.view.std.JSFxSendsPane;
71  import org.jsampler.view.std.JSInstrumentChooser;  import org.jsampler.view.std.JSInstrumentChooser;
72  import org.jsampler.view.std.JSVolumeEditorPopup;  import org.jsampler.view.std.JSVolumeEditorPopup;
73    import org.jsampler.view.swing.SHF;
74    import org.jsampler.view.swing.SwingChannel;
75    
76  import org.linuxsampler.lscp.SamplerChannel;  import org.linuxsampler.lscp.SamplerChannel;
77    
# Line 84  import static org.jsampler.view.std.JSVo Line 86  import static org.jsampler.view.std.JSVo
86   *   *
87   * @author Grigor Iliev   * @author Grigor Iliev
88   */   */
89  public class Channel extends JSChannel {  public class Channel extends SwingChannel {
90          private final JXCollapsiblePane mainPane;          private final JXCollapsiblePane mainPane;
91          private final ChannelOptionsPane optionsPane = new ChannelOptionsPane();          private final ChannelOptionsPane optionsPane = new ChannelOptionsPane();
92                    
# Line 263  public class Channel extends JSChannel { Line 265  public class Channel extends JSChannel {
265                          }                          }
266                  };                  };
267                                    
268                  ((MainFrame)CC.getMainFrame()).getGuiTimer().addActionListener(guiListener);                  ((MainFrame)SHF.getMainFrame()).getGuiTimer().addActionListener(guiListener);
269          }          }
270                    
271          private void          private void
# Line 338  public class Channel extends JSChannel { Line 340  public class Channel extends JSChannel {
340                    
341          public void          public void
342          loadInstrument() {          loadInstrument() {
343                  JSInstrumentChooser dlg = FantasiaUtils.createInstrumentChooser(CC.getMainFrame());                  JSInstrumentChooser dlg = FantasiaUtils.createInstrumentChooser(SHF.getMainFrame());
344                  dlg.setVisible(true);                  dlg.setVisible(true);
345                                    
346                  if(!dlg.isCancelled()) {                  if(!dlg.isCancelled()) {
# Line 786  public class Channel extends JSChannel { Line 788  public class Channel extends JSChannel {
788                  public void                  public void
789                  actionPerformed(ActionEvent e) {                  actionPerformed(ActionEvent e) {
790                          SamplerChannel c = getChannelInfo();                          SamplerChannel c = getChannelInfo();
791                          new JSChannelOutputRoutingDlg(CC.getMainFrame(), c).setVisible(true);                          new JSChannelOutputRoutingDlg(SHF.getMainFrame(), c).setVisible(true);
792                  }                  }
793                                    
794                  @Override                  @Override
# Line 1028  public class Channel extends JSChannel { Line 1030  public class Channel extends JSChannel {
1030                          boolean b = preferences().getBoolProperty(CONFIRM_CHANNEL_REMOVAL);                          boolean b = preferences().getBoolProperty(CONFIRM_CHANNEL_REMOVAL);
1031                          if(b) {                          if(b) {
1032                                  String s = i18n.getMessage("Channel.remove?", channel.getChannelId());                                  String s = i18n.getMessage("Channel.remove?", channel.getChannelId());
1033                                  if(!HF.showYesNoDialog(channel, s)) {                                  if(!SHF.showYesNoDialog(channel, s)) {
1034                                          setSelected(true);                                          setSelected(true);
1035                                          return;                                          return;
1036                                  }                                  }

Legend:
Removed from v.2287  
changed lines
  Added in v.2288

  ViewVC Help
Powered by ViewVC