COIN-OR::LEMON - Graph Library

Changeset 30:f70bbee5350a in glemon-0.x for broken_edge.cc


Ignore:
Timestamp:
06/29/05 17:41:33 (19 years ago)
Author:
Hegyi Péter
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2010
Message:

Function names are corrected according to naming conventions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • broken_edge.cc

    r25 r30  
    88  arrow=new Gnome::Canvas::Polygon(g);
    99  *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);
    1212}
    1313
     
    1717}
    1818
    19 void BrokenEdge::set_points(Gnome::Canvas::Points p, bool move)
     19void BrokenEdge::setPoints(Gnome::Canvas::Points p, bool move)
    2020{
    2121  bool set_arrow=false;
     
    104104}
    105105
    106 bool BrokenEdge::edge_former_event_handler(GdkEvent* e)
     106bool BrokenEdge::edgeFormerEventHandler(GdkEvent* e)
    107107{
    108108  switch(e->type)
     
    110110    case GDK_BUTTON_PRESS:
    111111      //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)
    113113        {
    114           gdc.toggle_edge_activity(this, true);
     114          gdc.toggleEdgeActivity(this, true);
    115115          clicked_x=e->button.x;
    116116          clicked_y=e->button.y;
     
    119119      break;
    120120    case GDK_BUTTON_RELEASE:
    121       if(gdc.get_actual_tool()!=CREATE_NODE)
     121      if(gdc.getActualTool()!=CREATE_NODE)
    122122        {
    123           gdc.toggle_edge_activity(this, false);
     123          gdc.toggleEdgeActivity(this, false);
    124124          isbutton=false;
    125125        }
     
    143143          points_new.push_back(my_points[2]);
    144144
    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()));
    147147
    148148          clicked_x=e->motion.x;
     
    156156}
    157157
    158 xy<double> BrokenEdge::get_arrow_pos()
     158xy<double> BrokenEdge::getArrowPos()
    159159{
    160160  xy<double> ret_val(my_points[1].get_x(),my_points[1].get_y());
Note: See TracChangeset for help on using the changeset viewer.