COIN-OR::LEMON - Graph Library

Ignore:
Timestamp:
08/23/05 09:36:09 (19 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2158
Message:
  • id maps are not editable
  • handle exceptions thrown by the file reader
  • texts are always above the edges
  • store a default value for all maps, so that edges and nodes created after adding a new map receive the default value too
  • create node on button release, not on click (fixes a few oddities)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas.cc

    r1632 r1645  
    6363    *(edgesmap[i]) << Gnome::Canvas::Properties::fill_color("green");
    6464    edgesmap[i]->property_width_units().set_value(10);   
     65    edgesmap[i]->lower_to_bottom();
    6566   
    6667    //initializing edge-text as well, to empty string
     
    7273    edgetextmap[i]->property_fill_color().set_value("darkgreen");
    7374    edgetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::edgeMapEditEventHandler), false);
     75    edgetextmap[i]->raise_to_top();
    7476  }
    7577
     
    8890    *(nodesmap[i]) << Gnome::Canvas::Properties::fill_color("blue");
    8991    *(nodesmap[i]) << Gnome::Canvas::Properties::outline_color("black");
     92    nodesmap[i]->raise_to_top();
    9093
    9194    //initializing edge-text as well, to empty string
     
    99102    nodetextmap[i]->property_fill_color().set_value("darkblue");
    100103    nodetextmap[i]->signal_event().connect(sigc::mem_fun(*this, &GraphDisplayerCanvas::nodeMapEditEventHandler), false);
     104    nodetextmap[i]->raise_to_top();
    101105  }
    102106
Note: See TracChangeset for help on using the changeset viewer.