mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
First version able to create sequential logic.
This commit is contained in:
parent
872a11ccf9
commit
c3ebfe1acc
@ -100,8 +100,6 @@ public class TruthTable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new variable
|
* Adds a new variable
|
||||||
*
|
|
||||||
* @return this for call chaining
|
|
||||||
*/
|
*/
|
||||||
public void addVariable() {
|
public void addVariable() {
|
||||||
addVariable("A");
|
addVariable("A");
|
||||||
|
@ -142,20 +142,21 @@ public class TableDialog extends JDialog {
|
|||||||
}
|
}
|
||||||
}.setToolTip(Lang.get("menu_table_create_tt")).createJMenuItem());
|
}.setToolTip(Lang.get("menu_table_create_tt")).createJMenuItem());
|
||||||
|
|
||||||
if (Main.enableExperimental()) {
|
createMenu.add(new ToolTipAction(Lang.get("menu_table_createTwo")) {
|
||||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createTwo")) {
|
@Override
|
||||||
@Override
|
public void actionPerformed(ActionEvent actionEvent) {
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
createCircuit(new TwoInputs());
|
||||||
createCircuit(new TwoInputs());
|
}
|
||||||
}
|
}.setToolTip(Lang.get("menu_table_createTwo_tt")).createJMenuItem());
|
||||||
}.setToolTip(Lang.get("menu_table_createTwo_tt")).createJMenuItem());
|
|
||||||
|
|
||||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAnd")) {
|
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAnd")) {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent actionEvent) {
|
public void actionPerformed(ActionEvent actionEvent) {
|
||||||
createCircuit(new NAnd());
|
createCircuit(new NAnd());
|
||||||
}
|
}
|
||||||
}.setToolTip(Lang.get("menu_table_createNAnd_tt")).createJMenuItem());
|
}.setToolTip(Lang.get("menu_table_createNAnd_tt")).createJMenuItem());
|
||||||
|
|
||||||
|
if (Main.enableExperimental()) {
|
||||||
|
|
||||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAndTwo")) {
|
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAndTwo")) {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user