COIN-OR::LEMON - Graph Library

Changeset 25:c45a34eaa118 in glemon-0.x for broken_edge.cc


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

Previous commit was also mine, but I forgot to say, that it was my younger brother's birthyear. From this commit texts of activated maps move together with red arrows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • broken_edge.cc

    r24 r25  
    11#include <broken_edge.h>
    2 #include <lemon/xy.h>
    32#include <math.h>
    43
     
    113112      if(gdc.get_actual_tool()!=CREATE_NODE)
    114113        {
     114          gdc.toggle_edge_activity(this, true);
    115115          clicked_x=e->button.x;
    116116          clicked_y=e->button.y;
     
    119119      break;
    120120    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        }
    122126      break;
    123127    case GDK_MOTION_NOTIFY:
     
    140144
    141145          set_points(points_new);
     146          gdc.text_reposition(xy<double>(my_points[1].get_x(),my_points[1].get_y()));
    142147
    143148          clicked_x=e->motion.x;
     
    150155  return true;
    151156}
     157
     158xy<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.