]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Constructor/include/not.h
- Se agrega una version basica de la respuesta XML.
[z.facultad/75.42/plaqui.git] / Constructor / include / not.h
index 783cd901465d32bd90349a79d49e9efd1f955955..9fdde6fcfb1e7550f0186f895402c93d84938349 100644 (file)
@@ -5,7 +5,7 @@
 
 class Not : public CItem {
        public:
 
 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();
                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 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;
        private:
                int in_x, in_y, out_x, out_y;
-               int cant_connections;
+               bool in_connected, out_connected;
                std::vector<t_logic_connector> vec_connector;
                Glib::RefPtr<Gdk::Pixbuf> imageN; // 0 
                Glib::RefPtr<Gdk::Pixbuf> imageS; // 1
                std::vector<t_logic_connector> vec_connector;
                Glib::RefPtr<Gdk::Pixbuf> imageN; // 0 
                Glib::RefPtr<Gdk::Pixbuf> imageS; // 1