Changeset 1505:7121597da9ba in lemon-0.x for gui/broken_edge.cc
- Timestamp:
- 06/17/05 19:08:45 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/broken_edge.cc
r1504 r1505 1 1 #include <broken_edge.h> 2 #include <lemon/xy.h>3 2 #include <math.h> 4 3 … … 113 112 if(gdc.get_actual_tool()!=CREATE_NODE) 114 113 { 114 gdc.toggle_edge_activity(this, true); 115 115 clicked_x=e->button.x; 116 116 clicked_y=e->button.y; … … 119 119 break; 120 120 case GDK_BUTTON_RELEASE: 121 isbutton=false; 121 if(gdc.get_actual_tool()!=CREATE_NODE) 122 { 123 gdc.toggle_edge_activity(this, false); 124 isbutton=false; 125 } 122 126 break; 123 127 case GDK_MOTION_NOTIFY: … … 140 144 141 145 set_points(points_new); 146 gdc.text_reposition(xy<double>(my_points[1].get_x(),my_points[1].get_y())); 142 147 143 148 clicked_x=e->motion.x; … … 150 155 return true; 151 156 } 157 158 xy<double> BrokenEdge::get_arrow_pos() 159 { 160 xy<double> ret_val(my_points[1].get_x(),my_points[1].get_y()); 161 return ret_val; 162 }
Note: See TracChangeset
for help on using the changeset viewer.