Changeset 1501:39d59aee2a1a in lemon-0.x for gui/broken_edge.cc
- Timestamp:
- 06/17/05 14:25:53 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1982
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/broken_edge.cc
r1500 r1501 3 3 #include <math.h> 4 4 5 BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p ) : Line(g), isbutton(false)5 BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false) 6 6 { 7 7 my_points=new Gnome::Art::Point[3]; … … 111 111 case GDK_BUTTON_PRESS: 112 112 //we mark the location of the event to be able to calculate parameters of dragging 113 clicked_x=e->button.x; 114 clicked_y=e->button.y; 115 isbutton=true; 113 if(gdc.get_actual_tool()!=CREATE_NODE) 114 { 115 clicked_x=e->button.x; 116 clicked_y=e->button.y; 117 isbutton=true; 118 } 116 119 break; 117 120 case GDK_BUTTON_RELEASE:
Note: See TracChangeset
for help on using the changeset viewer.