image = imageE;
set_size_request(image->get_width(), image->get_height());
name = "or";
+ menulist.push_back( Gtk::Menu_Helpers::ImageMenuElem("Conectar", menu_image_linea,SigC::slot(*this, &CItem::on_menu_popup_conectar) ) ) ;
}
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<<ID<<std::endl;
combo_entry->set_text(name);
+ }
if ((event->type == GDK_BUTTON_PRESS) && ( event->button == 2)){
image = null;
}
return true;
}
+
void Or::on_menu_popup_rotar()
{
GdkEventButton event;
Or::on_button_press_event(&event);
}
+void Or::on_menu_popup_conectar()
+{
+ CItem::logic_connect = true;
+ CItem::quien = ID;
+}
+
void Or::save(FILE *archivo)
{
}
-
-// CAMBIAR TODO ESTO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
bool Or::check_connection()
{
return true;