COIN-OR::LEMON - Graph Library

Changeset 63:59768817442a in glemon-0.x for main_win.cc


Ignore:
Timestamp:
08/23/05 09:36:09 (15 years ago)
Author:
Akos Ladanyi
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@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
  • main_win.cc

    r61 r63  
    265265  {
    266266    Glib::ustring filename = fcdialog.get_filename();
    267     mapstorage.readFromFile(filename);
    268     mapstorage.file_name = filename;
    269     mapstorage.modified = false;
    270     gd_canvas.drawGraph();
    271     mapwin.update();
     267    if (!mapstorage.readFromFile(filename))
     268    {
     269      mapstorage.file_name = filename;
     270      mapstorage.modified = false;
     271      gd_canvas.drawGraph();
     272      mapwin.update();
     273    }
    272274  }
    273275}
Note: See TracChangeset for help on using the changeset viewer.