cleanup of code
This commit is contained in:
parent
306e20d14f
commit
f5a4e3c39e
|
@ -277,42 +277,10 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
waveformPane.getWaveformControl().addMouseTrackListener(new MouseTrackListener() {
|
|
||||||
@Override
|
|
||||||
public void mouseHover(MouseEvent e) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void mouseExit(MouseEvent e) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public void mouseEnter(MouseEvent e) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
waveformPane.getWaveformControl().addMouseWheelListener(new MouseWheelListener() {
|
|
||||||
@Override
|
|
||||||
public void mouseScrolled(MouseEvent e) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
}
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
waveformPane.getWaveformControl().addListener(SWT.KeyDown, new Listener() {
|
waveformPane.getWaveformControl().addListener(SWT.KeyDown, new Listener() {
|
||||||
@Override
|
@Override
|
||||||
public void handleEvent(Event e) {
|
public void handleEvent(Event e) {
|
||||||
/*
|
|
||||||
String string = e.type == SWT.KeyDown ? "DOWN:" : "UP :";
|
|
||||||
string += " stateMask=0x" + Integer.toHexString (e.stateMask) + ","; // SWT.CTRL, SWT.ALT, SWT.SHIFT, SWT.COMMAND
|
|
||||||
string += " keyCode=0x" + Integer.toHexString (e.keyCode) + ",";
|
|
||||||
string += " character=0x" + Integer.toHexString (e.character) ;
|
|
||||||
if (e.keyLocation != 0) {
|
|
||||||
string += " location="+e.keyLocation;
|
|
||||||
}
|
|
||||||
System.out.println (string);
|
|
||||||
*/
|
|
||||||
if((e.stateMask&SWT.MOD3)!=0) { // Alt key
|
if((e.stateMask&SWT.MOD3)!=0) { // Alt key
|
||||||
} else if((e.stateMask&SWT.MOD1)!=0) { //Ctrl/Cmd
|
} else if((e.stateMask&SWT.MOD1)!=0) { //Ctrl/Cmd
|
||||||
int zoomlevel = waveformPane.getZoomLevel();
|
int zoomlevel = waveformPane.getZoomLevel();
|
||||||
|
|
Loading…
Reference in New Issue