X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5b8bbc5a3c2db31a69a637f0e35e8435ad4d8ff3..796708eefb056b936274da15c7af2c7d709c9249:/Constructor/or.cpp diff --git a/Constructor/or.cpp b/Constructor/or.cpp index b480188..0c0631b 100644 --- a/Constructor/or.cpp +++ b/Constructor/or.cpp @@ -20,8 +20,10 @@ Or::~Or() bool Or::on_button_press_event(GdkEventButton *event) { - if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) + if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 1)) { + std::cout<set_text(name); + } if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){ image = null; @@ -50,6 +52,7 @@ bool Or::on_button_press_event(GdkEventButton *event) } return true; } + void Or::on_menu_popup_rotar() { GdkEventButton event; @@ -58,7 +61,11 @@ void Or::on_menu_popup_rotar() Or::on_button_press_event(&event); } - +void Or::on_menu_popup_conectar() +{ + CItem::logic_connect = true; + CItem::quien = ID; +} void Or::save(FILE *archivo) {