X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/57ae549a3b51ba148315ff4e64da089203cc7c02..ffc9f02ea0544d4b1aa86e29afe12a2b4bace953:/Constructor/include/not.h?ds=sidebyside diff --git a/Constructor/include/not.h b/Constructor/include/not.h index 783cd90..9fdde6f 100644 --- a/Constructor/include/not.h +++ b/Constructor/include/not.h @@ -5,7 +5,7 @@ class Not : public CItem { public: - Not(); + Not(int orientacion=0); virtual ~Not(); virtual bool on_button_press_event(GdkEventButton *event); virtual void on_menu_popup_rotar(); @@ -15,9 +15,11 @@ class Not : public CItem { 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); + virtual void set_in_connected(bool _o); private: int in_x, in_y, out_x, out_y; - int cant_connections; + bool in_connected, out_connected; std::vector vec_connector; Glib::RefPtr imageN; // 0 Glib::RefPtr imageS; // 1