/[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 1775 by iliev, Mon Sep 8 00:19:27 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 231  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 239  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 470  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.1775  
changed lines
  Added in v.1776

  ViewVC Help
Powered by ViewVC