From a07c85b04f8bccd924dc020dcb9c6a32d2907e27 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 25 Jun 2020 20:30:58 +0930 Subject: added example XML files for some gate tests --- MainWindow.cpp | 4 +-- examples/AND_OR.xml | 22 ++++++++++++++ examples/test_all_gates.xml | 74 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+), 2 deletions(-) create mode 100644 examples/AND_OR.xml create mode 100644 examples/test_all_gates.xml diff --git a/MainWindow.cpp b/MainWindow.cpp index fe5f5c1..77a3b3d 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -137,9 +137,9 @@ MainWindow::create_ui() new FXHorizontalSeparator(optionsFrame, SEPARATOR_RIDGE|LAYOUT_FILL_X); /* save/load */ - new FXLabel(optionsFrame, "Save", NULL, JUSTIFY_CENTER_X); + new FXLabel(optionsFrame, "Save as XML", NULL, JUSTIFY_CENTER_X|LAYOUT_FILL_X); new FXButton(optionsFrame, "Save", nullptr, this, MainWindow::ID_BUTTON_SAVE, BUTTON_NORMAL|LAYOUT_FILL_X); - new FXLabel(optionsFrame, "Load", NULL, JUSTIFY_CENTER_X); + new FXLabel(optionsFrame, "Load from XML", NULL, JUSTIFY_CENTER_X|LAYOUT_FILL_X); new FXButton(optionsFrame, "Load", nullptr, this, MainWindow::ID_BUTTON_LOAD, BUTTON_NORMAL|LAYOUT_FILL_X); } diff --git a/examples/AND_OR.xml b/examples/AND_OR.xml new file mode 100644 index 0000000..f278ac0 --- /dev/null +++ b/examples/AND_OR.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/test_all_gates.xml b/examples/test_all_gates.xml new file mode 100644 index 0000000..1b77e82 --- /dev/null +++ b/examples/test_all_gates.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3