Skip to content

Commit

Permalink
Pseudo-disable paste previous action
Browse files Browse the repository at this point in the history
  • Loading branch information
GenieTim committed Aug 14, 2020
1 parent 41fc96d commit 8c9f651
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,20 +254,20 @@ public void actionPerformed(ActionEvent actionEvent) {
gotoPreviousSpecimen();
}
});
registerShortcut("specimen.copyThis", "ctrl alt C", new AbstractAction() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
ImageCaptureApp.lastEditedSpecimenCache = thisPane.specimen;
thisPane.setStatus("Copied specimen with id " + thisPane.specimen.getSpecimenId());
}
});
registerShortcut("specimen.paste", "ctrl alt V", new AbstractAction() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
previousSpecimen = ImageCaptureApp.lastEditedSpecimenCache;
pastePreviousRecord();
}
});
// registerShortcut("specimen.copyThis", "ctrl alt C", new AbstractAction() {
// @Override
// public void actionPerformed(ActionEvent actionEvent) {
// ImageCaptureApp.lastEditedSpecimenCache = thisPane.specimen;
// thisPane.setStatus("Copied specimen with id " + thisPane.specimen.getSpecimenId());
// }
// });
// registerShortcut("specimen.paste", "ctrl alt V", new AbstractAction() {
// @Override
// public void actionPerformed(ActionEvent actionEvent) {
// previousSpecimen = ImageCaptureApp.lastEditedSpecimenCache;
// pastePreviousRecord();
// }
// });
}

void registerShortcut(String name, String defaultStroke, Action action) {
Expand Down Expand Up @@ -968,11 +968,11 @@ private JPanel getJPanel() {
this.addBasicJLabel(jPanel, "Questions");
jPanel.add(this.getQuestionsJTextField(), "grow, span 3");
// section: controls
jPanel.add(this.getJButtonPaste(), "span, split 6"); //, sizegroup controls");
jPanel.add(this.getJButtonHistory());//, "sizegroup controls");
//jPanel.add(this.getJButtonPaste(), "span, split 6"); //, sizegroup controls");
jPanel.add(this.getJButtonHistory(), "span, split 4");//, "sizegroup controls");
jPanel.add(this.getJButtonPrevious(), "tag back");
jPanel.add(this.getJButtonNext(), "tag next");
jPanel.add(this.getJButtonCopySave(), "tag apply");//, "sizegroup controls");
//jPanel.add(this.getJButtonCopySave(), "tag apply");//, "sizegroup controls");
jPanel.add(this.getSaveJButton(), "tag apply");//, "sizegroup controls");
}
return jPanel;
Expand Down

0 comments on commit 8c9f651

Please sign in to comment.