mirror of
https://github.com/hneemann/Digital.git
synced 2025-10-02 17:31:46 -04:00
removed shortcut 'B'
This commit is contained in:
parent
5a0204ace5
commit
fc062f33c3
@ -3,6 +3,8 @@ Release Notes
|
|||||||
HEAD, planned as v0.15
|
HEAD, planned as v0.15
|
||||||
- Added an EEPROM which behaves like a memory that can be written and whose content
|
- Added an EEPROM which behaves like a memory that can be written and whose content
|
||||||
is non-volatile.
|
is non-volatile.
|
||||||
|
- Replaced shortcut 'B' with a more general attribute editing dialog (select
|
||||||
|
and left click).
|
||||||
|
|
||||||
v0.14, released on 31. Aug 2017
|
v0.14, released on 31. Aug 2017
|
||||||
- Added visualization of KV maps (thanks to roy77)
|
- Added visualization of KV maps (thanks to roy77)
|
||||||
|
@ -188,8 +188,6 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
|
|||||||
new PlusMinusAction(1).setAccelerator("PLUS").enableAcceleratorIn(this);
|
new PlusMinusAction(1).setAccelerator("PLUS").enableAcceleratorIn(this);
|
||||||
new PlusMinusAction(-1).setAccelerator("MINUS").enableAcceleratorIn(this);
|
new PlusMinusAction(-1).setAccelerator("MINUS").enableAcceleratorIn(this);
|
||||||
|
|
||||||
new BitSetAction().setAccelerator("B").enableAcceleratorIn(this);
|
|
||||||
|
|
||||||
new ToolTipAction(Lang.get("menu_programDiode")) {
|
new ToolTipAction(Lang.get("menu_programDiode")) {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) { // is allowed also if locked!
|
public void actionPerformed(ActionEvent e) { // is allowed also if locked!
|
||||||
@ -1045,38 +1043,6 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private final class BitSetAction extends ToolTipAction {
|
|
||||||
|
|
||||||
private BitSetAction() {
|
|
||||||
super("setBits");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void actionPerformed(ActionEvent e) {
|
|
||||||
if (!isLocked()) {
|
|
||||||
if (activeMouseController instanceof MouseControllerSelect) {
|
|
||||||
MouseControllerSelect mouseControllerSelect = (MouseControllerSelect) activeMouseController;
|
|
||||||
String num = JOptionPane.showInputDialog(CircuitComponent.this, Lang.get("key_Bits"), "1");
|
|
||||||
if (num != null) {
|
|
||||||
try {
|
|
||||||
int bits = Integer.decode(num);
|
|
||||||
Vector c1 = mouseControllerSelect.corner1;
|
|
||||||
Vector c2 = mouseControllerSelect.corner2;
|
|
||||||
ModifySetBits modifySetBits = new ModifySetBits(c1, c2, bits);
|
|
||||||
if (modifySetBits.isSomethingToDo(circuit, library))
|
|
||||||
modify(modifySetBits);
|
|
||||||
removeHighLighted();
|
|
||||||
mouseNormal.activate();
|
|
||||||
} catch (NumberFormatException ex) {
|
|
||||||
new ErrorMessage(Lang.get("msg_stringIsNotANumber_N", num)).show(CircuitComponent.this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private class MouseDispatcher extends MouseAdapter implements MouseMotionListener {
|
private class MouseDispatcher extends MouseAdapter implements MouseMotionListener {
|
||||||
private Vector pos;
|
private Vector pos;
|
||||||
private boolean isMoved;
|
private boolean isMoved;
|
||||||
|
@ -1015,7 +1015,6 @@ eine <a href="https://github.com/hneemann/Digital/issues/new?labels=enha
|
|||||||
<string name="msg_modelHasErrors">Es kann nur eine fehlerfreie Schaltung exportiert werden!</string>
|
<string name="msg_modelHasErrors">Es kann nur eine fehlerfreie Schaltung exportiert werden!</string>
|
||||||
<string name="msg_noKVMapAvailable">Keine KV-Tafel verfügbar!</string>
|
<string name="msg_noKVMapAvailable">Keine KV-Tafel verfügbar!</string>
|
||||||
<string name="msg_dataNotUpdatedAnymore">Daten werden nicht mehr aktualisiert!</string>
|
<string name="msg_dataNotUpdatedAnymore">Daten werden nicht mehr aktualisiert!</string>
|
||||||
<string name="msg_stringIsNotANumber_N">Der String {0} ist keine Zahl!</string>
|
|
||||||
|
|
||||||
<string name="ok">Ok</string>
|
<string name="ok">Ok</string>
|
||||||
<string name="rot_0">0°</string>
|
<string name="rot_0">0°</string>
|
||||||
|
@ -921,7 +921,6 @@ The names of the variables may not be unique.</string>
|
|||||||
<string name="menu_pdfDocumentation">Documentation</string>
|
<string name="menu_pdfDocumentation">Documentation</string>
|
||||||
<string name="menu_openPdfDocumentation">Open {0}</string>
|
<string name="menu_openPdfDocumentation">Open {0}</string>
|
||||||
<string name="msg_errorOpeningDocumentation">Error opening a PDF file!</string>
|
<string name="msg_errorOpeningDocumentation">Error opening a PDF file!</string>
|
||||||
<string name="msg_stringIsNotANumber_N">The string {0} is not a number!</string>
|
|
||||||
|
|
||||||
<string name="message"><h1>Digital</h1>A simple simulator for digital circuits.
|
<string name="message"><h1>Digital</h1>A simple simulator for digital circuits.
|
||||||
Written by H. Neemann in 2016, 2017.
|
Written by H. Neemann in 2016, 2017.
|
||||||
|
@ -388,7 +388,6 @@
|
|||||||
<shortcut key="STRG-S">Speichern der Schaltung.</shortcut>
|
<shortcut key="STRG-S">Speichern der Schaltung.</shortcut>
|
||||||
<shortcut key="STRG-Z">Letzte Änderung zurücknehmen.</shortcut>
|
<shortcut key="STRG-Z">Letzte Änderung zurücknehmen.</shortcut>
|
||||||
<shortcut key="STRG-Y">Zurückgenommene Änderung erneut anwenden.</shortcut>
|
<shortcut key="STRG-Y">Zurückgenommene Änderung erneut anwenden.</shortcut>
|
||||||
<shortcut key="B">Anzahl der Datenbits in allen selektierten Elementen setzen.</shortcut>
|
|
||||||
<shortcut key="P">Programmieren einer Diode oder eines FG-FET.</shortcut>
|
<shortcut key="P">Programmieren einer Diode oder eines FG-FET.</shortcut>
|
||||||
<shortcut key="D">Beim Ziehen einer rechteckigen Leitung in den Diagonalmodus wechseln.</shortcut>
|
<shortcut key="D">Beim Ziehen einer rechteckigen Leitung in den Diagonalmodus wechseln.</shortcut>
|
||||||
<shortcut key="F">Beim Ziehen einer rechteckigen Leitung die Orientierung wechseln.</shortcut>
|
<shortcut key="F">Beim Ziehen einer rechteckigen Leitung die Orientierung wechseln.</shortcut>
|
||||||
|
@ -326,7 +326,6 @@
|
|||||||
<shortcut key="CTRL-S">Save the circuit.</shortcut>
|
<shortcut key="CTRL-S">Save the circuit.</shortcut>
|
||||||
<shortcut key="CTRL-Z">Undo last modification.</shortcut>
|
<shortcut key="CTRL-Z">Undo last modification.</shortcut>
|
||||||
<shortcut key="CTRL-Y">Redo the last undone modification.</shortcut>
|
<shortcut key="CTRL-Y">Redo the last undone modification.</shortcut>
|
||||||
<shortcut key="B">Set the number of data bits in all selected components.</shortcut>
|
|
||||||
<shortcut key="P">Programs a diode or a FG-FET.</shortcut>
|
<shortcut key="P">Programs a diode or a FG-FET.</shortcut>
|
||||||
<shortcut key="D">While drawing a wire switches to the diagonal mode.</shortcut>
|
<shortcut key="D">While drawing a wire switches to the diagonal mode.</shortcut>
|
||||||
<shortcut key="F">While drawing a line flips the orientation.</shortcut>
|
<shortcut key="F">While drawing a line flips the orientation.</shortcut>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user