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

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

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

revision 1743 by iliev, Sat May 31 23:04:01 2008 UTC revision 1776 by iliev, Thu Sep 11 18:48:36 2008 UTC
# Line 38  import java.beans.PropertyChangeListener Line 38  import java.beans.PropertyChangeListener
38    
39  import java.util.Vector;  import java.util.Vector;
40    
 import javax.swing.Action;  
41  import javax.swing.BorderFactory;  import javax.swing.BorderFactory;
42  import javax.swing.Box;  import javax.swing.Box;
43  import javax.swing.BoxLayout;  import javax.swing.BoxLayout;
# Line 53  import javax.swing.event.ChangeEvent; Line 52  import javax.swing.event.ChangeEvent;
52  import javax.swing.event.ChangeListener;  import javax.swing.event.ChangeListener;
53    
54  import net.sf.juife.Dial;  import net.sf.juife.Dial;
 import net.sf.juife.JuifeUtils;  
55    
56  import org.jsampler.CC;  import org.jsampler.CC;
 import org.jsampler.HF;  
 import org.jsampler.SamplerChannelModel;  
57    
58  import org.jvnet.substance.SubstanceImageCreator;  import org.jvnet.substance.utils.SubstanceImageCreator;
59    
60  import org.linuxsampler.lscp.SamplerChannel;  import org.linuxsampler.lscp.SamplerChannel;
61  import org.linuxsampler.lscp.SamplerEngine;  import org.linuxsampler.lscp.SamplerEngine;
# Line 234  public class NormalChannelView extends P Line 230  public class NormalChannelView extends P
230                  screen.installListeners();                  screen.installListeners();
231                                    
232                  addEnhancedMouseListener(channel.getContextMenu());                  addEnhancedMouseListener(channel.getContextMenu());
233                    addEnhancedMouseListener(getHandler());
234          }          }
235                    
236          public void          public void
# Line 242  public class NormalChannelView extends P Line 239  public class NormalChannelView extends P
239                  btnOptions.onDestroy();                  btnOptions.onDestroy();
240                  uninstallChannelOptionsView();                  uninstallChannelOptionsView();
241                  //removeEnhancedMouseListener(channel.getContextMenu());                  //removeEnhancedMouseListener(channel.getContextMenu());
242                    removeEnhancedMouseListener(getHandler());
243          }          }
244                    
245          public void          public void
# Line 473  public class NormalChannelView extends P Line 471  public class NormalChannelView extends P
471                  public boolean                  public boolean
472                  contains(int x, int y) { return (x > 5 && x < 23) && (y > 5 && y < 16); }                  contains(int x, int y) { return (x > 5 && x < 23) && (y > 5 && y < 16); }
473          }          }
474            
475            private final EventHandler eventHandler = new EventHandler();
476            
477            private EventHandler
478            getHandler() { return eventHandler; }
479            
480            private class EventHandler extends MouseAdapter {
481                    public void
482                    mouseClicked(MouseEvent e) {
483                            if(e.getButton() != e.BUTTON1) return;
484                            // TAG: channel selection system
485                            CC.getMainFrame().getChannelsPane(0).setSelectedChannel(channel);
486                            ///////
487                    }
488            }
489  }  }
490    
491    

Legend:
Removed from v.1743  
changed lines
  Added in v.1776

  ViewVC Help
Powered by ViewVC