Changeset 1819:fd82adfbe905 in lemon-0.x for gui/gdc-broken_edge.cc
- Timestamp:
- 11/21/05 13:07:05 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2368
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
gui/gdc-broken_edge.cc
r1714 r1819 1 #include " broken_edge.h"1 #include "graph_displayer_canvas.h" 2 2 #include <cmath> 3 3 4 BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false)4 GraphDisplayerCanvas::BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false) 5 5 { 6 6 my_points=new Gnome::Art::Point[3]; … … 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::edgeFormerEventHandler));10 arrow->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::BrokenEdge::edgeFormerEventHandler)); 11 11 arrow->lower_to_bottom(); 12 12 setPoints(p); 13 13 } 14 14 15 BrokenEdge::~BrokenEdge()15 GraphDisplayerCanvas::BrokenEdge::~BrokenEdge() 16 16 { 17 17 if(arrow)delete(arrow); 18 18 } 19 19 20 void BrokenEdge::setPoints(Gnome::Canvas::Points p, bool move)20 void GraphDisplayerCanvas::BrokenEdge::setPoints(Gnome::Canvas::Points p, bool move) 21 21 { 22 22 bool set_arrow=false; … … 156 156 } 157 157 158 bool BrokenEdge::edgeFormerEventHandler(GdkEvent* e)158 bool GraphDisplayerCanvas::BrokenEdge::edgeFormerEventHandler(GdkEvent* e) 159 159 { 160 160 switch(e->type) … … 208 208 } 209 209 210 xy<double> BrokenEdge::getArrowPos()210 xy<double> GraphDisplayerCanvas::BrokenEdge::getArrowPos() 211 211 { 212 212 xy<double> ret_val(my_points[1].get_x(),my_points[1].get_y());
Note: See TracChangeset
for help on using the changeset viewer.