X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/667418327423ba116d24751926a95a2f1235849c..5042b6492969385725852d3cf90959abb52a7398:/Constructor/src/item.cpp diff --git a/Constructor/src/item.cpp b/Constructor/src/item.cpp index de63b69..b4bf541 100644 --- a/Constructor/src/item.cpp +++ b/Constructor/src/item.cpp @@ -1,7 +1,7 @@ #include "item.h" -bool CItem:: logic_connect = false; -int CItem::quien = -1; +bool CItem::logic_connect = false; +int CItem::gate_id = -1; CItem::CItem(const char *filename):Gtk::DrawingArea() @@ -62,8 +62,6 @@ void CItem::on_menu_popup_eliminar() void CItem::on_menu_popup_conectar() { - CItem::logic_connect = true; - CItem::quien = ID; } int CItem::get_position_x() @@ -158,3 +156,19 @@ ConnectorType CItem::get_connector_type( int _a, int _b ) void CItem::set_default_connector() { } + +void CItem::get_in_logic_connect_position(int& _a, int& _b) +{ + _a = x; + _b = y; +} + +void CItem::get_out_logic_connect_position(int& _a, int& _b) +{ + _a = x; + _b = y; +} + +void CItem::update_logic_position() +{ +}