X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..ffc9f02ea0544d4b1aa86e29afe12a2b4bace953:/Constructor/include/or.h?ds=sidebyside diff --git a/Constructor/include/or.h b/Constructor/include/or.h index 9da1cd2..9a22b3e 100644 --- a/Constructor/include/or.h +++ b/Constructor/include/or.h @@ -5,13 +5,21 @@ class Or : public CItem { public: - Or(); + Or(int orientacion=0); virtual ~Or(); virtual bool on_button_press_event(GdkEventButton *event); virtual void on_menu_popup_rotar(); virtual void save(FILE *archivo); virtual bool check_connection(); + virtual ConnectorType detect_click_position(int _a, int _b); + virtual void update_logic_position(); + virtual void get_in_logic_connect_position(int& _a, int& _b); + virtual void get_out_logic_connect_position(int& _a, int& _b); + virtual void set_out_connected(bool _o); private: + int in_x, in_y, out_x, out_y; + bool out_connected; + std::vector vec_connector; Glib::RefPtr imageN; // 0 Glib::RefPtr imageS; // 1 Glib::RefPtr imageE; // 2