X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b7745587e67846353ff872a3bc3b3ea5a84706ac..2686d511ecfa9bdd0693fc3e1c8320e52188beb4:/Constructor/conduct.cpp?ds=inline diff --git a/Constructor/conduct.cpp b/Constructor/conduct.cpp index 075f645..d10c0c5 100644 --- a/Constructor/conduct.cpp +++ b/Constructor/conduct.cpp @@ -8,6 +8,16 @@ 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; + } + //tengo que crear una clase para esta ventana..!!! + ref->get_widget_derived("conduct_pty_wnd",property_wnd); } Conduct::~Conduct() @@ -37,6 +47,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 +61,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); +}