Subversion Repositories svn.mios

Rev

Rev 692 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 692 Rev 738
Line 30... Line 30...
30
import java.awt.event.MouseListener;
30
import java.awt.event.MouseListener;
31
import java.util.EventObject;
31
import java.util.EventObject;
32
import java.util.Observable;
32
import java.util.Observable;
33
import java.util.Observer;
33
import java.util.Observer;
34
34
35
import javax.swing.JList;
-
 
36
import javax.swing.JMenu;
35
import javax.swing.JMenu;
37
import javax.swing.JMenuItem;
36
import javax.swing.JMenuItem;
38
import javax.swing.JPanel;
37
import javax.swing.JPanel;
39
import javax.swing.JPopupMenu;
38
import javax.swing.JPopupMenu;
40
import javax.swing.JScrollPane;
39
import javax.swing.JScrollPane;
Line 133... Line 132...
133
    public int[] getSelectedRows() {
132
    public int[] getSelectedRows() {
134
        return table.getSelectedRows();
133
        return table.getSelectedRows();
135
    }
134
    }
136
135
137
    private void maybeShowPopup(MouseEvent e) {
136
    private void maybeShowPopup(MouseEvent e) {
138
       
-
 
139
       
137
140
        if (e.getButton() == MouseEvent.BUTTON3) {
138
        if (e.getButton() == MouseEvent.BUTTON3) {
141
           
139
142
            JTable source = (JTable) e.getSource();
140
            JTable source = (JTable) e.getSource();
143
           
141
Line 362... Line 360...
362
        }
360
        }
363
        sidLibController.setCurrentPatchNumber(patchNumber);
361
        sidLibController.setCurrentPatchNumber(patchNumber);
364
    }
362
    }
365
363
366
    public void keyPressed(KeyEvent e) {
364
    public void keyPressed(KeyEvent e) {
-
 
365
        if ((e.getKeyCode() == KeyEvent.VK_E)
367
        if ((e.getKeyCode() == KeyEvent.VK_E) && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
366
                && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
368
            sidLibController.editCurrentPatch();
367
            sidLibController.editCurrentPatch();
-
 
368
        } else if ((e.getKeyCode() == KeyEvent.VK_R)
369
        } else if ((e.getKeyCode() == KeyEvent.VK_R) && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
369
                && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
370
            sidLibController.editRename();
370
            sidLibController.editRename();
-
 
371
        } else if ((e.getKeyCode() == KeyEvent.VK_X)
371
        } else if ((e.getKeyCode() == KeyEvent.VK_X) && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
372
                && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
372
            sidLibController.editCut();
373
            sidLibController.editCut();
-
 
374
        } else if ((e.getKeyCode() == KeyEvent.VK_C)
373
        } else if ((e.getKeyCode() == KeyEvent.VK_C) && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
375
                && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
374
            sidLibController.editCopy();
376
            sidLibController.editCopy();
-
 
377
        } else if ((e.getKeyCode() == KeyEvent.VK_V)
375
        } else if ((e.getKeyCode() == KeyEvent.VK_V) && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
378
                && (e.getModifiers() == ActionEvent.CTRL_MASK)) {
376
            sidLibController.editPaste();
379
            sidLibController.editPaste();
377
        }
380
        }
378
    }
381
    }
379
382
380
    public void keyReleased(KeyEvent e) {
383
    public void keyReleased(KeyEvent e) {