From cad4558e56c8ec39809dd2b1235c6cc09148442b Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 30 Jun 2020 13:31:46 +0930 Subject: further convert things to use object base class --- MainWindow.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'MainWindow.h') 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 selected_gates; -- cgit v1.2.3