diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-30 01:18:04 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-30 01:18:04 +0930 |
commit | 8ecf0637c6830b26bbe2c1221847e12f96df81a4 (patch) | |
tree | 11bea93ac42670e15f1aad826fe585d3afc6bd7d /MainWindow.h | |
parent | 193fda2d270f63c127edc5b1082ef14ad12b1175 (diff) | |
download | foxlogicgates-8ecf0637c6830b26bbe2c1221847e12f96df81a4.tar.gz foxlogicgates-8ecf0637c6830b26bbe2c1221847e12f96df81a4.zip |
continue converting things to use object over gate
Diffstat (limited to 'MainWindow.h')
-rw-r--r-- | MainWindow.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/MainWindow.h b/MainWindow.h index 965c822..bf4dd68 100644 --- a/MainWindow.h +++ b/MainWindow.h @@ -36,7 +36,7 @@ class MainWindow : public FXMainWindow FXDECLARE(MainWindow) struct selected_input { - Gate *gate; + Object *object; int input; }; @@ -87,7 +87,7 @@ class MainWindow : public FXMainWindow long load_button_press(FXObject*,FXSelector,void* ptr); /* selected gate */ - Gate *selected_gate = nullptr; + Object *selected_gate = nullptr; FXApp *get_app(){ return app; }; @@ -108,13 +108,13 @@ class MainWindow : public FXMainWindow void create_ui(); void draw(); - void update_gate_state(Gate *gate); + void update_object_state(Object *object); void find_selected_input(int x, int y); - Gate *find_gate_at(int x, int y); - Gate *find_gate_by_id(int id); + Object *find_object_at(int x, int y); + Object *find_object_by_id(int id); void remove_all_gates(); void find_gates_in_area(int x, int y, int width, int height); - void remove_gate(Gate &gate); + void remove_object(Object &object); bool save_file(); bool load_file(); @@ -179,7 +179,7 @@ class MainWindow : public FXMainWindow bool lshift_down = false; /* general */ - std::vector<std::unique_ptr<Gate>> gates; + std::vector<std::unique_ptr<Object>> objects; /* saving/loading */ std::string file_name = ""; |