mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-29 07:50:29 -04:00
added some more shortcuts
This commit is contained in:
parent
e03a0b06ab
commit
91cac1587c
@ -280,19 +280,19 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
|||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
circuitComponent.fitCircuit();
|
circuitComponent.fitCircuit();
|
||||||
}
|
}
|
||||||
};
|
}.setAccelerator("F1");
|
||||||
ToolTipAction zoomIn = new ToolTipAction(Lang.get("menu_zoomIn"), ICON_ZOOM_IN) {
|
ToolTipAction zoomIn = new ToolTipAction(Lang.get("menu_zoomIn"), ICON_ZOOM_IN) {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
circuitComponent.scaleCircuit(1.25);
|
circuitComponent.scaleCircuit(1.25);
|
||||||
}
|
}
|
||||||
};
|
}.setAccelerator("control PLUS");
|
||||||
ToolTipAction zoomOut = new ToolTipAction(Lang.get("menu_zoomOut"), ICON_ZOOM_OUT) {
|
ToolTipAction zoomOut = new ToolTipAction(Lang.get("menu_zoomOut"), ICON_ZOOM_OUT) {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
circuitComponent.scaleCircuit(0.8);
|
circuitComponent.scaleCircuit(0.8);
|
||||||
}
|
}
|
||||||
};
|
}.setAccelerator("control MINUS");
|
||||||
|
|
||||||
ToolTipAction viewHelp = new ToolTipAction(Lang.get("menu_viewHelp"), ICON_HELP) {
|
ToolTipAction viewHelp = new ToolTipAction(Lang.get("menu_viewHelp"), ICON_HELP) {
|
||||||
@Override
|
@Override
|
||||||
@ -337,6 +337,8 @@ public final class Main extends JFrame implements ClosingWindowListener.ConfirmS
|
|||||||
}
|
}
|
||||||
revalidate();
|
revalidate();
|
||||||
});
|
});
|
||||||
|
treeCheckBox.setAccelerator(KeyStroke.getKeyStroke("F5"));
|
||||||
|
|
||||||
if (Settings.getInstance().get(Keys.SETTINGS_DEFAULT_TREESELECT))
|
if (Settings.getInstance().get(Keys.SETTINGS_DEFAULT_TREESELECT))
|
||||||
treeCheckBox.doClick();
|
treeCheckBox.doClick();
|
||||||
|
|
||||||
|
@ -253,5 +253,9 @@
|
|||||||
<shortcut key="Rückschritt">Löschen der selektierten Elemente.</shortcut>
|
<shortcut key="Rückschritt">Löschen der selektierten Elemente.</shortcut>
|
||||||
<shortcut key="+">Erhöht die Anzahl der Eingänge in dem Element auf welches die Maus zeigt.</shortcut>
|
<shortcut key="+">Erhöht die Anzahl der Eingänge in dem Element auf welches die Maus zeigt.</shortcut>
|
||||||
<shortcut key="-">Erniedrigt die Anzahl der Eingänge in dem Element auf welches die Maus zeigt.</shortcut>
|
<shortcut key="-">Erniedrigt die Anzahl der Eingänge in dem Element auf welches die Maus zeigt.</shortcut>
|
||||||
|
<shortcut key="STRG +">Vergrößern</shortcut>
|
||||||
|
<shortcut key="STRG -">Verkleinern</shortcut>
|
||||||
|
<shortcut key="F1">Einpassen</shortcut>
|
||||||
|
<shortcut key="F5">Baumansicht der Bauteile ein- oder ausblenden</shortcut>
|
||||||
</chapter>
|
</chapter>
|
||||||
</root>
|
</root>
|
||||||
|
@ -242,5 +242,9 @@
|
|||||||
<shortcut key="Backspace">Removes the selected components.</shortcut>
|
<shortcut key="Backspace">Removes the selected components.</shortcut>
|
||||||
<shortcut key="+">Increases the number of inputs at the component the mouse points to.</shortcut>
|
<shortcut key="+">Increases the number of inputs at the component the mouse points to.</shortcut>
|
||||||
<shortcut key="-">Decreases the number of inputs at the component the mouse points to.</shortcut>
|
<shortcut key="-">Decreases the number of inputs at the component the mouse points to.</shortcut>
|
||||||
|
<shortcut key="CTRL +">Zoom In</shortcut>
|
||||||
|
<shortcut key="CTRL -">Zoom Out</shortcut>
|
||||||
|
<shortcut key="F1">Fit to size</shortcut>
|
||||||
|
<shortcut key="F5">Show or hide the components tree view</shortcut>
|
||||||
</chapter>
|
</chapter>
|
||||||
</root>
|
</root>
|
Loading…
x
Reference in New Issue
Block a user