mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 16:34:47 -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
|
||||
*
|
||||
* @return this for call chaining
|
||||
*/
|
||||
public void addVariable() {
|
||||
addVariable("A");
|
||||
|
@ -142,20 +142,21 @@ public class TableDialog extends JDialog {
|
||||
}
|
||||
}.setToolTip(Lang.get("menu_table_create_tt")).createJMenuItem());
|
||||
|
||||
if (Main.enableExperimental()) {
|
||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createTwo")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
createCircuit(new TwoInputs());
|
||||
}
|
||||
}.setToolTip(Lang.get("menu_table_createTwo_tt")).createJMenuItem());
|
||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createTwo")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
createCircuit(new TwoInputs());
|
||||
}
|
||||
}.setToolTip(Lang.get("menu_table_createTwo_tt")).createJMenuItem());
|
||||
|
||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAnd")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
createCircuit(new NAnd());
|
||||
}
|
||||
}.setToolTip(Lang.get("menu_table_createNAnd_tt")).createJMenuItem());
|
||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAnd")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent actionEvent) {
|
||||
createCircuit(new NAnd());
|
||||
}
|
||||
}.setToolTip(Lang.get("menu_table_createNAnd_tt")).createJMenuItem());
|
||||
|
||||
if (Main.enableExperimental()) {
|
||||
|
||||
createMenu.add(new ToolTipAction(Lang.get("menu_table_createNAndTwo")) {
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user