1 #include "activezone.h"
4 ActiveZone::ActiveZone(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> &refGlade):Gtk::Viewport(cobject)
9 ActiveZone::~ActiveZone()
13 bool ActiveZone::on_button_press_event(GdkEventButton *event)
15 if ( (event->type == GDK_BUTTON_PRESS) && (event->button == 1) ) {
17 get_pointer(temp.w, temp.z);
19 workplace->lista_lineas.push_back(temp);
20 workplace->get_window()->draw_line (get_style()->get_black_gc(), temp.x,temp.y,temp.w,temp.z);
24 if ( (event->type == GDK_BUTTON_PRESS) && (event->button == 1) ) {
25 if (cant_click == 1) {
26 get_pointer(temp.x,temp.y);