X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b7745587e67846353ff872a3bc3b3ea5a84706ac..43aa212b9816129a8a2b08a8848bca407ef0129f:/Constructor/conduct.cpp diff --git a/Constructor/conduct.cpp b/Constructor/conduct.cpp index 075f645..a28aa79 100644 --- a/Constructor/conduct.cpp +++ b/Constructor/conduct.cpp @@ -8,6 +8,15 @@ Conduct::Conduct() imgActual = 0; image = imageN; set_size_request(image->get_width(), image->get_height()); + + Glib::RefPtr ref; + try { + ref = Gnome::Glade::Xml::create("constructor.glade", "conduct_pty_wnd"); + } + catch(const Gnome::Glade::XmlError &ex) { + std::cerr << ex.what() << std::endl; + } + ref->get_widget_derived("conduct_pty_wnd",property_wnd); } Conduct::~Conduct() @@ -37,6 +46,10 @@ bool Conduct::on_button_press_event(GdkEventButton *event) menu_popup.popup(event->button, event->time); return true; //It has been handled. } + + if ((event->type == GDK_2BUTTON_PRESS) && (event->button ==1)){ + property_wnd->show(); + } return true; } @@ -47,3 +60,11 @@ void Conduct::on_menu_popup_rotar() event.button = 2; Conduct::on_button_press_event(&event); } + +void Conduct::on_menu_popup_propiedades() +{ + GdkEventButton event; + event.type = GDK_2BUTTON_PRESS; + event.button = 1; + Conduct::on_button_press_event(&event); +}