/[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 1734 by iliev, Sun May 4 18:40:13 2008 UTC revision 1735 by iliev, Sun May 4 18:58:16 2008 UTC
# Line 104  public class NormalChannelView extends P Line 104  public class NormalChannelView extends P
104                  this.channel = channel;                  this.channel = channel;
105                  this.channelOptionsView = channelOptionsView;                  this.channelOptionsView = channelOptionsView;
106                                    
                 addMouseListener(channel.getContextMenu());  
                   
107                  btnPower = new Channel.PowerButton(channel);                  btnPower = new Channel.PowerButton(channel);
108                  components.add(btnPower);                  components.add(btnPower);
109                  btnOptions = new Channel.OptionsButton(channel);                  btnOptions = new Channel.OptionsButton(channel);
# Line 241  public class NormalChannelView extends P Line 239  public class NormalChannelView extends P
239                  });                  });
240                                    
241                  screen.installListeners();                  screen.installListeners();
242                    
243                    addEnhancedMouseListener(channel.getContextMenu());
244          }          }
245                    
246          public void          public void
247          uninstallView() {          uninstallView() {
248                  screen.onDestroy();                  screen.onDestroy();
249                    //removeEnhancedMouseListener(channel.getContextMenu());
250          }          }
251                    
252          public ChannelOptionsView          public ChannelOptionsView
# Line 498  class ChannelScreen extends PixmapPane { Line 499  class ChannelScreen extends PixmapPane {
499                  components.add(this);                  components.add(this);
500                                    
501                  this.channel = channel;                  this.channel = channel;
                 addMouseListener(channel.getContextMenu());  
502                                    
503                  streamVoiceCountPane = new Channel.StreamVoiceCountPane(channel);                  streamVoiceCountPane = new Channel.StreamVoiceCountPane(channel);
504                  components.add(streamVoiceCountPane);                  components.add(streamVoiceCountPane);
# Line 513  class ChannelScreen extends PixmapPane { Line 513  class ChannelScreen extends PixmapPane {
513                  btnInstr.setAlignmentX(CENTER_ALIGNMENT);                  btnInstr.setAlignmentX(CENTER_ALIGNMENT);
514                  btnInstr.setRolloverEnabled(false);                  btnInstr.setRolloverEnabled(false);
515                  btnInstr.setBorder(BorderFactory.createEmptyBorder(3, 0, 0, 0));                  btnInstr.setBorder(BorderFactory.createEmptyBorder(3, 0, 0, 0));
                 btnInstr.addMouseListener(channel.getContextMenu());  
516                  components.add(btnInstr);                  components.add(btnInstr);
517                                    
518                  instrumentPane = new InstrumentPane();                  instrumentPane = new InstrumentPane();
# Line 535  class ChannelScreen extends PixmapPane { Line 534  class ChannelScreen extends PixmapPane {
534                          }                          }
535                  });                  });
536                                    
                 btnFxSends.addMouseListener(channel.getContextMenu());  
                   
537                  p.add(btnFxSends);                  p.add(btnFxSends);
538                                    
539                  //p.add(Box.createRigidArea(new Dimension(6, 0)));                  //p.add(Box.createRigidArea(new Dimension(6, 0)));
# Line 545  class ChannelScreen extends PixmapPane { Line 542  class ChannelScreen extends PixmapPane {
542                  components.add(btnEngine);                  components.add(btnEngine);
543                  btnEngine.setIcon(Res.iconEngine12);                  btnEngine.setIcon(Res.iconEngine12);
544                  btnEngine.setIconTextGap(1);                  btnEngine.setIconTextGap(1);
                 btnEngine.addMouseListener(channel.getContextMenu());  
545                  p.add(btnEngine);                  p.add(btnEngine);
546                  //p.add(new Label("|"));                  //p.add(new Label("|"));
547                                    

Legend:
Removed from v.1734  
changed lines
  Added in v.1735

  ViewVC Help
Powered by ViewVC