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; |
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; |
230 |
screen.installListeners(); |
screen.installListeners(); |
231 |
|
|
232 |
addEnhancedMouseListener(channel.getContextMenu()); |
addEnhancedMouseListener(channel.getContextMenu()); |
233 |
|
addEnhancedMouseListener(getHandler()); |
234 |
} |
} |
235 |
|
|
236 |
public void |
public void |
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 |
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 |
|
|