summaryrefslogtreecommitdiff
path: root/MainWindow.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-30 14:35:57 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-30 14:35:57 +0930
commit61a3297b662b1bd8621016c8b5b492dd37bf5675 (patch)
treeb71c302a2a5cf60669ebe987e79f4bc24cf2300a /MainWindow.h
parentcad4558e56c8ec39809dd2b1235c6cc09148442b (diff)
downloadfoxlogicgates-61a3297b662b1bd8621016c8b5b492dd37bf5675.tar.gz
foxlogicgates-61a3297b662b1bd8621016c8b5b492dd37bf5675.zip
Functionality: begin implementing binary display
Diffstat (limited to 'MainWindow.h')
-rw-r--r--MainWindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/MainWindow.h b/MainWindow.h
index c7ba505..e686321 100644
--- a/MainWindow.h
+++ b/MainWindow.h
@@ -29,6 +29,7 @@
#include "Gate.h"
#include "icons.h"
#include "Object.h"
+#include "BinaryDisplay.h"
#include "pugixml.hpp" // saving/loading
class MainWindow : public FXMainWindow
@@ -58,6 +59,7 @@ class MainWindow : public FXMainWindow
ID_BUTTON_XOR,
ID_BUTTON_XNOR,
ID_BUTTON_NOT,
+ ID_BUTTON_BINARYDISPLAY,
ID_BUTTON_SAVE,
ID_BUTTON_LOAD,
@@ -81,6 +83,7 @@ class MainWindow : public FXMainWindow
long xor_button_press(FXObject*,FXSelector,void* ptr);
long xnor_button_press(FXObject*,FXSelector,void* ptr);
long not_button_press(FXObject*,FXSelector,void* ptr);
+ long binarydisplay_button_press(FXObject*,FXSelector,void* ptr);
/* options */
long save_button_press(FXObject*,FXSelector,void* ptr);
@@ -148,6 +151,7 @@ class MainWindow : public FXMainWindow
FXGIFIcon *XOR_icon;
FXGIFIcon *XNOR_icon;
FXGIFIcon *NOT_icon;
+ FXGIFIcon *BinaryDisplay_icon;
/* buttons */
FXButton *INPUT_button;
@@ -159,11 +163,12 @@ class MainWindow : public FXMainWindow
FXButton *XOR_button;
FXButton *XNOR_button;
FXButton *NOT_button;
+ FXButton *BinaryDisplay_button;
Object::OBJECT_TYPE selected_object_type = Object::NONE; // the type of object we will place
Gate::GATE_TYPE selected_gate_type = Gate::NONE; // the type of gate we will place
struct selected_input selected_input;
- std::vector<Object *> selected_gates;
+ std::vector<Object *> selected_objects;
/* mouse */
bool lmouse_down = false;