111 |
import org.linuxsampler.lscp.SamplerEngine; |
import org.linuxsampler.lscp.SamplerEngine; |
112 |
|
|
113 |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
import static org.jsampler.view.classic.ClassicI18n.i18n; |
114 |
|
import static org.jsampler.view.classic.ClassicPrefs.preferences; |
115 |
|
import static org.jsampler.view.std.StdPrefs.*; |
116 |
|
|
117 |
|
|
118 |
/** |
/** |
430 |
d = getPreferredSize(); |
d = getPreferredSize(); |
431 |
setMaximumSize(new Dimension(getMaximumSize().width, d.height)); |
setMaximumSize(new Dimension(getMaximumSize().width, d.height)); |
432 |
|
|
433 |
|
int i = preferences().getIntProperty(MAXIMUM_CHANNEL_VOLUME); |
434 |
|
slVolume.setMaximum(i); |
435 |
|
String mcv = MAXIMUM_CHANNEL_VOLUME; |
436 |
|
preferences().addPropertyChangeListener(mcv, new PropertyChangeListener() { |
437 |
|
public void |
438 |
|
propertyChange(PropertyChangeEvent e) { |
439 |
|
int j = preferences().getIntProperty(MAXIMUM_CHANNEL_VOLUME); |
440 |
|
slVolume.setMaximum(j); |
441 |
|
} |
442 |
|
}); |
443 |
|
|
444 |
getModel().addSamplerChannelListener(getHandler()); |
getModel().addSamplerChannelListener(getHandler()); |
445 |
|
|
446 |
actInstr = new AbstractAction() { |
actInstr = new AbstractAction() { |
707 |
else btnInstr.setText(i18n.getLabel("Channel.btnInstr")); |
else btnInstr.setText(i18n.getLabel("Channel.btnInstr")); |
708 |
} |
} |
709 |
|
|
710 |
|
boolean b = status == 100; |
711 |
|
if(btnEdit.isEnabled() != b) btnEdit.setEnabled(b); |
712 |
|
|
713 |
updateMuteIcon(sc); |
updateMuteIcon(sc); |
714 |
|
|
715 |
if(sc.isSoloChannel()) btnSolo.setIcon(iconSoloOn); |
if(sc.isSoloChannel()) btnSolo.setIcon(iconSoloOn); |
717 |
|
|
718 |
slVolume.setValue((int)(sc.getVolume() * 100)); |
slVolume.setValue((int)(sc.getVolume() * 100)); |
719 |
|
|
720 |
boolean b = sc.getEngine() != null; |
b = sc.getEngine() != null; |
721 |
slVolume.setEnabled(b); |
slVolume.setEnabled(b); |
722 |
btnSolo.setEnabled(b); |
btnSolo.setEnabled(b); |
723 |
btnMute.setEnabled(b); |
btnMute.setEnabled(b); |