summaryrefslogtreecommitdiff
path: root/MainWindow.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-30 13:31:46 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-30 13:31:46 +0930
commitcad4558e56c8ec39809dd2b1235c6cc09148442b (patch)
treeaf2dc38475669c38708b7486b53bdfd282e329fd /MainWindow.h
parent8ecf0637c6830b26bbe2c1221847e12f96df81a4 (diff)
downloadfoxlogicgates-cad4558e56c8ec39809dd2b1235c6cc09148442b.tar.gz
foxlogicgates-cad4558e56c8ec39809dd2b1235c6cc09148442b.zip
further convert things to use object base class
Diffstat (limited to 'MainWindow.h')
-rw-r--r--MainWindow.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/MainWindow.h b/MainWindow.h
index bf4dd68..c7ba505 100644
--- a/MainWindow.h
+++ b/MainWindow.h
@@ -87,7 +87,7 @@ class MainWindow : public FXMainWindow
long load_button_press(FXObject*,FXSelector,void* ptr);
/* selected gate */
- Object *selected_gate = nullptr;
+ Object *selected_object = nullptr;
FXApp *get_app(){ return app; };
@@ -160,6 +160,7 @@ class MainWindow : public FXMainWindow
FXButton *XNOR_button;
FXButton *NOT_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;