Changeset 1524:587a823bcdd0 in lemon-0.x for gui/broken_edge.cc
- Timestamp:
- 06/29/05 17:41:33 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2010
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/broken_edge.cc
r1505 r1524 8 8 arrow=new Gnome::Canvas::Polygon(g); 9 9 *arrow << Gnome::Canvas::Properties::fill_color("red"); 10 arrow->signal_event().connect(sigc::mem_fun(*this, &BrokenEdge::edge _former_event_handler));11 set _points(p);10 arrow->signal_event().connect(sigc::mem_fun(*this, &BrokenEdge::edgeFormerEventHandler)); 11 setPoints(p); 12 12 } 13 13 … … 17 17 } 18 18 19 void BrokenEdge::set _points(Gnome::Canvas::Points p, bool move)19 void BrokenEdge::setPoints(Gnome::Canvas::Points p, bool move) 20 20 { 21 21 bool set_arrow=false; … … 104 104 } 105 105 106 bool BrokenEdge::edge _former_event_handler(GdkEvent* e)106 bool BrokenEdge::edgeFormerEventHandler(GdkEvent* e) 107 107 { 108 108 switch(e->type) … … 110 110 case GDK_BUTTON_PRESS: 111 111 //we mark the location of the event to be able to calculate parameters of dragging 112 if(gdc.get _actual_tool()!=CREATE_NODE)112 if(gdc.getActualTool()!=CREATE_NODE) 113 113 { 114 gdc.toggle _edge_activity(this, true);114 gdc.toggleEdgeActivity(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 if(gdc.get _actual_tool()!=CREATE_NODE)121 if(gdc.getActualTool()!=CREATE_NODE) 122 122 { 123 gdc.toggle _edge_activity(this, false);123 gdc.toggleEdgeActivity(this, false); 124 124 isbutton=false; 125 125 } … … 143 143 points_new.push_back(my_points[2]); 144 144 145 set _points(points_new);146 gdc.text _reposition(xy<double>(my_points[1].get_x(),my_points[1].get_y()));145 setPoints(points_new); 146 gdc.textReposition(xy<double>(my_points[1].get_x(),my_points[1].get_y())); 147 147 148 148 clicked_x=e->motion.x; … … 156 156 } 157 157 158 xy<double> BrokenEdge::get _arrow_pos()158 xy<double> BrokenEdge::getArrowPos() 159 159 { 160 160 xy<double> ret_val(my_points[1].get_x(),my_points[1].get_y());
Note: See TracChangeset
for help on using the changeset viewer.