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 |
* |
* |
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 |
|
|
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 |
|
|
265 |
} |
} |
266 |
}; |
}; |
267 |
|
|
268 |
((MainFrame)CC.getMainFrame()).getGuiTimer().addActionListener(guiListener); |
((MainFrame)SHF.getMainFrame()).getGuiTimer().addActionListener(guiListener); |
269 |
} |
} |
270 |
|
|
271 |
private void |
private void |
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()) { |
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 |
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 |
} |
} |