Add icons for simulation popup actions
This commit is contained in:
parent
c69455545c
commit
2ab1bee92c
BIN
core/resources/pix/icons/sim-plot.png
Normal file
BIN
core/resources/pix/icons/sim-plot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
core/resources/pix/icons/sim-run.png
Normal file
BIN
core/resources/pix/icons/sim-run.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
@ -773,6 +773,9 @@ public class SimulationPanel extends JPanel {
|
||||
class EditSimulationAction extends AbstractAction {
|
||||
public EditSimulationAction() {
|
||||
putValue(NAME, trans.get("simpanel.pop.edit"));
|
||||
this.putValue(MNEMONIC_KEY, KeyEvent.VK_E);
|
||||
this.putValue(ACCELERATOR_KEY, RocketActions.EDIT_KEY_STROKE);
|
||||
this.putValue(SMALL_ICON, Icons.EDIT_EDIT);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -784,6 +787,7 @@ public class SimulationPanel extends JPanel {
|
||||
class RunSimulationAction extends AbstractAction {
|
||||
public RunSimulationAction() {
|
||||
putValue(NAME, trans.get("simpanel.pop.run"));
|
||||
putValue(SMALL_ICON, Icons.SIM_RUN);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -795,6 +799,9 @@ public class SimulationPanel extends JPanel {
|
||||
class DeleteSimulationAction extends AbstractAction {
|
||||
public DeleteSimulationAction() {
|
||||
putValue(NAME, trans.get("simpanel.pop.delete"));
|
||||
putValue(MNEMONIC_KEY, KeyEvent.VK_D);
|
||||
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));
|
||||
putValue(SMALL_ICON, Icons.EDIT_DELETE);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -806,6 +813,7 @@ public class SimulationPanel extends JPanel {
|
||||
class PlotSimulationAction extends AbstractAction {
|
||||
public PlotSimulationAction() {
|
||||
putValue(NAME, trans.get("simpanel.pop.plot"));
|
||||
putValue(SMALL_ICON, Icons.SIM_PLOT);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -817,6 +825,9 @@ public class SimulationPanel extends JPanel {
|
||||
class DuplicateSimulationAction extends AbstractAction {
|
||||
public DuplicateSimulationAction() {
|
||||
putValue(NAME, trans.get("simpanel.pop.duplicate"));
|
||||
putValue(MNEMONIC_KEY, KeyEvent.VK_D);
|
||||
putValue(ACCELERATOR_KEY, RocketActions.DUPLICATE_KEY_STROKE);
|
||||
putValue(SMALL_ICON, Icons.EDIT_DUPLICATE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -65,6 +65,9 @@ public class Icons {
|
||||
public static final Icon EDIT_DUPLICATE = loadImageIcon("pix/icons/edit-duplicate.png", "Duplicate");
|
||||
public static final Icon EDIT_DELETE = loadImageIcon("pix/icons/edit-delete.png", "Delete");
|
||||
public static final Icon EDIT_SCALE = loadImageIcon("pix/icons/edit-scale.png", "Scale");
|
||||
|
||||
public static final Icon SIM_RUN = loadImageIcon("pix/icons/sim-run.png", "Run");
|
||||
public static final Icon SIM_PLOT = loadImageIcon("pix/icons/sim-plot.png", "Plot");
|
||||
|
||||
public static final Icon HELP_ABOUT = loadImageIcon("pix/icons/help-about.png", "About");
|
||||
public static final Icon HELP_LICENSE = loadImageIcon("pix/icons/help-license.png", "License");
|
||||
|
Loading…
x
Reference in New Issue
Block a user