summaryrefslogtreecommitdiff
path: root/MainWindow.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-06-29 22:45:32 +0930
committerDaniel Jones <admin@danieljon.es>2020-06-29 22:45:32 +0930
commit1e76ef7d2df9d49a905f416774f33fdedfcf6f34 (patch)
tree22e37a8cb08cb84232e99bc235d20549a495d587 /MainWindow.h
parent11937e7d2256702698baba3acaf847523fe0f066 (diff)
downloadfoxlogicgates-1e76ef7d2df9d49a905f416774f33fdedfcf6f34.tar.gz
foxlogicgates-1e76ef7d2df9d49a905f416774f33fdedfcf6f34.zip
Logic: created ned Object class and derived gates from that
This class will allow us to make new devices (displays, custom gates etc) easily
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 b6ba8e6..965c822 100644
--- a/MainWindow.h
+++ b/MainWindow.h
@@ -28,6 +28,7 @@
#include <cstdlib>
#include "Gate.h"
#include "icons.h"
+#include "Object.h"
#include "pugixml.hpp" // saving/loading
class MainWindow : public FXMainWindow
@@ -161,7 +162,7 @@ class MainWindow : public FXMainWindow
Gate::GATE_TYPE selected_gate_type = Gate::NONE; // the type of gate we will place
struct selected_input selected_input;
- std::vector<Gate *> selected_gates;
+ std::vector<Object *> selected_gates;
/* mouse */
bool lmouse_down = false;